Skip to content

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

@falaise

Description

@falaise

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions