shapesecurity / shift-parser-js

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

Contextual keywords cannot contain unicode escape sequences #376

Closed bakkot closed 6 years ago

bakkot commented 7 years ago

Followup to #307; we're still missing some cases. None of the following are programs, and we accept all of them.

({ g\u0065t x(){} });
export {a \u0061s b} from "";
export {} fr\u006fm "";
for (a o\u0066 b);
class a {
  st\u0061tic m(){}
}

Gotta be sure to get this right with async/await too.