node-chakracore icon indicating copy to clipboard operation
node-chakracore copied to clipboard

Node-v8 and node-chakracore behave differently to syntax errors in the REPL

Open MSLaguana opened this issue 8 years ago • 0 comments

  • Version: v8.0.0-nightly20170417265fc0bedc
  • Platform: Windows 64-bit
  • Subsystem: REPL

When using the node REPL interactively, typing some invalid (to my knowledge) symbols will cause node-v8 to prompt for further input, while node-chakracore gives an error:

> @
SyntaxError: Invalid character

> ^
SyntaxError: Syntax error

> process.jsEngine
'chakracore'
> @
@
^
SyntaxError: Invalid or unexpected token

> ^
...

Note that the @ gives an error in both cases, while ^ generates a (different) error in node-chakracore while prompting for more input in node-v8.

If I put those symbols in a js file and attempt to run it with node, both node-v8 and node-chakracore give errors, but slightly different errors and with slightly different callstacks.

MSLaguana avatar Apr 17 '17 20:04 MSLaguana