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

`yield` flag is passed to arrow bodies #270

Closed bakkot closed 8 years ago

bakkot commented 8 years ago

function*f(){x=>x*yield} should parse (with yield being treated as an identifier expression); it does not.

michaelficarra commented 8 years ago

We should also add tests for yield in various arrow parameter positions if we don't already have them. See https://github.com/tc39/ecma262/issues/397 and https://github.com/Microsoft/ChakraCore/issues/333.

bakkot commented 8 years ago

@michaelficarra, we do have such tests.