Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

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

Open
MSLaguana opened this issue Apr 17, 2017 · 0 comments
Assignees

Comments

@MSLaguana
Copy link
Contributor

  • 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.

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

No branches or pull requests

2 participants