Skip to content

repl: backslash bug fix

The actual problem was with the line parsing logic for string literals. When we use backslash in the string literals, it used to remember the \ as the previous character even after we parsed the character next to it. This leads to REPL thinking that the end of string literals is not reached.

This patch replaces the previous character with null, so that it will properly skip the character next to it.

Previous Discussion: https://github.com/nodejs/node/pull/2952 Fixes: https://github.com/nodejs/node/issues/2749

cc @silverwind @Fishrock123

Merge request reports

Loading