-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"use strict" => Parse error on line 1: Unexpected 'STRING' #2284
Labels
Comments
Hmm. Works for me.
|
Works fine for me.
|
It works with -e, not with -c. |
I wonder if I have BOM issues. |
Works fine for me with |
False alarm, stupid BOM. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduce by creating a .coffee file with the single line
"use strict"
. Optionally add other lines after it.Compile or run that file.
Instant parse error.
Tested against 1.3.1 and against master.
A file containing
works. But top-level, it does not, so we cannot use CoffeeScript in our Node.js modules.
The text was updated successfully, but these errors were encountered: