shapesecurity / shift-parser-js

ECMAScript parser that produces a Shift format AST
http://shift-ast.org/parser.html
Apache License 2.0
249 stars 28 forks source link

"Error: Not reached" when trying to parse `(([...a=1]))` #355

Closed lydell closed 7 years ago

lydell commented 7 years ago
> require("shift-parser").parseScript("(([...a=1]))")
Error: Not reached
bakkot commented 7 years ago

Whoops. I seem to have introduced this in 1e18775ad4fe005b31f6bd1ad423295e217d62b0.

bakkot commented 7 years ago

Actually, no, this isn't a regression from 1e18775; we incorrectly reject it either way, just with a different error.