Skip to content
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

Add use strict flag to fix block-scoped syntaxerror #1

Merged
merged 1 commit into from
Aug 10, 2016

Conversation

jwicks
Copy link
Contributor

@jwicks jwicks commented Aug 10, 2016

Add 'use strict'; to the top of index.js. This fixes the following error:

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:414:25)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)
    at startup (node.js:136:18)
    at node.js:963:3

I'm on node v4.2.2 and npm 3.8.5

@SlexAxton SlexAxton merged commit 13b61f4 into SlexAxton:master Aug 10, 2016
@SlexAxton
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants