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

Allow super in computed method names as appropriate #359

Closed bakkot closed 7 years ago

bakkot commented 7 years ago

Fixes #358.

I introduced a testParseSuccess which allows asserting a parse succeeds without writing out the whole tree for it, because sometimes you don't actually care to assert that something is parsed to a particular AST.

michaelficarra commented 7 years ago

Can you add some tests for super in parameter defaults position?

bakkot commented 7 years ago

@michaelficarra Done.