You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
testParseFailure("\"use strict\"; var [yield];","Unexpected token yield");
// It is a Syntax Error if the code match by this production is within the GeneratorBody of a GeneratorMethod, GeneratorDeclaration, or GeneratorExpression.
// It is a Syntax Error if this production has a [Yield] parameter and StringValue of Identifier is "yield".
// (error)
// It is a Syntax Error if this phrase is contained in strict code and the StringValue of IdentifierName is: "implements", "interface", "let", "package", "private", "protected", "public", "static", or "yield".
testParseFailure("\"use strict\"; +implements;","Use of future reserved word in strict mode");
testParseFailure("\"use strict\"; +interface;","Use of future reserved word in strict mode");
Especially this section:
shift-parser-js/test/early-errors.js
Lines 42 to 111 in 407b483
The text was updated successfully, but these errors were encountered: