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 getters #289

Closed bakkot closed 8 years ago

bakkot commented 8 years ago

Thus the parser incorrectly accepts

function *a(){
  "use strict";
  ({get b(){yield}});
}

This is not legal.

Oddly, setters are handled correctly.