Test update for letting all early errors be SyntaxErrors

This commit is contained in:
Ross Kirsling 2019-05-02 23:56:41 -07:00 committed by Rick Waldron
parent ab046dc1ea
commit 1859ec66f4
63 changed files with 253 additions and 280 deletions

View File

@ -145,7 +145,7 @@ For example:
```
negative:
phase: parse
type: ReferenceError
type: SyntaxError
```
#### includes

View File

@ -198,16 +198,6 @@ negative:
unresolvable;
```
```js
/*---
negative:
phase: parse
type: ReferenceError
---*/
$DONOTEVALUATE();
'litera'=1;
```
```js
/*---
negative:

View File

@ -7,13 +7,12 @@ info: |
Operator(I/DO) and operand is not allowed, two IO(just as two DO
and their combination) between two references separated by [LT]
after automatic semicolon insertion lead to syntax error
ES6 specifies this as `ReferenceError`
es5id: 7.9_A5.7_T1
description: Try use Variable1 \n ++ \n ++ \n Variable2 construction
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,15 +2,15 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Reference Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
es6id: 12.14.1
It is an early Syntax Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
description: Assignment with non-simple target
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -3,19 +3,18 @@
/*---
esid: sec-assignment-operators-static-semantics-early-errors
es5id: 11.13.1-1-3
description: >
simple assignment throws ReferenceError if LeftHandSide is not a
simple assignment throws SyntaxError if LeftHandSide is not a
reference (boolean)
info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
It is an early Reference Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
It is an early Syntax Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,25 +2,24 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
es6id: 12.14.1
description: Applied to a "covered" new.target
info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
- It is an early Syntax Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
12.3.1.5 Static Semantics: IsValidSimpleAssignmentTarget
12.3.1.6 Static Semantics: AssignmentTargetType
NewTarget:
new.target
1. Return false.
1. Return invalid.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [new.target]
---*/

View File

@ -2,28 +2,28 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
es6id: 12.14.1
description: Applied to a "covered" YieldExpression
info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
- It is an early Syntax Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
12.15.3 Static Semantics: IsValidSimpleAssignmentTarget
AssignmentExpression:
YieldExpression
ArrowFunction
AsyncArrowFunction
LeftHandSideExpression = AssignmentExpression
LeftHandSideExpression AssignmentOperator AssignmentExpression
1. Return false.
1. Return invalid.
features: [generators]
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,25 +2,24 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
es6id: 12.14.1
description: Applied to new.target
info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
- It is an early Syntax Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
12.3.1.5 Static Semantics: IsValidSimpleAssignmentTarget
12.3.1.6 Static Semantics: AssignmentTargetType
NewTarget:
new.target
1. Return false.
1. Return invalid.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [new.target]
---*/

View File

@ -3,19 +3,18 @@
/*---
esid: sec-assignment-operators-static-semantics-early-errors
es5id: 11.13.1-1-4
description: >
simple assignment throws ReferenceError if LeftHandSide is not a
simple assignment throws SyntaxError if LeftHandSide is not a
reference (null)
info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
It is an early Reference Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
It is an early Syntax Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -3,19 +3,18 @@
/*---
esid: sec-assignment-operators-static-semantics-early-errors
es5id: 11.13.1-1-1
description: >
simple assignment throws ReferenceError if LeftHandSide is not a
simple assignment throws SyntaxError if LeftHandSide is not a
reference (number)
info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
It is an early Reference Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
It is an early Syntax Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -3,19 +3,18 @@
/*---
esid: sec-assignment-operators-static-semantics-early-errors
es5id: 11.13.1-1-2
description: >
simple assignment throws ReferenceError if LeftHandSide is not a
simple assignment throws SyntaxError if LeftHandSide is not a
reference (string)
info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
It is an early Reference Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
It is an early Syntax Error if LeftHandSideExpression is neither an
ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -8,7 +8,7 @@ description: >
Async function expressions are not a simple assignment target.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -8,7 +8,7 @@ description: >
Async generator function expressions are not a simple assignment target.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [async-iteration]
---*/

View File

@ -8,7 +8,7 @@ description: >
await is not a simple assignment target and cannot be assigned to.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
es6id: 12.14.1
It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
description: Compound addition assignment with non-simple target
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
es6id: 12.14.1
It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
description: Compound "bitwise and" assignment with non-simple target
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
es6id: 12.14.1
It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
description: Compound "bitwise or" assignment with non-simple target
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
es6id: 12.14.1
It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
description: Compound "bitwise xor" assignment with non-simple target
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
es6id: 12.14.1
It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
description: Compound division assignment with non-simple target
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
es6id: 12.14.1
It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
description: Compound "left shift" assignment with non-simple target
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
es6id: 12.14.1
It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
description: Compound "modular division" assignment with non-simple target
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
es6id: 12.14.1
It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
description: Compound multiplication assignment with non-simple target
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
es6id: 12.14.1
It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
description: Compound "right shift" assignment with non-simple target
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
es6id: 12.14.1
It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
description: Compound subtraction assignment with non-simple target
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
es6id: 12.14.1
It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
description: Compound "unsigned right shift" assignment with non-simple target
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -14,7 +14,7 @@ info: |
LeftHandSideExpression++
LeftHandSideExpression--
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -37,7 +37,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and UpdateExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
UpdateExpressions
esid: prod-ImportCall
info: |
@ -14,7 +14,7 @@ info: |
LeftHandSideExpression++
LeftHandSideExpression--
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -37,7 +37,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and UnaryExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
UpdateExpressions
esid: prod-ImportCall
info: |
@ -14,7 +14,7 @@ info: |
++UnaryExpression
--UnaryExpression
- It is an early Reference Error if AssignmentTargetType of UnaryExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of UnaryExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -37,7 +37,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and UnaryExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
UpdateExpressions
esid: prod-ImportCall
info: |
@ -14,7 +14,7 @@ info: |
++UnaryExpression
--UnaryExpression
- It is an early Reference Error if AssignmentTargetType of UnaryExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of UnaryExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -37,7 +37,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -3,7 +3,7 @@
/*---
description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
AssginmentTargetType then it should throw a ReferenceError if used in some
AssginmentTargetType then it should throw a SyntaxError if used in some
LHS Expression of a AssignmentExpression production
esid: prod-ImportCall
info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
- It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
LeftHandSideExpression:
NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [dynamic-import]
---*/

View File

@ -17,12 +17,12 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an
ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
It is an early Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an
ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid or strict.
flags: [module]
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [import.meta]
---*/

View File

@ -19,11 +19,11 @@ info: |
LeftHandSideExpression++
LeftHandSideExpression--
It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
flags: [module]
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [import.meta]
---*/

View File

@ -1,27 +1,26 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-postfix-expressions-static-semantics-early-errors
es6id: 12.4.1
esid: sec-update-expressions-static-semantics-early-errors
description: Applied to a "covered" new.target
info: |
PostfixExpression :
UpdateExpression :
LeftHandSideExpression ++
LeftHandSideExpression --
- It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
- It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
12.3.1.5 Static Semantics: IsValidSimpleAssignmentTarget
12.3.1.6 Static Semantics: AssignmentTargetType
NewTarget:
new.target
1. Return false.
1. Return invalid.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [new.target]
---*/

View File

@ -1,30 +1,30 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-postfix-expressions-static-semantics-early-errors
es6id: 12.4.1
esid: sec-update-expressions-static-semantics-early-errors
description: Applied to a "covered" YieldExpression
info: |
PostfixExpression :
UpdateExpression :
LeftHandSideExpression ++
LeftHandSideExpression --
- It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
- It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
12.15.3 Static Semantics: IsValidSimpleAssignmentTarget
12.15.3 Static Semantics: AssignmentTargetType
AssignmentExpression:
YieldExpression
ArrowFunction
AsyncArrowFunction
LeftHandSideExpression = AssignmentExpression
LeftHandSideExpression AssignmentOperator AssignmentExpression
1. Return false.
1. Return invalid.
features: [generators]
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -1,27 +1,26 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-postfix-expressions-static-semantics-early-errors
es6id: 12.4.1
esid: sec-update-expressions-static-semantics-early-errors
description: Applied to new.target
info: |
PostfixExpression :
UpdateExpression :
LeftHandSideExpression ++
LeftHandSideExpression --
- It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
- It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
12.3.1.5 Static Semantics: IsValidSimpleAssignmentTarget
12.3.1.6 Static Semantics: AssignmentTargetType
NewTarget:
new.target
1. Return false.
1. Return invalid.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [new.target]
---*/

View File

@ -1,27 +1,26 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-postfix-expressions-static-semantics-early-errors
es6id: 12.4.1
esid: sec-update-expressions-static-semantics-early-errors
description: Applied to a "covered" new.target
info: |
PostfixExpression :
UpdateExpression :
LeftHandSideExpression ++
LeftHandSideExpression --
- It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
- It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
12.3.1.5 Static Semantics: IsValidSimpleAssignmentTarget
12.3.1.6 Static Semantics: AssignmentTargetType
NewTarget:
new.target
1. Return false.
1. Return invalid.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [new.target]
---*/

View File

@ -1,30 +1,30 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-postfix-expressions-static-semantics-early-errors
es6id: 12.4.1
esid: sec-update-expressions-static-semantics-early-errors
description: Applied to a "covered" YieldExpression
info: |
PostfixExpression :
UpdateExpression :
LeftHandSideExpression ++
LeftHandSideExpression --
- It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
- It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
12.15.3 Static Semantics: IsValidSimpleAssignmentTarget
12.15.3 Static Semantics: AssignmentTargetType
AssignmentExpression:
YieldExpression
ArrowFunction
AsyncArrowFunction
LeftHandSideExpression = AssignmentExpression
LeftHandSideExpression AssignmentOperator AssignmentExpression
1. Return false.
1. Return invalid.
features: [generators]
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -1,27 +1,26 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-postfix-expressions-static-semantics-early-errors
es6id: 12.4.1
esid: sec-update-expressions-static-semantics-early-errors
description: Applied to new.target
info: |
PostfixExpression :
UpdateExpression :
LeftHandSideExpression ++
LeftHandSideExpression --
- It is an early Reference Error if IsValidSimpleAssignmentTarget of
LeftHandSideExpression is false.
- It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
12.3.1.5 Static Semantics: IsValidSimpleAssignmentTarget
12.3.1.6 Static Semantics: AssignmentTargetType
NewTarget:
new.target
1. Return false.
1. Return invalid.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [new.target]
---*/

View File

@ -1,27 +1,26 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-unary-operators-static-semantics-early-errors
es6id: 12.5.1
esid: sec-update-expressions-static-semantics-early-errors
description: Applied to a "covered" new.target
info: |
UnaryExpression :
++ UnaryExpression
-- UnaryExpression
- It is an early Reference Error if IsValidSimpleAssignmentTarget of
UnaryExpression is false.
- It is an early Syntax Error if IsValidSimpleAssignmentTarget of
UnaryExpression is invalid or strict.
12.3.1.5 Static Semantics: IsValidSimpleAssignmentTarget
12.3.1.6 Static Semantics: AssignmentTargetType
NewTarget:
new.target
1. Return false.
1. Return invalid.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [new.target]
---*/

View File

@ -1,30 +1,30 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-unary-operators-static-semantics-early-errors
es6id: 12.5.1
esid: sec-update-expressions-static-semantics-early-errors
description: Applied to a "covered" YieldExpression
info: |
UnaryExpression :
++ UnaryExpression
-- UnaryExpression
- It is an early Reference Error if IsValidSimpleAssignmentTarget of
UnaryExpression is false.
- It is an early Syntax Error if IsValidSimpleAssignmentTarget of
UnaryExpression is invalid or strict.
12.15.3 Static Semantics: IsValidSimpleAssignmentTarget
12.15.3 Static Semantics: AssignmentTargetType
AssignmentExpression:
YieldExpression
ArrowFunction
AsyncArrowFunction
LeftHandSideExpression = AssignmentExpression
LeftHandSideExpression AssignmentOperator AssignmentExpression
1. Return false.
1. Return invalid.
features: [generators]
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -1,27 +1,26 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-unary-operators-static-semantics-early-errors
es6id: 12.5.1
esid: sec-update-expressions-static-semantics-early-errors
description: Applied to new.target
info: |
UnaryExpression :
++ UnaryExpression
-- UnaryExpression
- It is an early Reference Error if IsValidSimpleAssignmentTarget of
UnaryExpression is false.
- It is an early Syntax Error if IsValidSimpleAssignmentTarget of
UnaryExpression is invalid or strict.
12.3.1.5 Static Semantics: IsValidSimpleAssignmentTarget
12.3.1.6 Static Semantics: AssignmentTargetType
NewTarget:
new.target
1. Return false.
1. Return invalid.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [new.target]
---*/

View File

@ -1,27 +1,26 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-unary-operators-static-semantics-early-errors
es6id: 12.5.1
esid: sec-update-expressions-static-semantics-early-errors
description: Applied to a "covered" new.target
info: |
UnaryExpression :
++ UnaryExpression
-- UnaryExpression
- It is an early Reference Error if IsValidSimpleAssignmentTarget of
UnaryExpression is false.
- It is an early Syntax Error if IsValidSimpleAssignmentTarget of
UnaryExpression is invalid or strict.
12.3.1.5 Static Semantics: IsValidSimpleAssignmentTarget
12.3.1.6 Static Semantics: AssignmentTargetType
NewTarget:
new.target
1. Return false.
1. Return invalid.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [new.target]
---*/

View File

@ -1,30 +1,30 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-unary-operators-static-semantics-early-errors
es6id: 12.5.1
esid: sec-update-expressions-static-semantics-early-errors
description: Applied to a "covered" YieldExpression
info: |
UnaryExpression :
++ UnaryExpression
-- UnaryExpression
- It is an early Reference Error if IsValidSimpleAssignmentTarget of
UnaryExpression is false.
- It is an early Syntax Error if IsValidSimpleAssignmentTarget of
UnaryExpression is invalid or strict.
12.15.3 Static Semantics: IsValidSimpleAssignmentTarget
12.15.3 Static Semantics: AssignmentTargetType
AssignmentExpression:
YieldExpression
ArrowFunction
AsyncArrowFunction
LeftHandSideExpression = AssignmentExpression
LeftHandSideExpression AssignmentOperator AssignmentExpression
1. Return false.
1. Return invalid.
features: [generators]
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -1,27 +1,26 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-unary-operators-static-semantics-early-errors
es6id: 12.5.1
esid: sec-update-expressions-static-semantics-early-errors
description: Applied to new.target
info: |
UnaryExpression :
++ UnaryExpression
-- UnaryExpression
- It is an early Reference Error if IsValidSimpleAssignmentTarget of
UnaryExpression is false.
- It is an early Syntax Error if IsValidSimpleAssignmentTarget of
UnaryExpression is invalid or strict.
12.3.1.5 Static Semantics: IsValidSimpleAssignmentTarget
12.3.1.6 Static Semantics: AssignmentTargetType
NewTarget:
new.target
1. Return false.
1. Return invalid.
negative:
phase: parse
type: ReferenceError
type: SyntaxError
features: [new.target]
---*/

View File

@ -7,7 +7,7 @@ es5id: 11.1.1_A1
description: Checking if execution of "this=1" fails
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -11,9 +11,8 @@ info: |
2. Parse sourceText using Module as the goal symbol and analyze the parse
result for any Early Error conditions. If the parse was successful and
no early errors were found, let body be the resulting parse tree.
Otherwise, let body be a List of one or more SyntaxError or
ReferenceError objects representing the parsing errors and/or early
errors.
Otherwise, let body be a List of one or more SyntaxError objects
representing the parsing errors and/or early errors.
flags: [module]
---*/

View File

@ -1,19 +1,18 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Early ReferenceError resulting from module parsing
description: Early SyntaxError resulting from module parsing
esid: sec-parsemodule
negative:
phase: parse
type: ReferenceError
type: SyntaxError
info: |
[...]
2. Parse sourceText using Module as the goal symbol and analyze the parse
result for any Early Error conditions. If the parse was successful and
no early errors were found, let body be the resulting parse tree.
Otherwise, let body be a List of one or more SyntaxError or
ReferenceError objects representing the parsing errors and/or early
errors.
Otherwise, let body be a List of one or more SyntaxError objects
representing the parsing errors and/or early errors.
flags: [module]
---*/

View File

@ -7,7 +7,7 @@ es5id: 8.3_A2.1
description: Checking if execution of "true=1" fails
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -7,7 +7,7 @@ es5id: 8.3_A2.2
description: Checking if execution of "false=0" fails
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -7,7 +7,7 @@ es5id: 8.7.2_A1_T1
description: Checking if execution of "'litera'=1;" fails
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -7,7 +7,7 @@ es5id: 8.7.2_A1_T2
description: Checking if execution of "1=1" fails
negative:
phase: parse
type: ReferenceError
type: SyntaxError
---*/
$DONOTEVALUATE();