Skip to content

Missing syntax restrictions #71

Open
@achudnov

Description

@achudnov

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).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions