Sorry, I'm just looking into this and it appears to be a problem in the 2v25 build - probably related to our switch to using pretokenised modules. I'm amazed I didn't spot it. I'll try and get a fix in in the next few hours.
In the mean time if you install 2v24 by pasting the link https://www.espruino.com/binaries/espruino_2v24_wifi.bin in on the Web IDE's flasher page that should fix it. You shouldn't have to worry about updating the ESP8266 firmware
I tried with your code and the following getPage and it seems to work ok on 2v24:
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Sorry, I'm just looking into this and it appears to be a problem in the 2v25 build - probably related to our switch to using pretokenised modules. I'm amazed I didn't spot it. I'll try and get a fix in in the next few hours.
In the mean time if you install 2v24 by pasting the link
https://www.espruino.com/binaries/espruino_2v24_wifi.bin
in on the Web IDE's flasher page that should fix it. You shouldn't have to worry about updating the ESP8266 firmwareI tried with your code and the following
getPage
and it seems to work ok on 2v24: