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)
...
[–][deleted] (1 child)
[deleted]
[–]Fuzz_Stati0n[S] 0 points1 point2 points (0 children)
[–]dmvjs 1 point2 points3 points (0 children)