Friday 9 February 2018

SyntaxError from Paragraph Separator Unicode Character

When I try to use unicode character u+2029 in a single quoted string I get a SyntaxError. Is this expected? If not, is the bug in V8's parser?Any thoughts or ideas very appreciated!Test Case:xxd syntax-error2.js 00000000: 413d 27e2 80a9 273b 0a A='...';. Output:$ node syntax-error2.js syntax-error2.js:1 (function (exports, require, module, __filename, __dirname) { A='​ ^^ SyntaxError: Invalid or unexpected token at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:599:28) ...

Submitted February 09, 2018 at 05:36PM by Fuzz_Stati0n

No comments:

Post a Comment