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
Quoting the spec, chapter 16. We support those marked with [x].
An implementation must treat any instance of the following kinds of errors as an early error:
Any syntax error.
Attempts to define an ObjectLiteral that has multiple get property assignments with the same name or multiple set property assignments with the same name.
Attempts to define an ObjectLiteral that has both a data property assignment and a get or set property assignment with the same name.
Errors in regular expression literals that are not implementation-defined syntax extensions.
Attempts in strict mode code to define an ObjectLiteral that has multiple data property assignments with the same name.
The occurrence of a WithStatement in strict mode code.
The occurrence of an Identifier value appearing more than once within a FormalParameterList of an individual strict mode FunctionDeclaration or FunctionExpression.
Improper uses of return, break, and continue.
Attempts to call PutValue on any value for which an early determination can be made that the value is not a Reference (for example, executing the assignment statement 3=4).
The text was updated successfully, but these errors were encountered:
I'm thinking that syntax restrictions ---pretty much any of the above except for an outright syntax error--- should be spun off into isValid in Syntax, since we would need to perform the same checks there too. However, the function would need to be extended to report the error position and kind. The former would be based on the position annotations in the AST.
Quoting the spec, chapter 16. We support those marked with [x].
An implementation must treat any instance of the following kinds of errors as an early error:
The text was updated successfully, but these errors were encountered: