shapesecurity / shift-parser-js

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

The `target` contextual keyword must not contain Unicode escape sequences #388

Closed bakkot closed 5 years ago

bakkot commented 5 years ago

See this test.

The following parses, and should not:

function f() {
  new.t\u0061rget;
}

cc @Protryon.

(Looks like we're not using expectContextualKeyword, which we should be.)