Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Did you try adding "strict" in the first line of your source code? This is what the error seems to suggest. Commented Mar 8, 2016 at 14:55
  • it didn't work. Did you manage to get them working ? if so, could you elaborate the steps taken. Commented Mar 8, 2016 at 16:41
  • @JohnathanFoong I think @wvxvw meant "use strict" not "strict", try that. Commented Mar 8, 2016 at 16:49
  • this is the error i'm getting from after adding "use strict" SyntaxError: Unexpected token [ at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:404:25) ... Commented Mar 8, 2016 at 16:53
  • Maybe you should wrap that code into a self invoking function, and add "use strict"; at the beginning. Commented Mar 8, 2016 at 20:11