diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-binding.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-binding.result.js deleted file mode 100644 index 2f3a7714..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-binding.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 411, - "lineNumber": 16, - "column": 6, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-binding.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-binding.src.js deleted file mode 100644 index c83c3a3c..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-binding.src.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: The `await` keyword is disallowed in the BindingIdentifier position -features: [class-static-block] -negative: - phase: parse - type: SyntaxError ----*/ - -$DONOTEVALUATE(); - -class C { - static { - (await => 0); - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-reference.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-reference.result.js deleted file mode 100644 index 28a02b6f..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-reference.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 418, - "lineNumber": 16, - "column": 11, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-reference.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-reference.src.js deleted file mode 100644 index 8b20af7e..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-reference.src.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: The `await` keyword is disallowed in the IdentifierReference position -features: [class-static-block] -negative: - phase: parse - type: SyntaxError ----*/ - -$DONOTEVALUATE(); - -class C { - static { - ((x = await) => 0); - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-class-static-init-await-binding.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-class-static-init-await-binding.result.js deleted file mode 100644 index e4ec52ea..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-class-static-init-await-binding.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 562, - "lineNumber": 21, - "column": 12, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-class-static-init-await-binding.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-class-static-init-await-binding.src.js deleted file mode 100644 index c99b04c5..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-class-static-init-await-binding.src.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: The `await` keyword is disallowed as a BindingIdentifier -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - [...] - - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true. -features: [class-static-block] -negative: - phase: parse - type: SyntaxError ----*/ - -$DONOTEVALUATE(); - -class C { - static { - (class await {}); - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-binding.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-binding.module-result.js deleted file mode 100644 index 33ac0321..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-binding.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 536, - "lineNumber": 16, - "column": 17, - "message": "Cannot use keyword 'await' outside an async function" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-binding.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-binding.result.js deleted file mode 100644 index af14e47e..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-binding.result.js +++ /dev/null @@ -1,513 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 499, - 560 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 499, - 560 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 505, - 506 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 507, - 560 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 511, - 558 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 34 - } - }, - "range": [ - 524, - 554 - ], - "expression": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 32 - } - }, - "range": [ - 525, - 552 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 16 - }, - "end": { - "line": 16, - "column": 21 - } - }, - "range": [ - 536, - 541 - ], - "name": "await" - }, - "expression": false, - "generator": true, - "async": false, - "params": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 23 - }, - "end": { - "line": 16, - "column": 28 - } - }, - "range": [ - 543, - 548 - ], - "name": "await" - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 30 - }, - "end": { - "line": 16, - "column": 32 - } - }, - "range": [ - 550, - 552 - ], - "body": [] - } - } - } - ] - } - ] - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 5 - } - }, - "range": [ - 499, - 504 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 505, - 506 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 507, - 508 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 8 - } - }, - "range": [ - 511, - 517 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 15, - "column": 9 - }, - "end": { - "line": 15, - "column": 10 - } - }, - "range": [ - 518, - 519 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 5 - } - }, - "range": [ - 524, - 525 - ] - }, - { - "type": "Keyword", - "value": "function", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 13 - } - }, - "range": [ - 525, - 533 - ] - }, - { - "type": "Punctuator", - "value": "*", - "loc": { - "start": { - "line": 16, - "column": 14 - }, - "end": { - "line": 16, - "column": 15 - } - }, - "range": [ - 534, - 535 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 16 - }, - "end": { - "line": 16, - "column": 21 - } - }, - "range": [ - 536, - 541 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 22 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 542, - 543 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 23 - }, - "end": { - "line": 16, - "column": 28 - } - }, - "range": [ - 543, - 548 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 28 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 548, - 549 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 30 - }, - "end": { - "line": 16, - "column": 31 - } - }, - "range": [ - 550, - 551 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 31 - }, - "end": { - "line": 16, - "column": 32 - } - }, - "range": [ - 551, - 552 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 32 - }, - "end": { - "line": 16, - "column": 33 - } - }, - "range": [ - 552, - 553 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 33 - }, - "end": { - "line": 16, - "column": 34 - } - }, - "range": [ - 553, - 554 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 557, - 558 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 559, - 560 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-binding.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-binding.src.js deleted file mode 100644 index 09b52e8e..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-binding.src.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: The `await` keyword is interpreted as an Identifier within generator function expressions -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - [...] - - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true. -features: [class-static-block] ----*/ - -class C { - static { - (function * await (await) {}); - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-invalid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-invalid.result.js deleted file mode 100644 index b3a81345..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-invalid.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 723, - "lineNumber": 23, - "column": 8, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-invalid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-invalid.src.js deleted file mode 100644 index 2f693b46..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-invalid.src.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: IdentifierReference may not be `await` within class static blocks -info: | - IdentifierReference : Identifier - - - It is a Syntax Error if the code matched by this production is nested, - directly or indirectly (but not crossing function or static initialization - block boundaries), within a ClassStaticBlock and the StringValue of - Identifier is "arguments" or "await". -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - ({ await }); - } -} - diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-accessor.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-accessor.module-result.js deleted file mode 100644 index e43b8746..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-accessor.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 489, - "lineNumber": 14, - "column": 5, - "message": "Cannot use keyword 'await' outside an async function" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-accessor.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-accessor.result.js deleted file mode 100644 index eef5172b..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-accessor.result.js +++ /dev/null @@ -1,2042 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 28, - "column": 43 - } - }, - "range": [ - 485, - 761 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 14 - } - }, - "range": [ - 485, - 499 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 489, - 498 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 489, - 494 - ], - "name": "await" - }, - "init": { - "type": "Literal", - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 497, - 498 - ], - "value": 0, - "raw": "0" - } - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 24 - } - }, - "range": [ - 500, - 524 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 504, - 513 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 504, - 513 - ], - "name": "fromParam" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 515, - 523 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 515, - 523 - ], - "name": "fromBody" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "range": [ - 526, - 666 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 532, - 533 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "range": [ - 534, - 666 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 24, - "column": 3 - } - }, - "range": [ - 538, - 664 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 23, - "column": 28 - } - }, - "range": [ - 551, - 660 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 23, - "column": 27 - } - }, - "range": [ - 551, - 659 - ], - "operator": "=", - "left": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 23, - "column": 15 - } - }, - "range": [ - 551, - 647 - ], - "object": { - "type": "ObjectExpression", - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 23, - "column": 5 - } - }, - "range": [ - 552, - 637 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 560, - 631 - ], - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 10 - }, - "end": { - "line": 20, - "column": 18 - } - }, - "range": [ - 564, - 572 - ], - "name": "accessor" - }, - "kind": "set", - "value": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 20, - "column": 18 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 572, - 631 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "loc": { - "start": { - "line": 20, - "column": 19 - }, - "end": { - "line": 20, - "column": 40 - } - }, - "range": [ - 573, - 594 - ], - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 19 - }, - "end": { - "line": 20, - "column": 20 - } - }, - "range": [ - 573, - 574 - ], - "name": "x" - }, - "right": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 20, - "column": 23 - }, - "end": { - "line": 20, - "column": 40 - } - }, - "range": [ - 577, - 594 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 23 - }, - "end": { - "line": 20, - "column": 32 - } - }, - "range": [ - 577, - 586 - ], - "name": "fromParam" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 35 - }, - "end": { - "line": 20, - "column": 40 - } - }, - "range": [ - 589, - 594 - ], - "name": "await" - } - } - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 20, - "column": 42 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 596, - 631 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 25 - } - }, - "range": [ - 606, - 623 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 24 - } - }, - "range": [ - 606, - 622 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 16 - } - }, - "range": [ - 606, - 614 - ], - "name": "fromBody" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 21, - "column": 19 - }, - "end": { - "line": 21, - "column": 24 - } - }, - "range": [ - 617, - 622 - ], - "name": "await" - } - } - } - ] - } - } - } - ] - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 15 - } - }, - "range": [ - 639, - 647 - ], - "name": "accessor" - }, - "computed": false, - "optional": false - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 23, - "column": 18 - }, - "end": { - "line": 23, - "column": 27 - } - }, - "range": [ - 650, - 659 - ], - "name": "undefined" - } - } - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 49 - } - }, - "range": [ - 668, - 717 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 48 - } - }, - "range": [ - 668, - 716 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 16 - } - }, - "range": [ - 668, - 684 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 6 - } - }, - "range": [ - 668, - 674 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 16 - } - }, - "range": [ - 675, - 684 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 27, - "column": 17 - }, - "end": { - "line": 27, - "column": 26 - } - }, - "range": [ - 685, - 694 - ], - "name": "fromParam" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 27, - "column": 28 - }, - "end": { - "line": 27, - "column": 29 - } - }, - "range": [ - 696, - 697 - ], - "value": 0, - "raw": "0" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 27, - "column": 31 - }, - "end": { - "line": 27, - "column": 47 - } - }, - "range": [ - 699, - 715 - ], - "value": "from parameter", - "raw": "'from parameter'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 43 - } - }, - "range": [ - 718, - 761 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 42 - } - }, - "range": [ - 718, - 760 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 16 - } - }, - "range": [ - 718, - 734 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 6 - } - }, - "range": [ - 718, - 724 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 28, - "column": 7 - }, - "end": { - "line": 28, - "column": 16 - } - }, - "range": [ - 725, - 734 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 28, - "column": 25 - } - }, - "range": [ - 735, - 743 - ], - "name": "fromBody" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 28, - "column": 27 - }, - "end": { - "line": 28, - "column": 28 - } - }, - "range": [ - 745, - 746 - ], - "value": 0, - "raw": "0" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 28, - "column": 30 - }, - "end": { - "line": 28, - "column": 41 - } - }, - "range": [ - 748, - 759 - ], - "value": "from body", - "raw": "'from body'" - } - ], - "optional": false - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 3 - } - }, - "range": [ - 485, - 488 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 489, - 494 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 14, - "column": 10 - }, - "end": { - "line": 14, - "column": 11 - } - }, - "range": [ - 495, - 496 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 497, - 498 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 14, - "column": 13 - }, - "end": { - "line": 14, - "column": 14 - } - }, - "range": [ - 498, - 499 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - }, - "range": [ - 500, - 503 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 504, - 513 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 15, - "column": 13 - }, - "end": { - "line": 15, - "column": 14 - } - }, - "range": [ - 513, - 514 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 515, - 523 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 15, - "column": 23 - }, - "end": { - "line": 15, - "column": 24 - } - }, - "range": [ - 523, - 524 - ] - }, - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 5 - } - }, - "range": [ - 526, - 531 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 532, - 533 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 9 - } - }, - "range": [ - 534, - 535 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 8 - } - }, - "range": [ - 538, - 544 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 18, - "column": 9 - }, - "end": { - "line": 18, - "column": 10 - } - }, - "range": [ - 545, - 546 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 5 - } - }, - "range": [ - 551, - 552 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 19, - "column": 6 - } - }, - "range": [ - 552, - 553 - ] - }, - { - "type": "Identifier", - "value": "set", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 9 - } - }, - "range": [ - 560, - 563 - ] - }, - { - "type": "Identifier", - "value": "accessor", - "loc": { - "start": { - "line": 20, - "column": 10 - }, - "end": { - "line": 20, - "column": 18 - } - }, - "range": [ - 564, - 572 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 20, - "column": 18 - }, - "end": { - "line": 20, - "column": 19 - } - }, - "range": [ - 572, - 573 - ] - }, - { - "type": "Identifier", - "value": "x", - "loc": { - "start": { - "line": 20, - "column": 19 - }, - "end": { - "line": 20, - "column": 20 - } - }, - "range": [ - 573, - 574 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 20, - "column": 21 - }, - "end": { - "line": 20, - "column": 22 - } - }, - "range": [ - 575, - 576 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 20, - "column": 23 - }, - "end": { - "line": 20, - "column": 32 - } - }, - "range": [ - 577, - 586 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 20, - "column": 33 - }, - "end": { - "line": 20, - "column": 34 - } - }, - "range": [ - 587, - 588 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 20, - "column": 35 - }, - "end": { - "line": 20, - "column": 40 - } - }, - "range": [ - 589, - 594 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 20, - "column": 40 - }, - "end": { - "line": 20, - "column": 41 - } - }, - "range": [ - 594, - 595 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 20, - "column": 42 - }, - "end": { - "line": 20, - "column": 43 - } - }, - "range": [ - 596, - 597 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 16 - } - }, - "range": [ - 606, - 614 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 21, - "column": 17 - }, - "end": { - "line": 21, - "column": 18 - } - }, - "range": [ - 615, - 616 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 21, - "column": 19 - }, - "end": { - "line": 21, - "column": 24 - } - }, - "range": [ - 617, - 622 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 21, - "column": 24 - }, - "end": { - "line": 21, - "column": 25 - } - }, - "range": [ - 622, - 623 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 630, - 631 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 5 - } - }, - "range": [ - 636, - 637 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 23, - "column": 5 - }, - "end": { - "line": 23, - "column": 6 - } - }, - "range": [ - 637, - 638 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 7 - } - }, - "range": [ - 638, - 639 - ] - }, - { - "type": "Identifier", - "value": "accessor", - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 15 - } - }, - "range": [ - 639, - 647 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 23, - "column": 16 - }, - "end": { - "line": 23, - "column": 17 - } - }, - "range": [ - 648, - 649 - ] - }, - { - "type": "Identifier", - "value": "undefined", - "loc": { - "start": { - "line": 23, - "column": 18 - }, - "end": { - "line": 23, - "column": 27 - } - }, - "range": [ - 650, - 659 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 23, - "column": 27 - }, - "end": { - "line": 23, - "column": 28 - } - }, - "range": [ - 659, - 660 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 3 - } - }, - "range": [ - 663, - 664 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "range": [ - 665, - 666 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 6 - } - }, - "range": [ - 668, - 674 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 27, - "column": 6 - }, - "end": { - "line": 27, - "column": 7 - } - }, - "range": [ - 674, - 675 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 16 - } - }, - "range": [ - 675, - 684 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 27, - "column": 16 - }, - "end": { - "line": 27, - "column": 17 - } - }, - "range": [ - 684, - 685 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 27, - "column": 17 - }, - "end": { - "line": 27, - "column": 26 - } - }, - "range": [ - 685, - 694 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 27, - "column": 26 - }, - "end": { - "line": 27, - "column": 27 - } - }, - "range": [ - 694, - 695 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 27, - "column": 28 - }, - "end": { - "line": 27, - "column": 29 - } - }, - "range": [ - 696, - 697 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 27, - "column": 29 - }, - "end": { - "line": 27, - "column": 30 - } - }, - "range": [ - 697, - 698 - ] - }, - { - "type": "String", - "value": "'from parameter'", - "loc": { - "start": { - "line": 27, - "column": 31 - }, - "end": { - "line": 27, - "column": 47 - } - }, - "range": [ - 699, - 715 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 27, - "column": 47 - }, - "end": { - "line": 27, - "column": 48 - } - }, - "range": [ - 715, - 716 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 27, - "column": 48 - }, - "end": { - "line": 27, - "column": 49 - } - }, - "range": [ - 716, - 717 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 6 - } - }, - "range": [ - 718, - 724 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 28, - "column": 7 - } - }, - "range": [ - 724, - 725 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 28, - "column": 7 - }, - "end": { - "line": 28, - "column": 16 - } - }, - "range": [ - 725, - 734 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 28, - "column": 16 - }, - "end": { - "line": 28, - "column": 17 - } - }, - "range": [ - 734, - 735 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 28, - "column": 25 - } - }, - "range": [ - 735, - 743 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 28, - "column": 25 - }, - "end": { - "line": 28, - "column": 26 - } - }, - "range": [ - 743, - 744 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 28, - "column": 27 - }, - "end": { - "line": 28, - "column": 28 - } - }, - "range": [ - 745, - 746 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 28, - "column": 28 - }, - "end": { - "line": 28, - "column": 29 - } - }, - "range": [ - 746, - 747 - ] - }, - { - "type": "String", - "value": "'from body'", - "loc": { - "start": { - "line": 28, - "column": 30 - }, - "end": { - "line": 28, - "column": 41 - } - }, - "range": [ - 748, - 759 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 28, - "column": 41 - }, - "end": { - "line": 28, - "column": 42 - } - }, - "range": [ - 759, - 760 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 28, - "column": 42 - }, - "end": { - "line": 28, - "column": 43 - } - }, - "range": [ - 760, - 761 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-accessor.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-accessor.src.js deleted file mode 100644 index 85e4fbc3..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-accessor.src.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: The `await` keyword is interpreted as an identifier within accessor methods -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - [...] - - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true. -features: [class-static-block] ----*/ - -var await = 0; -var fromParam, fromBody; - -class C { - static { - ({ - set accessor(x = fromParam = await) { - fromBody = await; - } - }).accessor = undefined; - } -} - -assert.sameValue(fromParam, 0, 'from parameter'); -assert.sameValue(fromBody, 0, 'from body'); diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-normal.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-normal.module-result.js deleted file mode 100644 index f825f4ce..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-normal.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 480, - "lineNumber": 14, - "column": 5, - "message": "Cannot use keyword 'await' outside an async function" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-normal.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-normal.result.js deleted file mode 100644 index 7cd30297..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-normal.result.js +++ /dev/null @@ -1,2007 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 28, - "column": 43 - } - }, - "range": [ - 476, - 734 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 14 - } - }, - "range": [ - 476, - 490 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 480, - 489 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 480, - 485 - ], - "name": "await" - }, - "init": { - "type": "Literal", - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 488, - 489 - ], - "value": 0, - "raw": "0" - } - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 24 - } - }, - "range": [ - 491, - 515 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 495, - 504 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 495, - 504 - ], - "name": "fromParam" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 506, - 514 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 506, - 514 - ], - "name": "fromBody" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "range": [ - 517, - 639 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 523, - 524 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "range": [ - 525, - 639 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 24, - "column": 3 - } - }, - "range": [ - 529, - 637 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 23, - "column": 16 - } - }, - "range": [ - 542, - 633 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 23, - "column": 15 - } - }, - "range": [ - 542, - 632 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 23, - "column": 13 - } - }, - "range": [ - 542, - 630 - ], - "object": { - "type": "ObjectExpression", - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 23, - "column": 5 - } - }, - "range": [ - 543, - 622 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 551, - 616 - ], - "method": true, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 12 - } - }, - "range": [ - 551, - 557 - ], - "name": "method" - }, - "kind": "init", - "value": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 20, - "column": 12 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 557, - 616 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "loc": { - "start": { - "line": 20, - "column": 13 - }, - "end": { - "line": 20, - "column": 34 - } - }, - "range": [ - 558, - 579 - ], - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 13 - }, - "end": { - "line": 20, - "column": 14 - } - }, - "range": [ - 558, - 559 - ], - "name": "x" - }, - "right": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 20, - "column": 17 - }, - "end": { - "line": 20, - "column": 34 - } - }, - "range": [ - 562, - 579 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 17 - }, - "end": { - "line": 20, - "column": 26 - } - }, - "range": [ - 562, - 571 - ], - "name": "fromParam" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 29 - }, - "end": { - "line": 20, - "column": 34 - } - }, - "range": [ - 574, - 579 - ], - "name": "await" - } - } - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 20, - "column": 36 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 581, - 616 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 25 - } - }, - "range": [ - 591, - 608 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 24 - } - }, - "range": [ - 591, - 607 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 16 - } - }, - "range": [ - 591, - 599 - ], - "name": "fromBody" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 21, - "column": 19 - }, - "end": { - "line": 21, - "column": 24 - } - }, - "range": [ - 602, - 607 - ], - "name": "await" - } - } - } - ] - } - } - } - ] - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 13 - } - }, - "range": [ - 624, - 630 - ], - "name": "method" - }, - "computed": false, - "optional": false - }, - "arguments": [], - "optional": false - } - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 49 - } - }, - "range": [ - 641, - 690 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 48 - } - }, - "range": [ - 641, - 689 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 16 - } - }, - "range": [ - 641, - 657 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 6 - } - }, - "range": [ - 641, - 647 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 16 - } - }, - "range": [ - 648, - 657 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 27, - "column": 17 - }, - "end": { - "line": 27, - "column": 26 - } - }, - "range": [ - 658, - 667 - ], - "name": "fromParam" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 27, - "column": 28 - }, - "end": { - "line": 27, - "column": 29 - } - }, - "range": [ - 669, - 670 - ], - "value": 0, - "raw": "0" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 27, - "column": 31 - }, - "end": { - "line": 27, - "column": 47 - } - }, - "range": [ - 672, - 688 - ], - "value": "from parameter", - "raw": "'from parameter'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 43 - } - }, - "range": [ - 691, - 734 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 42 - } - }, - "range": [ - 691, - 733 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 16 - } - }, - "range": [ - 691, - 707 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 6 - } - }, - "range": [ - 691, - 697 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 28, - "column": 7 - }, - "end": { - "line": 28, - "column": 16 - } - }, - "range": [ - 698, - 707 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 28, - "column": 25 - } - }, - "range": [ - 708, - 716 - ], - "name": "fromBody" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 28, - "column": 27 - }, - "end": { - "line": 28, - "column": 28 - } - }, - "range": [ - 718, - 719 - ], - "value": 0, - "raw": "0" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 28, - "column": 30 - }, - "end": { - "line": 28, - "column": 41 - } - }, - "range": [ - 721, - 732 - ], - "value": "from body", - "raw": "'from body'" - } - ], - "optional": false - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 3 - } - }, - "range": [ - 476, - 479 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 480, - 485 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 14, - "column": 10 - }, - "end": { - "line": 14, - "column": 11 - } - }, - "range": [ - 486, - 487 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 488, - 489 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 14, - "column": 13 - }, - "end": { - "line": 14, - "column": 14 - } - }, - "range": [ - 489, - 490 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - }, - "range": [ - 491, - 494 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 495, - 504 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 15, - "column": 13 - }, - "end": { - "line": 15, - "column": 14 - } - }, - "range": [ - 504, - 505 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 506, - 514 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 15, - "column": 23 - }, - "end": { - "line": 15, - "column": 24 - } - }, - "range": [ - 514, - 515 - ] - }, - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 5 - } - }, - "range": [ - 517, - 522 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 523, - 524 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 9 - } - }, - "range": [ - 525, - 526 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 8 - } - }, - "range": [ - 529, - 535 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 18, - "column": 9 - }, - "end": { - "line": 18, - "column": 10 - } - }, - "range": [ - 536, - 537 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 5 - } - }, - "range": [ - 542, - 543 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 19, - "column": 6 - } - }, - "range": [ - 543, - 544 - ] - }, - { - "type": "Identifier", - "value": "method", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 12 - } - }, - "range": [ - 551, - 557 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 20, - "column": 12 - }, - "end": { - "line": 20, - "column": 13 - } - }, - "range": [ - 557, - 558 - ] - }, - { - "type": "Identifier", - "value": "x", - "loc": { - "start": { - "line": 20, - "column": 13 - }, - "end": { - "line": 20, - "column": 14 - } - }, - "range": [ - 558, - 559 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 20, - "column": 15 - }, - "end": { - "line": 20, - "column": 16 - } - }, - "range": [ - 560, - 561 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 20, - "column": 17 - }, - "end": { - "line": 20, - "column": 26 - } - }, - "range": [ - 562, - 571 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 20, - "column": 27 - }, - "end": { - "line": 20, - "column": 28 - } - }, - "range": [ - 572, - 573 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 20, - "column": 29 - }, - "end": { - "line": 20, - "column": 34 - } - }, - "range": [ - 574, - 579 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 20, - "column": 34 - }, - "end": { - "line": 20, - "column": 35 - } - }, - "range": [ - 579, - 580 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 20, - "column": 36 - }, - "end": { - "line": 20, - "column": 37 - } - }, - "range": [ - 581, - 582 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 16 - } - }, - "range": [ - 591, - 599 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 21, - "column": 17 - }, - "end": { - "line": 21, - "column": 18 - } - }, - "range": [ - 600, - 601 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 21, - "column": 19 - }, - "end": { - "line": 21, - "column": 24 - } - }, - "range": [ - 602, - 607 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 21, - "column": 24 - }, - "end": { - "line": 21, - "column": 25 - } - }, - "range": [ - 607, - 608 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 615, - 616 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 5 - } - }, - "range": [ - 621, - 622 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 23, - "column": 5 - }, - "end": { - "line": 23, - "column": 6 - } - }, - "range": [ - 622, - 623 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 7 - } - }, - "range": [ - 623, - 624 - ] - }, - { - "type": "Identifier", - "value": "method", - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 13 - } - }, - "range": [ - 624, - 630 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 23, - "column": 13 - }, - "end": { - "line": 23, - "column": 14 - } - }, - "range": [ - 630, - 631 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 23, - "column": 14 - }, - "end": { - "line": 23, - "column": 15 - } - }, - "range": [ - 631, - 632 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 23, - "column": 15 - }, - "end": { - "line": 23, - "column": 16 - } - }, - "range": [ - 632, - 633 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 3 - } - }, - "range": [ - 636, - 637 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "range": [ - 638, - 639 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 6 - } - }, - "range": [ - 641, - 647 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 27, - "column": 6 - }, - "end": { - "line": 27, - "column": 7 - } - }, - "range": [ - 647, - 648 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 16 - } - }, - "range": [ - 648, - 657 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 27, - "column": 16 - }, - "end": { - "line": 27, - "column": 17 - } - }, - "range": [ - 657, - 658 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 27, - "column": 17 - }, - "end": { - "line": 27, - "column": 26 - } - }, - "range": [ - 658, - 667 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 27, - "column": 26 - }, - "end": { - "line": 27, - "column": 27 - } - }, - "range": [ - 667, - 668 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 27, - "column": 28 - }, - "end": { - "line": 27, - "column": 29 - } - }, - "range": [ - 669, - 670 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 27, - "column": 29 - }, - "end": { - "line": 27, - "column": 30 - } - }, - "range": [ - 670, - 671 - ] - }, - { - "type": "String", - "value": "'from parameter'", - "loc": { - "start": { - "line": 27, - "column": 31 - }, - "end": { - "line": 27, - "column": 47 - } - }, - "range": [ - 672, - 688 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 27, - "column": 47 - }, - "end": { - "line": 27, - "column": 48 - } - }, - "range": [ - 688, - 689 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 27, - "column": 48 - }, - "end": { - "line": 27, - "column": 49 - } - }, - "range": [ - 689, - 690 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 6 - } - }, - "range": [ - 691, - 697 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 28, - "column": 7 - } - }, - "range": [ - 697, - 698 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 28, - "column": 7 - }, - "end": { - "line": 28, - "column": 16 - } - }, - "range": [ - 698, - 707 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 28, - "column": 16 - }, - "end": { - "line": 28, - "column": 17 - } - }, - "range": [ - 707, - 708 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 28, - "column": 25 - } - }, - "range": [ - 708, - 716 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 28, - "column": 25 - }, - "end": { - "line": 28, - "column": 26 - } - }, - "range": [ - 716, - 717 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 28, - "column": 27 - }, - "end": { - "line": 28, - "column": 28 - } - }, - "range": [ - 718, - 719 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 28, - "column": 28 - }, - "end": { - "line": 28, - "column": 29 - } - }, - "range": [ - 719, - 720 - ] - }, - { - "type": "String", - "value": "'from body'", - "loc": { - "start": { - "line": 28, - "column": 30 - }, - "end": { - "line": 28, - "column": 41 - } - }, - "range": [ - 721, - 732 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 28, - "column": 41 - }, - "end": { - "line": 28, - "column": 42 - } - }, - "range": [ - 732, - 733 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 28, - "column": 42 - }, - "end": { - "line": 28, - "column": 43 - } - }, - "range": [ - 733, - 734 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-normal.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-normal.src.js deleted file mode 100644 index bafa30e4..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-normal.src.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: The `await` keyword is interpreted as an identifier within methods -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - [...] - - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true. -features: [class-static-block] ----*/ - -var await = 0; -var fromParam, fromBody; - -class C { - static { - ({ - method(x = fromParam = await) { - fromBody = await; - } - }).method(); - } -} - -assert.sameValue(fromParam, 0, 'from parameter'); -assert.sameValue(fromBody, 0, 'from body'); diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/identifier-resolution-static-init-invalid-await.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/identifier-resolution-static-init-invalid-await.result.js deleted file mode 100644 index fe939343..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/identifier-resolution-static-init-invalid-await.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 677, - "lineNumber": 23, - "column": 5, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/identifier-resolution-static-init-invalid-await.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/identifier-resolution-static-init-invalid-await.src.js deleted file mode 100644 index 61ddd625..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/identifier-resolution-static-init-invalid-await.src.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: Restriction on `await` -info: | - IdentifierReference : Identifier - - - It is a Syntax Error if the code matched by this production is nested, - directly or indirectly (but not crossing function or static initialization - block boundaries), within a ClassStaticBlock and the StringValue of - Identifier is "arguments" or "await". -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - await; - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-break-static-init-without-label.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-break-static-init-without-label.result.js deleted file mode 100644 index c82690a2..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-break-static-init-without-label.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 733, - "lineNumber": 24, - "column": 7, - "message": "Unsyntactic break" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-break-static-init-without-label.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-break-static-init-without-label.src.js deleted file mode 100644 index 2caeeaba..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-break-static-init-without-label.src.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-break-statement -description: IterationStatement search does not traverse static initialization block boundaries (no label specified) -info: | - 4.2.1 Static Semantics: Early Errors - BreakStatement : break ; - - - It is a Syntax Error if this BreakStatement is not nested, directly or - indirectly (but not crossing function or static initialization block - boundaries), within an IterationStatement or a SwitchStatement. -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -label: while(false) { - class C { - static { - break; - } - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-invalid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-invalid.result.js deleted file mode 100644 index 7895ae92..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-invalid.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 715, - "lineNumber": 24, - "column": 11, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-invalid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-invalid.src.js deleted file mode 100644 index 3f43b913..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-invalid.src.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: BindingIdentifier may not be `await` within class static blocks -info: | - BindingIdentifier : Identifier - - [...] - - It is a Syntax Error if the code matched by this production is nested, - directly or indirectly (but not crossing function or static initialization - block boundaries), within a ClassStaticBlock and the StringValue of - Identifier is "await". -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - class await {} - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-valid.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-valid.module-result.js deleted file mode 100644 index f3d6219c..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-valid.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 530, - "lineNumber": 16, - "column": 20, - "message": "Cannot use keyword 'await' outside an async function" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-valid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-valid.result.js deleted file mode 100644 index 2d5030c0..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-valid.result.js +++ /dev/null @@ -1,550 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 548 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 548 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 496, - 497 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 498, - 548 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 502, - 546 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 31 - } - }, - "range": [ - 515, - 542 - ], - "expression": { - "type": "ArrowFunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 516, - 540 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 11 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 522, - 540 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 27 - } - }, - "range": [ - 524, - 538 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 19 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 530, - 535 - ], - "name": "await" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 16, - "column": 25 - }, - "end": { - "line": 16, - "column": 27 - } - }, - "range": [ - 536, - 538 - ], - "body": [] - } - } - ] - } - } - } - ] - } - ] - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 5 - } - }, - "range": [ - 490, - 495 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 496, - 497 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 498, - 499 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 8 - } - }, - "range": [ - 502, - 508 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 15, - "column": 9 - }, - "end": { - "line": 15, - "column": 10 - } - }, - "range": [ - 509, - 510 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 5 - } - }, - "range": [ - 515, - 516 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 6 - } - }, - "range": [ - 516, - 517 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 7 - } - }, - "range": [ - 517, - 518 - ] - }, - { - "type": "Punctuator", - "value": "=>", - "loc": { - "start": { - "line": 16, - "column": 8 - }, - "end": { - "line": 16, - "column": 10 - } - }, - "range": [ - 519, - 521 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 11 - }, - "end": { - "line": 16, - "column": 12 - } - }, - "range": [ - 522, - 523 - ] - }, - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 18 - } - }, - "range": [ - 524, - 529 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 19 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 530, - 535 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 25 - }, - "end": { - "line": 16, - "column": 26 - } - }, - "range": [ - 536, - 537 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 26 - }, - "end": { - "line": 16, - "column": 27 - } - }, - "range": [ - 537, - 538 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 28 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 539, - 540 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 29 - }, - "end": { - "line": 16, - "column": 30 - } - }, - "range": [ - 540, - 541 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 30 - }, - "end": { - "line": 16, - "column": 31 - } - }, - "range": [ - 541, - 542 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 545, - 546 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 547, - 548 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-valid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-valid.src.js deleted file mode 100644 index fe10bb9c..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-valid.src.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: The `await` keyword is interpreted as an identifier within arrow function bodies -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - [...] - - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true. -features: [class-static-block] ----*/ - -class C { - static { - (() => { class await {} }); - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-arguments.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-arguments.result.js deleted file mode 100644 index e719ba08..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-arguments.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 554, - "lineNumber": 21, - "column": 15, - "message": "Cannot use arguments in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-arguments.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-arguments.src.js deleted file mode 100644 index 1f791bfc..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-arguments.src.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: Block cannot use `arguments` as an identifier -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - - It is a Syntax Error if ContainsArguments of ClassStaticBlockStatementList - is true. -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - (class { [argument\u0073]() {} }); - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-await.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-await.result.js deleted file mode 100644 index 1632d4de..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-await.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 705, - "lineNumber": 30, - "column": 7, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-await.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-await.src.js deleted file mode 100644 index 06e51155..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-await.src.js +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions -description: The "Await" parsing context does not apply to the block's statement list -info: | - Syntax - - [...] - - ClassStaticBlockStatementList : - StatementList[~Yield, +Await, ~Return]opt - - ## 15.7.1 Static Semantics: Early Errors - - ClassStaticBlockBody : ClassStaticBlockStatementList - - - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true. -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -async function f() { - class C { - static { - await 0; - } - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-label-dup.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-label-dup.result.js deleted file mode 100644 index 51fb0449..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-label-dup.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 563, - "lineNumber": 21, - "column": 8, - "message": "Label 'x' is already declared" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-label-dup.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-label-dup.src.js deleted file mode 100644 index 352c37ed..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-label-dup.src.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: Block cannot declare duplicate labels -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - - It is a Syntax Error if ContainsDuplicateLabels of - ClassStaticBlockStatementList with argument « » is true. -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - x: x: 0; - } -} - diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-dup.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-dup.result.js deleted file mode 100644 index 0c0c376f..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-dup.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 602, - "lineNumber": 22, - "column": 9, - "message": "Identifier 'x' has already been declared" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-dup.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-dup.src.js deleted file mode 100644 index 59312e49..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-dup.src.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: Block cannot declare duplicate lexically-scoped bindings -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - - It is a Syntax Error if the LexicallyDeclaredNames of - ClassStaticBlockStatementList contains any duplicate entries. -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - let x; - let x; - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-var.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-var.result.js deleted file mode 100644 index 75a029d3..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-var.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 698, - "lineNumber": 23, - "column": 9, - "message": "Identifier 'x' has already been declared" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-var.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-var.src.js deleted file mode 100644 index 2e78d276..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-var.src.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: Block cannot declare a lexically-scoped binding and function-scoped binding with the same name. -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - - It is a Syntax Error if any element of the LexicallyDeclaredNames of - ClassStaticBlockStatementList also occurs in the VarDeclaredNames of - ClassStaticBlockStatementList. -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - let x; - var x; - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-return.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-return.result.js deleted file mode 100644 index a2b8a8ca..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-return.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 515, - "lineNumber": 24, - "column": 7, - "message": "'return' outside of function" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-return.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-return.src.js deleted file mode 100644 index dda77131..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-return.src.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions -description: The "Return" parsing context does not apply to the block's statement list -info: | - Syntax - - [...] - - ClassStaticBlockStatementList : - StatementList[~Yield, +Await, ~Return]opt -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -function f() { - class C { - static { - return; - } - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-super-call.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-super-call.result.js deleted file mode 100644 index 1ed3ba1e..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-super-call.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 507, - "lineNumber": 20, - "column": 5, - "message": "super() call outside constructor of a subclass" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-super-call.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-super-call.src.js deleted file mode 100644 index 66e6bf13..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-super-call.src.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: Block cannot contain SuperCall -info: | - ClassStaticBlock : static { ClassStaticBlockBody } - - - It is a Syntax Error if HasDirectSuper of ClassStaticBlock is true. -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - super(); - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-break-target.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-break-target.result.js deleted file mode 100644 index 4030eb10..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-break-target.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 603, - "lineNumber": 22, - "column": 7, - "message": "Unsyntactic break" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-break-target.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-break-target.src.js deleted file mode 100644 index fa11b904..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-break-target.src.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: Block cannot reference an undefined `break` target -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - - It is a Syntax Error if ContainsUndefinedBreakTarget of - ClassStaticBlockStatementList with argument « » is true. -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - x: while (false) { - break y; - } - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-continue-target.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-continue-target.result.js deleted file mode 100644 index e123cb86..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-continue-target.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 618, - "lineNumber": 22, - "column": 7, - "message": "Unsyntactic continue" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-continue-target.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-continue-target.src.js deleted file mode 100644 index 389245a0..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-continue-target.src.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: Block cannot reference an undefined `continue` target -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - - It is a Syntax Error if ContainsUndefinedContinueTarget of - ClassStaticBlockStatementList with arguments « » and « » is true. -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - x: while (false) { - continue y; - } - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-yield.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-yield.result.js deleted file mode 100644 index bc483e7c..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-yield.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 516, - "lineNumber": 24, - "column": 7, - "message": "The keyword 'yield' is reserved" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-yield.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-yield.src.js deleted file mode 100644 index 60ab3925..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-yield.src.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions -description: The "Yield" parsing context does not apply to the block's statement list -info: | - Syntax - - [...] - - ClassStaticBlockStatementList : - StatementList[~Yield, +Await, ~Return]opt -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -function * g() { - class C { - static { - yield; - } - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-invalid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-invalid.result.js deleted file mode 100644 index 7895ae92..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-invalid.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 715, - "lineNumber": 24, - "column": 11, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-invalid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-invalid.src.js deleted file mode 100644 index f3ddd377..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-invalid.src.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: BindingIdentifier may not be `await` within class static blocks -info: | - BindingIdentifier : Identifier - - [...] - - It is a Syntax Error if the code matched by this production is nested, - directly or indirectly (but not crossing function or static initialization - block boundaries), within a ClassStaticBlock and the StringValue of - Identifier is "await". -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - const await = 0; - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-with-label.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-with-label.result.js deleted file mode 100644 index a9af2718..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-with-label.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 780, - "lineNumber": 25, - "column": 7, - "message": "Unsyntactic continue" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-with-label.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-with-label.src.js deleted file mode 100644 index ef9e5cc8..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-with-label.src.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-continue-statement -description: IterationStatement search does not traverse static initialization block boundaries (label specified) -info: | - 4.1.1 Static Semantics: Early Errors - ContinueStatement : continue ; - ContinueStatement : continue LabelIdentifier ; - - - It is a Syntax Error if this ContinueStatement is not nested, directly or - indirectly (but not crossing function or static initialization block - boundaries), within an IterationStatement. -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -label: while(false) { - class C { - static { - continue label; - } - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-without-label.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-without-label.result.js deleted file mode 100644 index cbf96dcd..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-without-label.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 783, - "lineNumber": 25, - "column": 7, - "message": "Unsyntactic continue" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-without-label.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-without-label.src.js deleted file mode 100644 index ac225931..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-without-label.src.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-continue-statement -description: IterationStatement search does not traverse static initialization block boundaries (no label specified) -info: | - 4.1.1 Static Semantics: Early Errors - ContinueStatement : continue ; - ContinueStatement : continue LabelIdentifier ; - - - It is a Syntax Error if this ContinueStatement is not nested, directly or - indirectly (but not crossing function or static initialization block - boundaries), within an IterationStatement. -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -label: while(false) { - class C { - static { - continue; - } - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-invalid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-invalid.result.js deleted file mode 100644 index 8c9fe9b1..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-invalid.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 718, - "lineNumber": 24, - "column": 14, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-invalid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-invalid.src.js deleted file mode 100644 index 96c04d8f..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-invalid.src.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: BindingIdentifier may not be `await` within class static blocks -info: | - BindingIdentifier : Identifier - - [...] - - It is a Syntax Error if the code matched by this production is nested, - directly or indirectly (but not crossing function or static initialization - block boundaries), within a ClassStaticBlock and the StringValue of - Identifier is "await". -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - function await() {} - } -} - diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-valid.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-valid.module-result.js deleted file mode 100644 index ac3f4e7f..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-valid.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 533, - "lineNumber": 16, - "column": 23, - "message": "Cannot use keyword 'await' outside an async function" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-valid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-valid.result.js deleted file mode 100644 index e8c32bde..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-valid.result.js +++ /dev/null @@ -1,589 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 553 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 553 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 496, - 497 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 498, - 553 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 502, - 551 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 36 - } - }, - "range": [ - 515, - 547 - ], - "expression": { - "type": "ArrowFunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 34 - } - }, - "range": [ - 516, - 545 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 11 - }, - "end": { - "line": 16, - "column": 34 - } - }, - "range": [ - 522, - 545 - ], - "body": [ - { - "type": "FunctionDeclaration", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 32 - } - }, - "range": [ - 524, - 543 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 22 - }, - "end": { - "line": 16, - "column": 27 - } - }, - "range": [ - 533, - 538 - ], - "name": "await" - }, - "expression": false, - "generator": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 30 - }, - "end": { - "line": 16, - "column": 32 - } - }, - "range": [ - 541, - 543 - ], - "body": [] - } - } - ] - } - } - } - ] - } - ] - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 5 - } - }, - "range": [ - 490, - 495 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 496, - 497 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 498, - 499 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 8 - } - }, - "range": [ - 502, - 508 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 15, - "column": 9 - }, - "end": { - "line": 15, - "column": 10 - } - }, - "range": [ - 509, - 510 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 5 - } - }, - "range": [ - 515, - 516 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 6 - } - }, - "range": [ - 516, - 517 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 7 - } - }, - "range": [ - 517, - 518 - ] - }, - { - "type": "Punctuator", - "value": "=>", - "loc": { - "start": { - "line": 16, - "column": 8 - }, - "end": { - "line": 16, - "column": 10 - } - }, - "range": [ - 519, - 521 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 11 - }, - "end": { - "line": 16, - "column": 12 - } - }, - "range": [ - 522, - 523 - ] - }, - { - "type": "Keyword", - "value": "function", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 21 - } - }, - "range": [ - 524, - 532 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 22 - }, - "end": { - "line": 16, - "column": 27 - } - }, - "range": [ - 533, - 538 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 27 - }, - "end": { - "line": 16, - "column": 28 - } - }, - "range": [ - 538, - 539 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 28 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 539, - 540 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 30 - }, - "end": { - "line": 16, - "column": 31 - } - }, - "range": [ - 541, - 542 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 31 - }, - "end": { - "line": 16, - "column": 32 - } - }, - "range": [ - 542, - 543 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 33 - }, - "end": { - "line": 16, - "column": 34 - } - }, - "range": [ - 544, - 545 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 34 - }, - "end": { - "line": 16, - "column": 35 - } - }, - "range": [ - 545, - 546 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 35 - }, - "end": { - "line": 16, - "column": 36 - } - }, - "range": [ - 546, - 547 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 550, - 551 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 552, - 553 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-valid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-valid.src.js deleted file mode 100644 index fb086826..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-valid.src.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: The `await` keyword is interpreted as an identifier within arrow function bodies -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - [...] - - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true. -features: [class-static-block] ----*/ - -class C { - static { - (() => { function await() {} }); - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-labeled-static-init-invalid-await.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-labeled-static-init-invalid-await.result.js deleted file mode 100644 index 921bd594..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-labeled-static-init-invalid-await.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 658, - "lineNumber": 23, - "column": 5, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-labeled-static-init-invalid-await.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-labeled-static-init-invalid-await.src.js deleted file mode 100644 index e6b38ae7..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-labeled-static-init-invalid-await.src.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: Restriction on `await` -info: | - LabelIdentifier : Identifier - - - It is a Syntax Error if the code matched by this production is nested, - directly or indirectly (but not crossing function or static initialization - block boundaries), within a ClassStaticBlock and the StringValue of - Identifier is "await". -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - await: 0; - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-invalid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-invalid.result.js deleted file mode 100644 index ec150686..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-invalid.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 713, - "lineNumber": 24, - "column": 9, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-invalid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-invalid.src.js deleted file mode 100644 index 0bff5e18..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-invalid.src.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: BindingIdentifier may not be `await` within class static blocks -info: | - BindingIdentifier : Identifier - - [...] - - It is a Syntax Error if the code matched by this production is nested, - directly or indirectly (but not crossing function or static initialization - block boundaries), within a ClassStaticBlock and the StringValue of - Identifier is "await". -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - let await; - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-invalid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-invalid.result.js deleted file mode 100644 index b2a11a0c..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-invalid.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 723, - "lineNumber": 24, - "column": 19, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-invalid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-invalid.src.js deleted file mode 100644 index 32faff64..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-invalid.src.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: BindingIdentifier may not be `await` within class static blocks -info: | - BindingIdentifier : Identifier - - [...] - - It is a Syntax Error if the code matched by this production is nested, - directly or indirectly (but not crossing function or static initialization - block boundaries), within a ClassStaticBlock and the StringValue of - Identifier is "await". -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - try {} catch (await) {} - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-invalid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-invalid.result.js deleted file mode 100644 index 0a6e708b..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-invalid.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 714, - "lineNumber": 24, - "column": 10, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-invalid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-invalid.src.js deleted file mode 100644 index 68573272..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-invalid.src.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: BindingIdentifier may not be `await` within class static blocks -info: | - BindingIdentifier : Identifier - - [...] - - It is a Syntax Error if the code matched by this production is nested, - directly or indirectly (but not crossing function or static initialization - block boundaries), within a ClassStaticBlock and the StringValue of - Identifier is "await". -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - var [await] = []; - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-invalid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-invalid.result.js deleted file mode 100644 index 0a6e708b..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-invalid.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 714, - "lineNumber": 24, - "column": 10, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-invalid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-invalid.src.js deleted file mode 100644 index 377791ab..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-invalid.src.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: BindingIdentifier may not be `await` within class static blocks -info: | - BindingIdentifier : Identifier - - [...] - - It is a Syntax Error if the code matched by this production is nested, - directly or indirectly (but not crossing function or static initialization - block boundaries), within a ClassStaticBlock and the StringValue of - Identifier is "await". -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - var {await} = {}; - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-invalid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-invalid.result.js deleted file mode 100644 index ec150686..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-invalid.result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 713, - "lineNumber": 24, - "column": 9, - "message": "Cannot use await in class static initialization block" -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-invalid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-invalid.src.js deleted file mode 100644 index b6319b00..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-invalid.src.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2021 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-class-definitions-static-semantics-early-errors -description: BindingIdentifier may not be `await` within class static blocks -info: | - BindingIdentifier : Identifier - - [...] - - It is a Syntax Error if the code matched by this production is nested, - directly or indirectly (but not crossing function or static initialization - block boundaries), within a ClassStaticBlock and the StringValue of - Identifier is "await". -negative: - phase: parse - type: SyntaxError -features: [class-static-block] ----*/ - -$DONOTEVALUATE(); - -class C { - static { - var await; - } -}