Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upstrict mode syntax #417
Comments
This comment has been minimized.
This comment has been minimized.
|
What version of node are you using? I'm running v4.3.0 and your code example works fine without the need for |
feross
closed this
Feb 12, 2016
This comment has been minimized.
This comment has been minimized.
|
Yes, sorry the error reported when requiring a file, here it is the complete code script.js
config.js
|
This comment has been minimized.
This comment has been minimized.
|
You're missing |
feross
added
the
question
label
Feb 12, 2016
This comment has been minimized.
This comment has been minimized.
|
Yes it works, thanks. I am glad anout that cause I am using standard js in a lot of my packages, thanks for creating it. Let me report a working example script.js
config.js
|
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
fibo commentedFeb 12, 2016
@feross few days ago commented #287 (comment)
if for example I have a script like
node will complain something like
but if I had
"use strict"as you suggested, standard js will not accept it cause it is double quoted. I tryed with single quotes, but it does not work. Any hint?