There's an open issue re this, here https://github.com/espruino/Espruino/issues/735 AFAIK pinMode is still required. I set it in the sketches I'm running on ESP8266, although I don't have latest build.
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.
There's an open issue re this, here https://github.com/espruino/Espruino/issues/735 AFAIK pinMode is still required. I set it in the sketches I'm running on ESP8266, although I don't have latest build.