thatcher / env-js

A pure-JavaScript browser environment.
http://www.envjs.com/
464 stars 75 forks source link

Bug with Envjs.WriteToFile in envjs/platform/rubyracer.js on Linux #35

Open falaise opened 13 years ago

falaise commented 13 years ago

Hi,

if you run './bin/envjs rubyracer ./examples/pictures/boot.js' you receive an exception because Envjs.WriteToFile fails to open the file to write. Just add in the source of WriteToFile this test : if(/^file:\/\//.test(url)) url = url.substring(7,url.length);

Regards.