easa
easa

Reputation: 302

This syntax error isn't recognized

What happened in this case?

Why there is no error?

I took a screen shot and hope you help me to find out what happened.

I can't post image please check this link out :

enter image description here

Upvotes: -1

Views: 88

Answers (1)

user5315444
user5315444

Reputation:

It's a syntax error, in the earlier version of node, this error was not shown. I run on node 6. and I got

SyntaxError: Unexpected identifier
at Object.exports.createScript (vm.js:47:10)
at REPLServer.defaultEval (repl.js:255:25)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.<anonymous> (repl.js:477:10)
at emitOne (events.js:101:20)
at REPLServer.emit (events.js:188:7)
at REPLServer.Interface._onLine (readline.js:232:10)
at REPLServer.Interface._line (readline.js:574:8)
at REPLServer.Interface._ttyWrite (readline.js:851:14)

It's becaus of this statment is meaning less.

same on git

Upvotes: 1

Related Questions