Skip to content

CLI: --require options doesn't work for file with illegal chars for JS variable #4209

@ryoqun

Description

@ryoqun

The following snippet tells everything...

$ echo 'console.log "hi"' > /tmp/hello-world.coffee
$ echo 'console.log "hi"' > /tmp/hello_world.coffee
$ coffee -r /tmp/hello_world.coffee -e 'console.log("eval")'
hi
eval
$ coffee -r /tmp/hello-world.coffee -e 'console.log("eval")'
ReferenceError: hello is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions