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

Too many dots causes earlyErrors "false" test to fail #320

Closed Shilpi3 closed 7 years ago

Shilpi3 commented 7 years ago

input script 558: (..a) input script 559: (a, ...b) input script 560: (((...a))) input script 561: (((a, ...b))

earlyErrors : false

`shift-parser-js/dist/parser.js:170 throw this.createUnexpected(this.lookahead); ^

Error: [1:7]: Unexpected end of input`

bakkot commented 7 years ago

This are all misclassified: see the supplemental syntax section here. See https://github.com/tc39/test262-parser-tests/issues/11.