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: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
``` ```
#### includes #### includes

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -14,7 +14,7 @@ info: |
LeftHandSideExpression++ LeftHandSideExpression++
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: LeftHandSideExpression:
NewExpression NewExpression
@ -37,7 +37,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and UpdateExpression, but it is an invalid 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 UpdateExpressions
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -14,7 +14,7 @@ info: |
LeftHandSideExpression++ LeftHandSideExpression++
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: LeftHandSideExpression:
NewExpression NewExpression
@ -37,7 +37,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and UnaryExpression, but it is an invalid 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 UpdateExpressions
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -14,7 +14,7 @@ info: |
++UnaryExpression ++UnaryExpression
--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: LeftHandSideExpression:
NewExpression NewExpression
@ -37,7 +37,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and UnaryExpression, but it is an invalid 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 UpdateExpressions
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -14,7 +14,7 @@ info: |
++UnaryExpression ++UnaryExpression
--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: LeftHandSideExpression:
NewExpression NewExpression
@ -37,7 +37,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

@ -3,7 +3,7 @@
/*--- /*---
description: > description: >
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid 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 LHS Expression of a AssignmentExpression production
esid: prod-ImportCall esid: prod-ImportCall
info: | info: |
@ -12,11 +12,11 @@ info: |
AssignmentExpression : LeftHandSideExpression = AssignmentExpression 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 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: LeftHandSideExpression:
NewExpression NewExpression
@ -39,7 +39,7 @@ info: |
1. Return invalid 1. Return invalid
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [dynamic-import] features: [dynamic-import]
---*/ ---*/

View File

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

View File

@ -19,11 +19,11 @@ info: |
LeftHandSideExpression++ LeftHandSideExpression++
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] flags: [module]
negative: negative:
phase: parse phase: parse
type: ReferenceError type: SyntaxError
features: [import.meta] features: [import.meta]
---*/ ---*/

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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