From cf37983c86219ef5bfc1e1b599ad6f49a6e6cd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Sun, 26 Sep 2021 14:42:47 +0800 Subject: [PATCH] chore: rm some invalid test cases --- ...nction-static-init-await-binding.result.js | 6 - ...-function-static-init-await-binding.src.js | 18 - ...tion-static-init-await-reference.result.js | 6 - ...unction-static-init-await-reference.src.js | 18 - ...-class-static-init-await-binding.result.js | 6 - ...ons-class-static-init-await-binding.src.js | 23 - ...static-init-await-binding.module-result.js | 6 - ...nction-static-init-await-binding.result.js | 495 - ...-function-static-init-await-binding.src.js | 18 - ...atic-init-await-reference.module-result.js | 6 - ...tion-static-init-await-reference.result.js | 1840 ---- ...unction-static-init-await-reference.src.js | 26 - ...static-init-await-binding.module-result.js | 6 - ...rators-static-init-await-binding.result.js | 513 - ...enerators-static-init-await-binding.src.js | 18 - ...atic-init-await-reference.module-result.js | 6 - ...tors-static-init-await-reference.result.js | 1986 ---- ...erators-static-init-await-reference.src.js | 26 - ...p-name-literal-await-static-init.result.js | 460 - ...prop-name-literal-await-static-init.src.js | 22 - ...rthand-static-init-await-invalid.result.js | 6 - ...shorthand-static-init-await-invalid.src.js | 26 - ...d-static-init-await-valid.module-result.js | 6 - ...horthand-static-init-await-valid.result.js | 535 - ...r-shorthand-static-init-await-valid.src.js | 18 - ...it-await-binding-accessor.module-result.js | 6 - ...atic-init-await-binding-accessor.result.js | 572 -- ...-static-init-await-binding-accessor.src.js | 18 - ...t-await-binding-generator.module-result.js | 6 - ...tic-init-await-binding-generator.result.js | 572 -- ...static-init-await-binding-generator.src.js | 18 - ...init-await-binding-normal.module-result.js | 6 - ...static-init-await-binding-normal.result.js | 554 - ...on-static-init-await-binding-normal.src.js | 18 - ...-await-reference-accessor.module-result.js | 6 - ...ic-init-await-reference-accessor.result.js | 2042 ---- ...tatic-init-await-reference-accessor.src.js | 28 - ...await-reference-generator.module-result.js | 6 - ...c-init-await-reference-generator.result.js | 2153 ---- ...atic-init-await-reference-generator.src.js | 28 - ...it-await-reference-normal.module-result.js | 6 - ...atic-init-await-reference-normal.result.js | 2007 ---- ...-static-init-await-reference-normal.src.js | 28 - ...lution-static-init-invalid-await.result.js | 6 - ...esolution-static-init-invalid-await.src.js | 25 - ...-break-static-init-without-label.result.js | 6 - ...nts-break-static-init-without-label.src.js | 27 - ...tements-class-static-init-abrupt.result.js | 3451 ------- ...statements-class-static-init-abrupt.src.js | 46 - ...-static-init-arguments-functions.result.js | 5588 ---------- ...ass-static-init-arguments-functions.src.js | 40 - ...ss-static-init-arguments-methods.result.js | 9111 ----------------- ...class-static-init-arguments-methods.src.js | 58 - ...tatic-init-await-binding-invalid.result.js | 6 - ...s-static-init-await-binding-invalid.src.js | 26 - ...-init-await-binding-valid.module-result.js | 6 - ...-static-init-await-binding-valid.result.js | 550 - ...ass-static-init-await-binding-valid.src.js | 18 - ...ss-static-init-invalid-arguments.result.js | 6 - ...class-static-init-invalid-arguments.src.js | 23 - ...-class-static-init-invalid-await.result.js | 6 - ...nts-class-static-init-invalid-await.src.js | 33 - ...ss-static-init-invalid-label-dup.result.js | 6 - ...class-static-init-invalid-label-dup.src.js | 24 - ...lass-static-init-invalid-lex-dup.result.js | 6 - ...s-class-static-init-invalid-lex-dup.src.js | 24 - ...lass-static-init-invalid-lex-var.result.js | 6 - ...s-class-static-init-invalid-lex-var.src.js | 25 - ...class-static-init-invalid-return.result.js | 6 - ...ts-class-static-init-invalid-return.src.js | 27 - ...s-static-init-invalid-super-call.result.js | 6 - ...lass-static-init-invalid-super-call.src.js | 22 - ...t-invalid-undefined-break-target.result.js | 6 - ...init-invalid-undefined-break-target.src.js | 25 - ...nvalid-undefined-continue-target.result.js | 6 - ...t-invalid-undefined-continue-target.src.js | 25 - ...-class-static-init-invalid-yield.result.js | 6 - ...nts-class-static-init-invalid-yield.src.js | 27 - ...tatic-init-await-binding-invalid.result.js | 6 - ...t-static-init-await-binding-invalid.src.js | 26 - ...-init-await-binding-valid.module-result.js | 6 - ...-static-init-await-binding-valid.result.js | 588 -- ...nst-static-init-await-binding-valid.src.js | 18 - ...-continue-static-init-with-label.result.js | 6 - ...nts-continue-static-init-with-label.src.js | 28 - ...ntinue-static-init-without-label.result.js | 6 - ...-continue-static-init-without-label.src.js | 28 - ...tatic-init-await-binding-invalid.result.js | 6 - ...n-static-init-await-binding-invalid.src.js | 27 - ...-init-await-binding-valid.module-result.js | 6 - ...-static-init-await-binding-valid.result.js | 589 -- ...ion-static-init-await-binding-valid.src.js | 18 - ...abeled-static-init-invalid-await.result.js | 6 - ...s-labeled-static-init-invalid-await.src.js | 25 - ...tatic-init-await-binding-invalid.result.js | 6 - ...t-static-init-await-binding-invalid.src.js | 26 - ...-init-await-binding-valid.module-result.js | 6 - ...-static-init-await-binding-valid.result.js | 534 - ...let-static-init-await-binding-valid.src.js | 18 - ...tatic-init-await-binding-invalid.result.js | 6 - ...y-static-init-await-binding-invalid.src.js | 26 - ...-init-await-binding-valid.module-result.js | 6 - ...-static-init-await-binding-valid.result.js | 675 -- ...try-static-init-await-binding-valid.src.js | 18 - ...lem-id-static-init-await-invalid.result.js | 6 - ...n-elem-id-static-init-await-invalid.src.js | 26 - ...d-static-init-await-valid.module-result.js | 6 - ...-elem-id-static-init-await-valid.result.js | 660 -- ...trn-elem-id-static-init-await-valid.src.js | 18 - ...lem-id-static-init-await-invalid.result.js | 6 - ...n-elem-id-static-init-await-invalid.src.js | 26 - ...d-static-init-await-valid.module-result.js | 6 - ...-elem-id-static-init-await-valid.result.js | 699 -- ...trn-elem-id-static-init-await-valid.src.js | 18 - ...tatic-init-await-binding-invalid.result.js | 6 - ...e-static-init-await-binding-invalid.src.js | 26 - ...-init-await-binding-valid.module-result.js | 6 - ...-static-init-await-binding-valid.result.js | 534 - ...ble-static-init-await-binding-valid.src.js | 18 - .../top-level-await/top-await.result.js | 2 +- .../regexp-match-indices.result.js | 12 +- 121 files changed, 5 insertions(+), 38229 deletions(-) delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-binding.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-binding.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-reference.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-arrow-function-static-init-await-reference.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-class-static-init-await-binding.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-class-static-init-await-binding.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-binding.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-binding.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-binding.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-reference.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-reference.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-reference.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-binding.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-binding.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-binding.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-reference.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-reference.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-reference.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-ident-name-prop-name-literal-await-static-init.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-ident-name-prop-name-literal-await-static-init.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-invalid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-invalid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-valid.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-valid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-valid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-accessor.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-accessor.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-accessor.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-generator.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-generator.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-generator.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-normal.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-normal.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-normal.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-accessor.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-accessor.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-accessor.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-generator.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-generator.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-generator.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-normal.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-normal.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-normal.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/identifier-resolution-static-init-invalid-await.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/identifier-resolution-static-init-invalid-await.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-break-static-init-without-label.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-break-static-init-without-label.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-abrupt.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-abrupt.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-functions.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-functions.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-methods.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-methods.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-invalid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-invalid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-valid.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-valid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-await-binding-valid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-arguments.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-arguments.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-await.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-await.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-label-dup.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-label-dup.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-dup.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-dup.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-var.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-lex-var.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-return.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-return.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-super-call.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-super-call.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-break-target.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-break-target.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-continue-target.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-undefined-continue-target.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-yield.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-invalid-yield.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-invalid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-invalid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-valid.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-valid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-valid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-with-label.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-with-label.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-without-label.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-continue-static-init-without-label.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-invalid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-invalid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-valid.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-valid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-function-static-init-await-binding-valid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-labeled-static-init-invalid-await.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-labeled-static-init-invalid-await.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-invalid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-invalid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-valid.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-valid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-valid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-invalid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-invalid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-valid.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-valid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-valid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-invalid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-invalid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-valid.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-valid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-valid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-invalid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-invalid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-valid.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-valid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-valid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-invalid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-invalid.src.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-valid.module-result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-valid.result.js delete mode 100644 tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-valid.src.js 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-function-static-init-await-binding.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-binding.module-result.js deleted file mode 100644 index 9abb602e..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-binding.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 533, - "lineNumber": 16, - "column": 15, - "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-function-static-init-await-binding.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-binding.result.js deleted file mode 100644 index 3300a36a..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-binding.result.js +++ /dev/null @@ -1,495 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 498, - 556 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 498, - 556 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 504, - 505 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 506, - 556 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 510, - 554 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 31 - } - }, - "range": [ - 523, - 550 - ], - "expression": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 524, - 548 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 14 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "range": [ - 533, - 538 - ], - "name": "await" - }, - "expression": false, - "generator": false, - "async": false, - "params": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 20 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 539, - 544 - ], - "name": "await" - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 27 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 546, - 548 - ], - "body": [] - } - } - } - ] - } - ] - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 5 - } - }, - "range": [ - 498, - 503 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 504, - 505 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 506, - 507 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 8 - } - }, - "range": [ - 510, - 516 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 15, - "column": 9 - }, - "end": { - "line": 15, - "column": 10 - } - }, - "range": [ - 517, - 518 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 5 - } - }, - "range": [ - 523, - 524 - ] - }, - { - "type": "Keyword", - "value": "function", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 13 - } - }, - "range": [ - 524, - 532 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 14 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "range": [ - 533, - 538 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 19 - }, - "end": { - "line": 16, - "column": 20 - } - }, - "range": [ - 538, - 539 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 20 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 539, - 544 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 25 - }, - "end": { - "line": 16, - "column": 26 - } - }, - "range": [ - 544, - 545 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 27 - }, - "end": { - "line": 16, - "column": 28 - } - }, - "range": [ - 546, - 547 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 28 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 547, - 548 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 29 - }, - "end": { - "line": 16, - "column": 30 - } - }, - "range": [ - 548, - 549 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 30 - }, - "end": { - "line": 16, - "column": 31 - } - }, - "range": [ - 549, - 550 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 553, - 554 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 555, - 556 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-binding.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-binding.src.js deleted file mode 100644 index cc8d0e09..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-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 interpreted as an IdentifierReference within 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-function-static-init-await-reference.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-reference.module-result.js deleted file mode 100644 index afe64259..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-reference.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 502, - "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-function-static-init-await-reference.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-reference.result.js deleted file mode 100644 index 38532ae3..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-reference.result.js +++ /dev/null @@ -1,1840 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 26, - "column": 43 - } - }, - "range": [ - 498, - 734 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 14 - } - }, - "range": [ - 498, - 512 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 502, - 511 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 502, - 507 - ], - "name": "await" - }, - "init": { - "type": "Literal", - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 510, - 511 - ], - "value": 0, - "raw": "0" - } - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 24 - } - }, - "range": [ - 513, - 537 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 517, - 526 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 517, - 526 - ], - "name": "fromParam" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 528, - 536 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 528, - 536 - ], - "name": "fromBody" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 23, - "column": 1 - } - }, - "range": [ - 539, - 639 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 545, - 546 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 23, - "column": 1 - } - }, - "range": [ - 547, - 639 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 22, - "column": 3 - } - }, - "range": [ - 551, - 637 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 21, - "column": 9 - } - }, - "range": [ - 564, - 633 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 21, - "column": 8 - } - }, - "range": [ - 564, - 632 - ], - "callee": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 21, - "column": 5 - } - }, - "range": [ - 565, - 629 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "loc": { - "start": { - "line": 19, - "column": 15 - }, - "end": { - "line": 19, - "column": 36 - } - }, - "range": [ - 575, - 596 - ], - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 15 - }, - "end": { - "line": 19, - "column": 16 - } - }, - "range": [ - 575, - 576 - ], - "name": "x" - }, - "right": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 19, - "column": 19 - }, - "end": { - "line": 19, - "column": 36 - } - }, - "range": [ - 579, - 596 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 19 - }, - "end": { - "line": 19, - "column": 28 - } - }, - "range": [ - 579, - 588 - ], - "name": "fromParam" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 31 - }, - "end": { - "line": 19, - "column": 36 - } - }, - "range": [ - 591, - 596 - ], - "name": "await" - } - } - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 19, - "column": 38 - }, - "end": { - "line": 21, - "column": 5 - } - }, - "range": [ - 598, - 629 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "range": [ - 606, - 623 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 22 - } - }, - "range": [ - 606, - 622 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 14 - } - }, - "range": [ - 606, - 614 - ], - "name": "fromBody" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 17 - }, - "end": { - "line": 20, - "column": 22 - } - }, - "range": [ - 617, - 622 - ], - "name": "await" - } - } - } - ] - } - }, - "arguments": [], - "optional": false - } - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 49 - } - }, - "range": [ - 641, - 690 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 48 - } - }, - "range": [ - 641, - 689 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 16 - } - }, - "range": [ - 641, - 657 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 6 - } - }, - "range": [ - 641, - 647 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 7 - }, - "end": { - "line": 25, - "column": 16 - } - }, - "range": [ - 648, - 657 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 17 - }, - "end": { - "line": 25, - "column": 26 - } - }, - "range": [ - 658, - 667 - ], - "name": "fromParam" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 25, - "column": 28 - }, - "end": { - "line": 25, - "column": 29 - } - }, - "range": [ - 669, - 670 - ], - "value": 0, - "raw": "0" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 25, - "column": 31 - }, - "end": { - "line": 25, - "column": 47 - } - }, - "range": [ - 672, - 688 - ], - "value": "from parameter", - "raw": "'from parameter'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 43 - } - }, - "range": [ - 691, - 734 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 42 - } - }, - "range": [ - 691, - 733 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 16 - } - }, - "range": [ - 691, - 707 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 6 - } - }, - "range": [ - 691, - 697 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 16 - } - }, - "range": [ - 698, - 707 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 26, - "column": 17 - }, - "end": { - "line": 26, - "column": 25 - } - }, - "range": [ - 708, - 716 - ], - "name": "fromBody" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 26, - "column": 27 - }, - "end": { - "line": 26, - "column": 28 - } - }, - "range": [ - 718, - 719 - ], - "value": 0, - "raw": "0" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 26, - "column": 30 - }, - "end": { - "line": 26, - "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": [ - 498, - 501 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 502, - 507 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 14, - "column": 10 - }, - "end": { - "line": 14, - "column": 11 - } - }, - "range": [ - 508, - 509 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 510, - 511 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 14, - "column": 13 - }, - "end": { - "line": 14, - "column": 14 - } - }, - "range": [ - 511, - 512 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - }, - "range": [ - 513, - 516 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 517, - 526 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 15, - "column": 13 - }, - "end": { - "line": 15, - "column": 14 - } - }, - "range": [ - 526, - 527 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 528, - 536 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 15, - "column": 23 - }, - "end": { - "line": 15, - "column": 24 - } - }, - "range": [ - 536, - 537 - ] - }, - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 5 - } - }, - "range": [ - 539, - 544 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 545, - 546 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 9 - } - }, - "range": [ - 547, - 548 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 8 - } - }, - "range": [ - 551, - 557 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 18, - "column": 9 - }, - "end": { - "line": 18, - "column": 10 - } - }, - "range": [ - 558, - 559 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 5 - } - }, - "range": [ - 564, - 565 - ] - }, - { - "type": "Keyword", - "value": "function", - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 19, - "column": 13 - } - }, - "range": [ - 565, - 573 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 19, - "column": 14 - }, - "end": { - "line": 19, - "column": 15 - } - }, - "range": [ - 574, - 575 - ] - }, - { - "type": "Identifier", - "value": "x", - "loc": { - "start": { - "line": 19, - "column": 15 - }, - "end": { - "line": 19, - "column": 16 - } - }, - "range": [ - 575, - 576 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 19, - "column": 18 - } - }, - "range": [ - 577, - 578 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 19, - "column": 19 - }, - "end": { - "line": 19, - "column": 28 - } - }, - "range": [ - 579, - 588 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 19, - "column": 29 - }, - "end": { - "line": 19, - "column": 30 - } - }, - "range": [ - 589, - 590 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 19, - "column": 31 - }, - "end": { - "line": 19, - "column": 36 - } - }, - "range": [ - 591, - 596 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 19, - "column": 36 - }, - "end": { - "line": 19, - "column": 37 - } - }, - "range": [ - 596, - 597 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 19, - "column": 38 - }, - "end": { - "line": 19, - "column": 39 - } - }, - "range": [ - 598, - 599 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 14 - } - }, - "range": [ - 606, - 614 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 20, - "column": 15 - }, - "end": { - "line": 20, - "column": 16 - } - }, - "range": [ - 615, - 616 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 20, - "column": 17 - }, - "end": { - "line": 20, - "column": 22 - } - }, - "range": [ - 617, - 622 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 20, - "column": 22 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "range": [ - 622, - 623 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 5 - } - }, - "range": [ - 628, - 629 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 21, - "column": 5 - }, - "end": { - "line": 21, - "column": 6 - } - }, - "range": [ - 629, - 630 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 7 - } - }, - "range": [ - 630, - 631 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 21, - "column": 7 - }, - "end": { - "line": 21, - "column": 8 - } - }, - "range": [ - 631, - 632 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 9 - } - }, - "range": [ - 632, - 633 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 22, - "column": 3 - } - }, - "range": [ - 636, - 637 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 23, - "column": 1 - } - }, - "range": [ - 638, - 639 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 6 - } - }, - "range": [ - 641, - 647 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 7 - } - }, - "range": [ - 647, - 648 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 25, - "column": 7 - }, - "end": { - "line": 25, - "column": 16 - } - }, - "range": [ - 648, - 657 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 25, - "column": 16 - }, - "end": { - "line": 25, - "column": 17 - } - }, - "range": [ - 657, - 658 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 25, - "column": 17 - }, - "end": { - "line": 25, - "column": 26 - } - }, - "range": [ - 658, - 667 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 25, - "column": 26 - }, - "end": { - "line": 25, - "column": 27 - } - }, - "range": [ - 667, - 668 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 25, - "column": 28 - }, - "end": { - "line": 25, - "column": 29 - } - }, - "range": [ - 669, - 670 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 25, - "column": 29 - }, - "end": { - "line": 25, - "column": 30 - } - }, - "range": [ - 670, - 671 - ] - }, - { - "type": "String", - "value": "'from parameter'", - "loc": { - "start": { - "line": 25, - "column": 31 - }, - "end": { - "line": 25, - "column": 47 - } - }, - "range": [ - 672, - 688 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 25, - "column": 47 - }, - "end": { - "line": 25, - "column": 48 - } - }, - "range": [ - 688, - 689 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 25, - "column": 48 - }, - "end": { - "line": 25, - "column": 49 - } - }, - "range": [ - 689, - 690 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 6 - } - }, - "range": [ - 691, - 697 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 26, - "column": 6 - }, - "end": { - "line": 26, - "column": 7 - } - }, - "range": [ - 697, - 698 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 16 - } - }, - "range": [ - 698, - 707 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 26, - "column": 16 - }, - "end": { - "line": 26, - "column": 17 - } - }, - "range": [ - 707, - 708 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 26, - "column": 17 - }, - "end": { - "line": 26, - "column": 25 - } - }, - "range": [ - 708, - 716 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 26, - "column": 25 - }, - "end": { - "line": 26, - "column": 26 - } - }, - "range": [ - 716, - 717 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 26, - "column": 27 - }, - "end": { - "line": 26, - "column": 28 - } - }, - "range": [ - 718, - 719 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 26, - "column": 28 - }, - "end": { - "line": 26, - "column": 29 - } - }, - "range": [ - 719, - 720 - ] - }, - { - "type": "String", - "value": "'from body'", - "loc": { - "start": { - "line": 26, - "column": 30 - }, - "end": { - "line": 26, - "column": 41 - } - }, - "range": [ - 721, - 732 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 26, - "column": 41 - }, - "end": { - "line": 26, - "column": 42 - } - }, - "range": [ - 732, - 733 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 26, - "column": 42 - }, - "end": { - "line": 26, - "column": 43 - } - }, - "range": [ - 733, - 734 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-reference.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-reference.src.js deleted file mode 100644 index 50a55c99..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-function-static-init-await-reference.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: The `await` keyword is interpreted as an IdentifierReference within function expressions -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 { - (function (x = fromParam = await) { - fromBody = await; - })(); - } -} - -assert.sameValue(fromParam, 0, 'from parameter'); -assert.sameValue(fromBody, 0, 'from body'); 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-generators-static-init-await-reference.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-reference.module-result.js deleted file mode 100644 index eacf1c38..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-reference.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 503, - "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-generators-static-init-await-reference.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-reference.result.js deleted file mode 100644 index efd81d8f..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-reference.result.js +++ /dev/null @@ -1,1986 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 26, - "column": 43 - } - }, - "range": [ - 499, - 744 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 14 - } - }, - "range": [ - 499, - 513 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 503, - 512 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 503, - 508 - ], - "name": "await" - }, - "init": { - "type": "Literal", - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 511, - 512 - ], - "value": 0, - "raw": "0" - } - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 24 - } - }, - "range": [ - 514, - 538 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 518, - 527 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 518, - 527 - ], - "name": "fromParam" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 529, - 537 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 529, - 537 - ], - "name": "fromBody" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 23, - "column": 1 - } - }, - "range": [ - 540, - 649 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 546, - 547 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 23, - "column": 1 - } - }, - "range": [ - 548, - 649 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 22, - "column": 3 - } - }, - "range": [ - 552, - 647 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 21, - "column": 16 - } - }, - "range": [ - 565, - 643 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 21, - "column": 15 - } - }, - "range": [ - 565, - 642 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 21, - "column": 13 - } - }, - "range": [ - 565, - 640 - ], - "object": { - "type": "CallExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 21, - "column": 8 - } - }, - "range": [ - 565, - 635 - ], - "callee": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 21, - "column": 5 - } - }, - "range": [ - 566, - 632 - ], - "id": null, - "expression": false, - "generator": true, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 19, - "column": 38 - } - }, - "range": [ - 578, - 599 - ], - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 19, - "column": 18 - } - }, - "range": [ - 578, - 579 - ], - "name": "x" - }, - "right": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 19, - "column": 21 - }, - "end": { - "line": 19, - "column": 38 - } - }, - "range": [ - 582, - 599 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 21 - }, - "end": { - "line": 19, - "column": 30 - } - }, - "range": [ - 582, - 591 - ], - "name": "fromParam" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 33 - }, - "end": { - "line": 19, - "column": 38 - } - }, - "range": [ - 594, - 599 - ], - "name": "await" - } - } - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 19, - "column": 40 - }, - "end": { - "line": 21, - "column": 5 - } - }, - "range": [ - 601, - 632 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "range": [ - 609, - 626 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 22 - } - }, - "range": [ - 609, - 625 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 14 - } - }, - "range": [ - 609, - 617 - ], - "name": "fromBody" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 17 - }, - "end": { - "line": 20, - "column": 22 - } - }, - "range": [ - 620, - 625 - ], - "name": "await" - } - } - } - ] - } - }, - "arguments": [], - "optional": false - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 21, - "column": 9 - }, - "end": { - "line": 21, - "column": 13 - } - }, - "range": [ - 636, - 640 - ], - "name": "next" - }, - "computed": false, - "optional": false - }, - "arguments": [], - "optional": false - } - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 49 - } - }, - "range": [ - 651, - 700 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 48 - } - }, - "range": [ - 651, - 699 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 16 - } - }, - "range": [ - 651, - 667 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 6 - } - }, - "range": [ - 651, - 657 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 7 - }, - "end": { - "line": 25, - "column": 16 - } - }, - "range": [ - 658, - 667 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 17 - }, - "end": { - "line": 25, - "column": 26 - } - }, - "range": [ - 668, - 677 - ], - "name": "fromParam" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 25, - "column": 28 - }, - "end": { - "line": 25, - "column": 29 - } - }, - "range": [ - 679, - 680 - ], - "value": 0, - "raw": "0" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 25, - "column": 31 - }, - "end": { - "line": 25, - "column": 47 - } - }, - "range": [ - 682, - 698 - ], - "value": "from parameter", - "raw": "'from parameter'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 43 - } - }, - "range": [ - 701, - 744 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 42 - } - }, - "range": [ - 701, - 743 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 16 - } - }, - "range": [ - 701, - 717 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 6 - } - }, - "range": [ - 701, - 707 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 16 - } - }, - "range": [ - 708, - 717 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 26, - "column": 17 - }, - "end": { - "line": 26, - "column": 25 - } - }, - "range": [ - 718, - 726 - ], - "name": "fromBody" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 26, - "column": 27 - }, - "end": { - "line": 26, - "column": 28 - } - }, - "range": [ - 728, - 729 - ], - "value": 0, - "raw": "0" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 26, - "column": 30 - }, - "end": { - "line": 26, - "column": 41 - } - }, - "range": [ - 731, - 742 - ], - "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": [ - 499, - 502 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 503, - 508 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 14, - "column": 10 - }, - "end": { - "line": 14, - "column": 11 - } - }, - "range": [ - 509, - 510 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 511, - 512 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 14, - "column": 13 - }, - "end": { - "line": 14, - "column": 14 - } - }, - "range": [ - 512, - 513 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - }, - "range": [ - 514, - 517 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 518, - 527 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 15, - "column": 13 - }, - "end": { - "line": 15, - "column": 14 - } - }, - "range": [ - 527, - 528 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 529, - 537 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 15, - "column": 23 - }, - "end": { - "line": 15, - "column": 24 - } - }, - "range": [ - 537, - 538 - ] - }, - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 5 - } - }, - "range": [ - 540, - 545 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 546, - 547 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 9 - } - }, - "range": [ - 548, - 549 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 8 - } - }, - "range": [ - 552, - 558 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 18, - "column": 9 - }, - "end": { - "line": 18, - "column": 10 - } - }, - "range": [ - 559, - 560 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 5 - } - }, - "range": [ - 565, - 566 - ] - }, - { - "type": "Keyword", - "value": "function", - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 19, - "column": 13 - } - }, - "range": [ - 566, - 574 - ] - }, - { - "type": "Punctuator", - "value": "*", - "loc": { - "start": { - "line": 19, - "column": 14 - }, - "end": { - "line": 19, - "column": 15 - } - }, - "range": [ - 575, - 576 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 17 - } - }, - "range": [ - 577, - 578 - ] - }, - { - "type": "Identifier", - "value": "x", - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 19, - "column": 18 - } - }, - "range": [ - 578, - 579 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 19, - "column": 19 - }, - "end": { - "line": 19, - "column": 20 - } - }, - "range": [ - 580, - 581 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 19, - "column": 21 - }, - "end": { - "line": 19, - "column": 30 - } - }, - "range": [ - 582, - 591 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 19, - "column": 31 - }, - "end": { - "line": 19, - "column": 32 - } - }, - "range": [ - 592, - 593 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 19, - "column": 33 - }, - "end": { - "line": 19, - "column": 38 - } - }, - "range": [ - 594, - 599 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 19, - "column": 38 - }, - "end": { - "line": 19, - "column": 39 - } - }, - "range": [ - 599, - 600 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 19, - "column": 40 - }, - "end": { - "line": 19, - "column": 41 - } - }, - "range": [ - 601, - 602 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 14 - } - }, - "range": [ - 609, - 617 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 20, - "column": 15 - }, - "end": { - "line": 20, - "column": 16 - } - }, - "range": [ - 618, - 619 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 20, - "column": 17 - }, - "end": { - "line": 20, - "column": 22 - } - }, - "range": [ - 620, - 625 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 20, - "column": 22 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "range": [ - 625, - 626 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 5 - } - }, - "range": [ - 631, - 632 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 21, - "column": 5 - }, - "end": { - "line": 21, - "column": 6 - } - }, - "range": [ - 632, - 633 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 7 - } - }, - "range": [ - 633, - 634 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 21, - "column": 7 - }, - "end": { - "line": 21, - "column": 8 - } - }, - "range": [ - 634, - 635 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 9 - } - }, - "range": [ - 635, - 636 - ] - }, - { - "type": "Identifier", - "value": "next", - "loc": { - "start": { - "line": 21, - "column": 9 - }, - "end": { - "line": 21, - "column": 13 - } - }, - "range": [ - 636, - 640 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 21, - "column": 13 - }, - "end": { - "line": 21, - "column": 14 - } - }, - "range": [ - 640, - 641 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 21, - "column": 14 - }, - "end": { - "line": 21, - "column": 15 - } - }, - "range": [ - 641, - 642 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 21, - "column": 15 - }, - "end": { - "line": 21, - "column": 16 - } - }, - "range": [ - 642, - 643 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 22, - "column": 2 - }, - "end": { - "line": 22, - "column": 3 - } - }, - "range": [ - 646, - 647 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 23, - "column": 1 - } - }, - "range": [ - 648, - 649 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 6 - } - }, - "range": [ - 651, - 657 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 7 - } - }, - "range": [ - 657, - 658 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 25, - "column": 7 - }, - "end": { - "line": 25, - "column": 16 - } - }, - "range": [ - 658, - 667 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 25, - "column": 16 - }, - "end": { - "line": 25, - "column": 17 - } - }, - "range": [ - 667, - 668 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 25, - "column": 17 - }, - "end": { - "line": 25, - "column": 26 - } - }, - "range": [ - 668, - 677 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 25, - "column": 26 - }, - "end": { - "line": 25, - "column": 27 - } - }, - "range": [ - 677, - 678 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 25, - "column": 28 - }, - "end": { - "line": 25, - "column": 29 - } - }, - "range": [ - 679, - 680 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 25, - "column": 29 - }, - "end": { - "line": 25, - "column": 30 - } - }, - "range": [ - 680, - 681 - ] - }, - { - "type": "String", - "value": "'from parameter'", - "loc": { - "start": { - "line": 25, - "column": 31 - }, - "end": { - "line": 25, - "column": 47 - } - }, - "range": [ - 682, - 698 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 25, - "column": 47 - }, - "end": { - "line": 25, - "column": 48 - } - }, - "range": [ - 698, - 699 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 25, - "column": 48 - }, - "end": { - "line": 25, - "column": 49 - } - }, - "range": [ - 699, - 700 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 6 - } - }, - "range": [ - 701, - 707 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 26, - "column": 6 - }, - "end": { - "line": 26, - "column": 7 - } - }, - "range": [ - 707, - 708 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 16 - } - }, - "range": [ - 708, - 717 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 26, - "column": 16 - }, - "end": { - "line": 26, - "column": 17 - } - }, - "range": [ - 717, - 718 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 26, - "column": 17 - }, - "end": { - "line": 26, - "column": 25 - } - }, - "range": [ - 718, - 726 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 26, - "column": 25 - }, - "end": { - "line": 26, - "column": 26 - } - }, - "range": [ - 726, - 727 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 26, - "column": 27 - }, - "end": { - "line": 26, - "column": 28 - } - }, - "range": [ - 728, - 729 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 26, - "column": 28 - }, - "end": { - "line": 26, - "column": 29 - } - }, - "range": [ - 729, - 730 - ] - }, - { - "type": "String", - "value": "'from body'", - "loc": { - "start": { - "line": 26, - "column": 30 - }, - "end": { - "line": 26, - "column": 41 - } - }, - "range": [ - 731, - 742 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 26, - "column": 41 - }, - "end": { - "line": 26, - "column": 42 - } - }, - "range": [ - 742, - 743 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 26, - "column": 42 - }, - "end": { - "line": 26, - "column": 43 - } - }, - "range": [ - 743, - 744 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-reference.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-reference.src.js deleted file mode 100644 index 952fd47c..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-generators-static-init-await-reference.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: 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] ----*/ - -var await = 0; -var fromParam, fromBody; - -class C { - static { - (function * (x = fromParam = await) { - fromBody = await; - })().next(); - } -} - -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-ident-name-prop-name-literal-await-static-init.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-ident-name-prop-name-literal-await-static-init.result.js deleted file mode 100644 index d215f4b4..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-ident-name-prop-name-literal-await-static-init.result.js +++ /dev/null @@ -1,460 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 21, - "column": 1 - } - }, - "range": [ - 616, - 662 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 21, - "column": 1 - } - }, - "range": [ - 616, - 662 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 622, - 623 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 21, - "column": 1 - } - }, - "range": [ - 624, - 662 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 20, - "column": 3 - } - }, - "range": [ - 628, - 660 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 19 - } - }, - "range": [ - 641, - 656 - ], - "expression": { - "type": "ObjectExpression", - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 19, - "column": 17 - } - }, - "range": [ - 642, - 654 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 19, - "column": 7 - }, - "end": { - "line": 19, - "column": 15 - } - }, - "range": [ - 644, - 652 - ], - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 7 - }, - "end": { - "line": 19, - "column": 12 - } - }, - "range": [ - 644, - 649 - ], - "name": "await" - }, - "value": { - "type": "Literal", - "loc": { - "start": { - "line": 19, - "column": 14 - }, - "end": { - "line": 19, - "column": 15 - } - }, - "range": [ - 651, - 652 - ], - "value": 0, - "raw": "0" - }, - "kind": "init" - } - ] - } - } - ] - } - ] - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 5 - } - }, - "range": [ - 616, - 621 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 622, - 623 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 9 - } - }, - "range": [ - 624, - 625 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 8 - } - }, - "range": [ - 628, - 634 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 18, - "column": 9 - }, - "end": { - "line": 18, - "column": 10 - } - }, - "range": [ - 635, - 636 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 5 - } - }, - "range": [ - 641, - 642 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 19, - "column": 6 - } - }, - "range": [ - 642, - 643 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 19, - "column": 7 - }, - "end": { - "line": 19, - "column": 12 - } - }, - "range": [ - 644, - 649 - ] - }, - { - "type": "Punctuator", - "value": ":", - "loc": { - "start": { - "line": 19, - "column": 12 - }, - "end": { - "line": 19, - "column": 13 - } - }, - "range": [ - 649, - 650 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 19, - "column": 14 - }, - "end": { - "line": 19, - "column": 15 - } - }, - "range": [ - 651, - 652 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 17 - } - }, - "range": [ - 653, - 654 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 19, - "column": 18 - } - }, - "range": [ - 654, - 655 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 19, - "column": 18 - }, - "end": { - "line": 19, - "column": 19 - } - }, - "range": [ - 655, - 656 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 3 - } - }, - "range": [ - 659, - 660 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 21, - "column": 0 - }, - "end": { - "line": 21, - "column": 1 - } - }, - "range": [ - 661, - 662 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-ident-name-prop-name-literal-await-static-init.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-ident-name-prop-name-literal-await-static-init.src.js deleted file mode 100644 index ab01dfc8..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-ident-name-prop-name-literal-await-static-init.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: The restriction on `await` does not apply to IdentifierName -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". -features: [class-static-block] ----*/ - -class C { - static { - ({ await: 0 }); - } -} - 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-identifier-shorthand-static-init-await-valid.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-valid.module-result.js deleted file mode 100644 index 983d6a10..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-valid.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 531, - "lineNumber": 16, - "column": 15, - "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-identifier-shorthand-static-init-await-valid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-valid.result.js deleted file mode 100644 index 3013d6b7..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-valid.result.js +++ /dev/null @@ -1,535 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 496, - 547 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 496, - 547 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 502, - 503 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 504, - 547 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 508, - 545 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 521, - 541 - ], - "expression": { - "type": "ArrowFunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 522, - 539 - ], - "id": null, - "expression": true, - "generator": false, - "async": false, - "params": [], - "body": { - "type": "ObjectExpression", - "loc": { - "start": { - "line": 16, - "column": 12 - }, - "end": { - "line": 16, - "column": 21 - } - }, - "range": [ - 529, - 538 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 16, - "column": 14 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "range": [ - 531, - 536 - ], - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 14 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "range": [ - 531, - 536 - ], - "name": "await" - }, - "kind": "init", - "value": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 14 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "range": [ - 531, - 536 - ], - "name": "await" - } - } - ] - } - } - } - ] - } - ] - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 5 - } - }, - "range": [ - 496, - 501 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 502, - 503 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 504, - 505 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 8 - } - }, - "range": [ - 508, - 514 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 15, - "column": 9 - }, - "end": { - "line": 15, - "column": 10 - } - }, - "range": [ - 515, - 516 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 5 - } - }, - "range": [ - 521, - 522 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 6 - } - }, - "range": [ - 522, - 523 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 7 - } - }, - "range": [ - 523, - 524 - ] - }, - { - "type": "Punctuator", - "value": "=>", - "loc": { - "start": { - "line": 16, - "column": 8 - }, - "end": { - "line": 16, - "column": 10 - } - }, - "range": [ - 525, - 527 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 11 - }, - "end": { - "line": 16, - "column": 12 - } - }, - "range": [ - 528, - 529 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 12 - }, - "end": { - "line": 16, - "column": 13 - } - }, - "range": [ - 529, - 530 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 14 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "range": [ - 531, - 536 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 20 - }, - "end": { - "line": 16, - "column": 21 - } - }, - "range": [ - 537, - 538 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 21 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 538, - 539 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 22 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 539, - 540 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 23 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 540, - 541 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 544, - 545 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 546, - 547 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-valid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-valid.src.js deleted file mode 100644 index 868bb984..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-identifier-shorthand-static-init-await-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 the body of arrow functions -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - [...] - - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true. -features: [class-static-block] ----*/ - -class C { - static { - (() => ({ await })); - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-accessor.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-accessor.module-result.js deleted file mode 100644 index ebb1186f..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-accessor.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 537, - "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/expressions-object-method-definition-static-init-await-binding-accessor.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-accessor.result.js deleted file mode 100644 index a01ab120..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-accessor.result.js +++ /dev/null @@ -1,572 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 497, - 555 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 497, - 555 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 503, - 504 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 505, - 555 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 509, - 553 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 31 - } - }, - "range": [ - 522, - 549 - ], - "expression": { - "type": "ObjectExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 523, - 547 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 28 - } - }, - "range": [ - 524, - 546 - ], - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 10 - }, - "end": { - "line": 16, - "column": 18 - } - }, - "range": [ - 528, - 536 - ], - "name": "accessor" - }, - "kind": "set", - "value": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 18 - }, - "end": { - "line": 16, - "column": 28 - } - }, - "range": [ - 536, - 546 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 19 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 537, - 542 - ], - "name": "await" - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 26 - }, - "end": { - "line": 16, - "column": 28 - } - }, - "range": [ - 544, - 546 - ], - "body": [] - } - } - } - ] - } - } - ] - } - ] - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 5 - } - }, - "range": [ - 497, - 502 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 503, - 504 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 505, - 506 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 8 - } - }, - "range": [ - 509, - 515 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 15, - "column": 9 - }, - "end": { - "line": 15, - "column": 10 - } - }, - "range": [ - 516, - 517 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 5 - } - }, - "range": [ - 522, - 523 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 6 - } - }, - "range": [ - 523, - 524 - ] - }, - { - "type": "Identifier", - "value": "set", - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 9 - } - }, - "range": [ - 524, - 527 - ] - }, - { - "type": "Identifier", - "value": "accessor", - "loc": { - "start": { - "line": 16, - "column": 10 - }, - "end": { - "line": 16, - "column": 18 - } - }, - "range": [ - 528, - 536 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 18 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "range": [ - 536, - 537 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 19 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 537, - 542 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 24 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 542, - 543 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 26 - }, - "end": { - "line": 16, - "column": 27 - } - }, - "range": [ - 544, - 545 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 27 - }, - "end": { - "line": 16, - "column": 28 - } - }, - "range": [ - 545, - 546 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 28 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 546, - 547 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 29 - }, - "end": { - "line": 16, - "column": 30 - } - }, - "range": [ - 547, - 548 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 30 - }, - "end": { - "line": 16, - "column": 31 - } - }, - "range": [ - 548, - 549 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 552, - 553 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 554, - 555 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-accessor.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-accessor.src.js deleted file mode 100644 index 8eeda7fc..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-accessor.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 the body of accessor methods -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - [...] - - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true. -features: [class-static-block] ----*/ - -class C { - static { - ({set accessor(await) {}}); - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-generator.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-generator.module-result.js deleted file mode 100644 index c6d6ae09..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-generator.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 543, - "lineNumber": 16, - "column": 15, - "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-binding-generator.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-generator.result.js deleted file mode 100644 index 1d4d82f7..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-generator.result.js +++ /dev/null @@ -1,572 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 508, - 561 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 508, - 561 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 514, - 515 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 516, - 561 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 520, - 559 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 26 - } - }, - "range": [ - 533, - 555 - ], - "expression": { - "type": "ObjectExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 534, - 553 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 535, - 552 - ], - "method": true, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 7 - }, - "end": { - "line": 16, - "column": 13 - } - }, - "range": [ - 536, - 542 - ], - "name": "method" - }, - "kind": "init", - "value": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 542, - 552 - ], - "id": null, - "expression": false, - "generator": true, - "async": false, - "params": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 14 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "range": [ - 543, - 548 - ], - "name": "await" - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 21 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 550, - 552 - ], - "body": [] - } - } - } - ] - } - } - ] - } - ] - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 5 - } - }, - "range": [ - 508, - 513 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 514, - 515 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 516, - 517 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 8 - } - }, - "range": [ - 520, - 526 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 15, - "column": 9 - }, - "end": { - "line": 15, - "column": 10 - } - }, - "range": [ - 527, - 528 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 5 - } - }, - "range": [ - 533, - 534 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 6 - } - }, - "range": [ - 534, - 535 - ] - }, - { - "type": "Punctuator", - "value": "*", - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 7 - } - }, - "range": [ - 535, - 536 - ] - }, - { - "type": "Identifier", - "value": "method", - "loc": { - "start": { - "line": 16, - "column": 7 - }, - "end": { - "line": 16, - "column": 13 - } - }, - "range": [ - 536, - 542 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 14 - } - }, - "range": [ - 542, - 543 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 14 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "range": [ - 543, - 548 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 19 - }, - "end": { - "line": 16, - "column": 20 - } - }, - "range": [ - 548, - 549 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 21 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 550, - 551 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 22 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 551, - 552 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 23 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 552, - 553 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 24 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 553, - 554 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 25 - }, - "end": { - "line": 16, - "column": 26 - } - }, - "range": [ - 554, - 555 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 558, - 559 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 560, - 561 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-generator.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-generator.src.js deleted file mode 100644 index 33e5f182..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-generator.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 the parameter list of generator methods -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - [...] - - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true. -features: [class-static-block] ----*/ - -class C { - static { - ({*method(await) {}}); - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-normal.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-normal.module-result.js deleted file mode 100644 index abef7f63..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-normal.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 532, - "lineNumber": 16, - "column": 14, - "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-binding-normal.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-normal.result.js deleted file mode 100644 index 8d5f7dfb..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-normal.result.js +++ /dev/null @@ -1,554 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 498, - 550 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 498, - 550 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 504, - 505 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 506, - 550 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 510, - 548 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 523, - 544 - ], - "expression": { - "type": "ObjectExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 524, - 542 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 525, - 541 - ], - "method": true, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 12 - } - }, - "range": [ - 525, - 531 - ], - "name": "method" - }, - "kind": "init", - "value": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 12 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 531, - 541 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 18 - } - }, - "range": [ - 532, - 537 - ], - "name": "await" - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 20 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 539, - 541 - ], - "body": [] - } - } - } - ] - } - } - ] - } - ] - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 5 - } - }, - "range": [ - 498, - 503 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 14, - "column": 6 - }, - "end": { - "line": 14, - "column": 7 - } - }, - "range": [ - 504, - 505 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 506, - 507 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 15, - "column": 8 - } - }, - "range": [ - 510, - 516 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 15, - "column": 9 - }, - "end": { - "line": 15, - "column": 10 - } - }, - "range": [ - 517, - 518 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 5 - } - }, - "range": [ - 523, - 524 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 6 - } - }, - "range": [ - 524, - 525 - ] - }, - { - "type": "Identifier", - "value": "method", - "loc": { - "start": { - "line": 16, - "column": 6 - }, - "end": { - "line": 16, - "column": 12 - } - }, - "range": [ - 525, - 531 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 12 - }, - "end": { - "line": 16, - "column": 13 - } - }, - "range": [ - 531, - 532 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 18 - } - }, - "range": [ - 532, - 537 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 18 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "range": [ - 537, - 538 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 20 - }, - "end": { - "line": 16, - "column": 21 - } - }, - "range": [ - 539, - 540 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 21 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 540, - 541 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 22 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 541, - 542 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 23 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 542, - 543 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 24 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 543, - 544 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 547, - 548 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 549, - 550 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-normal.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-normal.src.js deleted file mode 100644 index 4c548f4b..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-binding-normal.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 the parameter list of methods -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - [...] - - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true. -features: [class-static-block] ----*/ - -class C { - static { - ({method(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-generator.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-generator.module-result.js deleted file mode 100644 index 90f4b361..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-generator.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 490, - "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-generator.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-generator.result.js deleted file mode 100644 index 920521b0..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-generator.result.js +++ /dev/null @@ -1,2153 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 28, - "column": 43 - } - }, - "range": [ - 486, - 752 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 14, - "column": 14 - } - }, - "range": [ - 486, - 500 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 490, - 499 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 490, - 495 - ], - "name": "await" - }, - "init": { - "type": "Literal", - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 498, - 499 - ], - "value": 0, - "raw": "0" - } - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 24 - } - }, - "range": [ - 501, - 525 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 505, - 514 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 505, - 514 - ], - "name": "fromParam" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 516, - 524 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 516, - 524 - ], - "name": "fromBody" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "range": [ - 527, - 657 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 533, - 534 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "range": [ - 535, - 657 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 24, - "column": 3 - } - }, - "range": [ - 539, - 655 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 23, - "column": 23 - } - }, - "range": [ - 552, - 651 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 23, - "column": 22 - } - }, - "range": [ - 552, - 650 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 23, - "column": 20 - } - }, - "range": [ - 552, - 648 - ], - "object": { - "type": "CallExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 23, - "column": 15 - } - }, - "range": [ - 552, - 643 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 23, - "column": 13 - } - }, - "range": [ - 552, - 641 - ], - "object": { - "type": "ObjectExpression", - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 23, - "column": 5 - } - }, - "range": [ - 553, - 633 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 561, - 627 - ], - "method": true, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 7 - }, - "end": { - "line": 20, - "column": 13 - } - }, - "range": [ - 562, - 568 - ], - "name": "method" - }, - "kind": "init", - "value": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 20, - "column": 13 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 568, - 627 - ], - "id": null, - "expression": false, - "generator": true, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "loc": { - "start": { - "line": 20, - "column": 14 - }, - "end": { - "line": 20, - "column": 35 - } - }, - "range": [ - 569, - 590 - ], - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 14 - }, - "end": { - "line": 20, - "column": 15 - } - }, - "range": [ - 569, - 570 - ], - "name": "x" - }, - "right": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 20, - "column": 18 - }, - "end": { - "line": 20, - "column": 35 - } - }, - "range": [ - 573, - 590 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 18 - }, - "end": { - "line": 20, - "column": 27 - } - }, - "range": [ - 573, - 582 - ], - "name": "fromParam" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 30 - }, - "end": { - "line": 20, - "column": 35 - } - }, - "range": [ - 585, - 590 - ], - "name": "await" - } - } - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 20, - "column": 37 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 592, - 627 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 25 - } - }, - "range": [ - 602, - 619 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 24 - } - }, - "range": [ - 602, - 618 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 16 - } - }, - "range": [ - 602, - 610 - ], - "name": "fromBody" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 21, - "column": 19 - }, - "end": { - "line": 21, - "column": 24 - } - }, - "range": [ - 613, - 618 - ], - "name": "await" - } - } - } - ] - } - } - } - ] - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 13 - } - }, - "range": [ - 635, - 641 - ], - "name": "method" - }, - "computed": false, - "optional": false - }, - "arguments": [], - "optional": false - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 23, - "column": 16 - }, - "end": { - "line": 23, - "column": 20 - } - }, - "range": [ - 644, - 648 - ], - "name": "next" - }, - "computed": false, - "optional": false - }, - "arguments": [], - "optional": false - } - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 49 - } - }, - "range": [ - 659, - 708 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 48 - } - }, - "range": [ - 659, - 707 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 16 - } - }, - "range": [ - 659, - 675 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 6 - } - }, - "range": [ - 659, - 665 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 16 - } - }, - "range": [ - 666, - 675 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 27, - "column": 17 - }, - "end": { - "line": 27, - "column": 26 - } - }, - "range": [ - 676, - 685 - ], - "name": "fromParam" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 27, - "column": 28 - }, - "end": { - "line": 27, - "column": 29 - } - }, - "range": [ - 687, - 688 - ], - "value": 0, - "raw": "0" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 27, - "column": 31 - }, - "end": { - "line": 27, - "column": 47 - } - }, - "range": [ - 690, - 706 - ], - "value": "from parameter", - "raw": "'from parameter'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 43 - } - }, - "range": [ - 709, - 752 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 42 - } - }, - "range": [ - 709, - 751 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 16 - } - }, - "range": [ - 709, - 725 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 6 - } - }, - "range": [ - 709, - 715 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 28, - "column": 7 - }, - "end": { - "line": 28, - "column": 16 - } - }, - "range": [ - 716, - 725 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 28, - "column": 25 - } - }, - "range": [ - 726, - 734 - ], - "name": "fromBody" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 28, - "column": 27 - }, - "end": { - "line": 28, - "column": 28 - } - }, - "range": [ - 736, - 737 - ], - "value": 0, - "raw": "0" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 28, - "column": 30 - }, - "end": { - "line": 28, - "column": 41 - } - }, - "range": [ - 739, - 750 - ], - "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": [ - 486, - 489 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 14, - "column": 4 - }, - "end": { - "line": 14, - "column": 9 - } - }, - "range": [ - 490, - 495 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 14, - "column": 10 - }, - "end": { - "line": 14, - "column": 11 - } - }, - "range": [ - 496, - 497 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - }, - "range": [ - 498, - 499 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 14, - "column": 13 - }, - "end": { - "line": 14, - "column": 14 - } - }, - "range": [ - 499, - 500 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - }, - "range": [ - 501, - 504 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 505, - 514 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 15, - "column": 13 - }, - "end": { - "line": 15, - "column": 14 - } - }, - "range": [ - 514, - 515 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 23 - } - }, - "range": [ - 516, - 524 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 15, - "column": 23 - }, - "end": { - "line": 15, - "column": 24 - } - }, - "range": [ - 524, - 525 - ] - }, - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 5 - } - }, - "range": [ - 527, - 532 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 533, - 534 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 9 - } - }, - "range": [ - 535, - 536 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 8 - } - }, - "range": [ - 539, - 545 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 18, - "column": 9 - }, - "end": { - "line": 18, - "column": 10 - } - }, - "range": [ - 546, - 547 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 5 - } - }, - "range": [ - 552, - 553 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 19, - "column": 5 - }, - "end": { - "line": 19, - "column": 6 - } - }, - "range": [ - 553, - 554 - ] - }, - { - "type": "Punctuator", - "value": "*", - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 7 - } - }, - "range": [ - 561, - 562 - ] - }, - { - "type": "Identifier", - "value": "method", - "loc": { - "start": { - "line": 20, - "column": 7 - }, - "end": { - "line": 20, - "column": 13 - } - }, - "range": [ - 562, - 568 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 20, - "column": 13 - }, - "end": { - "line": 20, - "column": 14 - } - }, - "range": [ - 568, - 569 - ] - }, - { - "type": "Identifier", - "value": "x", - "loc": { - "start": { - "line": 20, - "column": 14 - }, - "end": { - "line": 20, - "column": 15 - } - }, - "range": [ - 569, - 570 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 20, - "column": 16 - }, - "end": { - "line": 20, - "column": 17 - } - }, - "range": [ - 571, - 572 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 20, - "column": 18 - }, - "end": { - "line": 20, - "column": 27 - } - }, - "range": [ - 573, - 582 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 20, - "column": 28 - }, - "end": { - "line": 20, - "column": 29 - } - }, - "range": [ - 583, - 584 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 20, - "column": 30 - }, - "end": { - "line": 20, - "column": 35 - } - }, - "range": [ - 585, - 590 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 20, - "column": 35 - }, - "end": { - "line": 20, - "column": 36 - } - }, - "range": [ - 590, - 591 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 20, - "column": 37 - }, - "end": { - "line": 20, - "column": 38 - } - }, - "range": [ - 592, - 593 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 21, - "column": 8 - }, - "end": { - "line": 21, - "column": 16 - } - }, - "range": [ - 602, - 610 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 21, - "column": 17 - }, - "end": { - "line": 21, - "column": 18 - } - }, - "range": [ - 611, - 612 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 21, - "column": 19 - }, - "end": { - "line": 21, - "column": 24 - } - }, - "range": [ - 613, - 618 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 21, - "column": 24 - }, - "end": { - "line": 21, - "column": 25 - } - }, - "range": [ - 618, - 619 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 626, - 627 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 5 - } - }, - "range": [ - 632, - 633 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 23, - "column": 5 - }, - "end": { - "line": 23, - "column": 6 - } - }, - "range": [ - 633, - 634 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 7 - } - }, - "range": [ - 634, - 635 - ] - }, - { - "type": "Identifier", - "value": "method", - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 13 - } - }, - "range": [ - 635, - 641 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 23, - "column": 13 - }, - "end": { - "line": 23, - "column": 14 - } - }, - "range": [ - 641, - 642 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 23, - "column": 14 - }, - "end": { - "line": 23, - "column": 15 - } - }, - "range": [ - 642, - 643 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 23, - "column": 15 - }, - "end": { - "line": 23, - "column": 16 - } - }, - "range": [ - 643, - 644 - ] - }, - { - "type": "Identifier", - "value": "next", - "loc": { - "start": { - "line": 23, - "column": 16 - }, - "end": { - "line": 23, - "column": 20 - } - }, - "range": [ - 644, - 648 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 23, - "column": 20 - }, - "end": { - "line": 23, - "column": 21 - } - }, - "range": [ - 648, - 649 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 23, - "column": 21 - }, - "end": { - "line": 23, - "column": 22 - } - }, - "range": [ - 649, - 650 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 23, - "column": 22 - }, - "end": { - "line": 23, - "column": 23 - } - }, - "range": [ - 650, - 651 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 3 - } - }, - "range": [ - 654, - 655 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 1 - } - }, - "range": [ - 656, - 657 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 27, - "column": 0 - }, - "end": { - "line": 27, - "column": 6 - } - }, - "range": [ - 659, - 665 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 27, - "column": 6 - }, - "end": { - "line": 27, - "column": 7 - } - }, - "range": [ - 665, - 666 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 16 - } - }, - "range": [ - 666, - 675 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 27, - "column": 16 - }, - "end": { - "line": 27, - "column": 17 - } - }, - "range": [ - 675, - 676 - ] - }, - { - "type": "Identifier", - "value": "fromParam", - "loc": { - "start": { - "line": 27, - "column": 17 - }, - "end": { - "line": 27, - "column": 26 - } - }, - "range": [ - 676, - 685 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 27, - "column": 26 - }, - "end": { - "line": 27, - "column": 27 - } - }, - "range": [ - 685, - 686 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 27, - "column": 28 - }, - "end": { - "line": 27, - "column": 29 - } - }, - "range": [ - 687, - 688 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 27, - "column": 29 - }, - "end": { - "line": 27, - "column": 30 - } - }, - "range": [ - 688, - 689 - ] - }, - { - "type": "String", - "value": "'from parameter'", - "loc": { - "start": { - "line": 27, - "column": 31 - }, - "end": { - "line": 27, - "column": 47 - } - }, - "range": [ - 690, - 706 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 27, - "column": 47 - }, - "end": { - "line": 27, - "column": 48 - } - }, - "range": [ - 706, - 707 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 27, - "column": 48 - }, - "end": { - "line": 27, - "column": 49 - } - }, - "range": [ - 707, - 708 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 6 - } - }, - "range": [ - 709, - 715 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 28, - "column": 7 - } - }, - "range": [ - 715, - 716 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 28, - "column": 7 - }, - "end": { - "line": 28, - "column": 16 - } - }, - "range": [ - 716, - 725 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 28, - "column": 16 - }, - "end": { - "line": 28, - "column": 17 - } - }, - "range": [ - 725, - 726 - ] - }, - { - "type": "Identifier", - "value": "fromBody", - "loc": { - "start": { - "line": 28, - "column": 17 - }, - "end": { - "line": 28, - "column": 25 - } - }, - "range": [ - 726, - 734 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 28, - "column": 25 - }, - "end": { - "line": 28, - "column": 26 - } - }, - "range": [ - 734, - 735 - ] - }, - { - "type": "Numeric", - "value": "0", - "loc": { - "start": { - "line": 28, - "column": 27 - }, - "end": { - "line": 28, - "column": 28 - } - }, - "range": [ - 736, - 737 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 28, - "column": 28 - }, - "end": { - "line": 28, - "column": 29 - } - }, - "range": [ - 737, - 738 - ] - }, - { - "type": "String", - "value": "'from body'", - "loc": { - "start": { - "line": 28, - "column": 30 - }, - "end": { - "line": 28, - "column": 41 - } - }, - "range": [ - 739, - 750 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 28, - "column": 41 - }, - "end": { - "line": 28, - "column": 42 - } - }, - "range": [ - 750, - 751 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 28, - "column": 42 - }, - "end": { - "line": 28, - "column": 43 - } - }, - "range": [ - 751, - 752 - ] - } - ] -}; \ 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-generator.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-generator.src.js deleted file mode 100644 index eaaf7a4b..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/expressions-object-method-definition-static-init-await-reference-generator.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 generator 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().next(); - } -} - -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-abrupt.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-abrupt.result.js deleted file mode 100644 index 29876ec8..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-abrupt.result.js +++ /dev/null @@ -1,3451 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 22, - "column": 0 - }, - "end": { - "line": 46, - "column": 61 - } - }, - "range": [ - 977, - 1523 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 22, - "column": 0 - }, - "end": { - "line": 22, - "column": 32 - } - }, - "range": [ - 977, - 1009 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 22, - "column": 4 - }, - "end": { - "line": 22, - "column": 31 - } - }, - "range": [ - 981, - 1008 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 22, - "column": 4 - }, - "end": { - "line": 22, - "column": 10 - } - }, - "range": [ - 981, - 987 - ], - "name": "thrown" - }, - "init": { - "type": "NewExpression", - "loc": { - "start": { - "line": 22, - "column": 13 - }, - "end": { - "line": 22, - "column": 31 - } - }, - "range": [ - 990, - 1008 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 22, - "column": 17 - }, - "end": { - "line": 22, - "column": 29 - } - }, - "range": [ - 994, - 1006 - ], - "name": "Test262Error" - }, - "arguments": [] - } - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 23, - "column": 11 - } - }, - "range": [ - 1010, - 1021 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 10 - } - }, - "range": [ - 1014, - 1020 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 10 - } - }, - "range": [ - 1014, - 1020 - ], - "name": "caught" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 24, - "column": 0 - }, - "end": { - "line": 24, - "column": 22 - } - }, - "range": [ - 1022, - 1044 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 21 - } - }, - "range": [ - 1026, - 1043 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 13 - } - }, - "range": [ - 1026, - 1035 - ], - "name": "sameBlock" - }, - "init": { - "type": "Literal", - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 24, - "column": 21 - } - }, - "range": [ - 1038, - 1043 - ], - "value": false, - "raw": "false" - } - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 28 - } - }, - "range": [ - 1045, - 1073 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 27 - } - }, - "range": [ - 1049, - 1072 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 19 - } - }, - "range": [ - 1049, - 1064 - ], - "name": "subsequentField" - }, - "init": { - "type": "Literal", - "loc": { - "start": { - "line": 25, - "column": 22 - }, - "end": { - "line": 25, - "column": 27 - } - }, - "range": [ - 1067, - 1072 - ], - "value": false, - "raw": "false" - } - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 28 - } - }, - "range": [ - 1074, - 1102 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 26, - "column": 27 - } - }, - "range": [ - 1078, - 1101 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 26, - "column": 19 - } - }, - "range": [ - 1078, - 1093 - ], - "name": "subsequentBlock" - }, - "init": { - "type": "Literal", - "loc": { - "start": { - "line": 26, - "column": 22 - }, - "end": { - "line": 26, - "column": 27 - } - }, - "range": [ - 1096, - 1101 - ], - "value": false, - "raw": "false" - } - } - ], - "kind": "var" - }, - { - "type": "TryStatement", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 41, - "column": 1 - } - }, - "range": [ - 1104, - 1314 - ], - "block": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 28, - "column": 4 - }, - "end": { - "line": 39, - "column": 1 - } - }, - "range": [ - 1108, - 1278 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 38, - "column": 3 - } - }, - "range": [ - 1112, - 1276 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 29, - "column": 9 - } - }, - "range": [ - 1118, - 1119 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 29, - "column": 10 - }, - "end": { - "line": 38, - "column": 3 - } - }, - "range": [ - 1120, - 1276 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 30, - "column": 4 - }, - "end": { - "line": 33, - "column": 5 - } - }, - "range": [ - 1126, - 1184 - ], - "body": [ - { - "type": "ThrowStatement", - "loc": { - "start": { - "line": 31, - "column": 6 - }, - "end": { - "line": 31, - "column": 19 - } - }, - "range": [ - 1141, - 1154 - ], - "argument": { - "type": "Identifier", - "loc": { - "start": { - "line": 31, - "column": 12 - }, - "end": { - "line": 31, - "column": 18 - } - }, - "range": [ - 1147, - 1153 - ], - "name": "thrown" - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 32, - "column": 6 - }, - "end": { - "line": 32, - "column": 23 - } - }, - "range": [ - 1161, - 1178 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 32, - "column": 6 - }, - "end": { - "line": 32, - "column": 22 - } - }, - "range": [ - 1161, - 1177 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 32, - "column": 6 - }, - "end": { - "line": 32, - "column": 15 - } - }, - "range": [ - 1161, - 1170 - ], - "name": "sameBlock" - }, - "right": { - "type": "Literal", - "loc": { - "start": { - "line": 32, - "column": 18 - }, - "end": { - "line": 32, - "column": 22 - } - }, - "range": [ - 1173, - 1177 - ], - "value": true, - "raw": "true" - } - } - } - ] - }, - { - "type": "PropertyDefinition", - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 38 - } - }, - "range": [ - 1189, - 1223 - ], - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 34, - "column": 11 - }, - "end": { - "line": 34, - "column": 12 - } - }, - "range": [ - 1196, - 1197 - ], - "name": "x" - }, - "value": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 34, - "column": 15 - }, - "end": { - "line": 34, - "column": 37 - } - }, - "range": [ - 1200, - 1222 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 34, - "column": 15 - }, - "end": { - "line": 34, - "column": 30 - } - }, - "range": [ - 1200, - 1215 - ], - "name": "subsequentField" - }, - "right": { - "type": "Literal", - "loc": { - "start": { - "line": 34, - "column": 33 - }, - "end": { - "line": 34, - "column": 37 - } - }, - "range": [ - 1218, - 1222 - ], - "value": true, - "raw": "true" - } - } - }, - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 37, - "column": 5 - } - }, - "range": [ - 1228, - 1272 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 36, - "column": 6 - }, - "end": { - "line": 36, - "column": 29 - } - }, - "range": [ - 1243, - 1266 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 36, - "column": 6 - }, - "end": { - "line": 36, - "column": 28 - } - }, - "range": [ - 1243, - 1265 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 36, - "column": 6 - }, - "end": { - "line": 36, - "column": 21 - } - }, - "range": [ - 1243, - 1258 - ], - "name": "subsequentBlock" - }, - "right": { - "type": "Literal", - "loc": { - "start": { - "line": 36, - "column": 24 - }, - "end": { - "line": 36, - "column": 28 - } - }, - "range": [ - 1261, - 1265 - ], - "value": true, - "raw": "true" - } - } - } - ] - } - ] - } - } - ] - }, - "handler": { - "type": "CatchClause", - "loc": { - "start": { - "line": 39, - "column": 2 - }, - "end": { - "line": 41, - "column": 1 - } - }, - "range": [ - 1279, - 1314 - ], - "param": { - "type": "Identifier", - "loc": { - "start": { - "line": 39, - "column": 9 - }, - "end": { - "line": 39, - "column": 14 - } - }, - "range": [ - 1286, - 1291 - ], - "name": "error" - }, - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 39, - "column": 16 - }, - "end": { - "line": 41, - "column": 1 - } - }, - "range": [ - 1293, - 1314 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 40, - "column": 2 - }, - "end": { - "line": 40, - "column": 17 - } - }, - "range": [ - 1297, - 1312 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 40, - "column": 2 - }, - "end": { - "line": 40, - "column": 16 - } - }, - "range": [ - 1297, - 1311 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 40, - "column": 2 - }, - "end": { - "line": 40, - "column": 8 - } - }, - "range": [ - 1297, - 1303 - ], - "name": "caught" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 40, - "column": 11 - }, - "end": { - "line": 40, - "column": 16 - } - }, - "range": [ - 1306, - 1311 - ], - "name": "error" - } - } - } - ] - } - }, - "finalizer": null - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 43, - "column": 0 - }, - "end": { - "line": 43, - "column": 33 - } - }, - "range": [ - 1316, - 1349 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 43, - "column": 0 - }, - "end": { - "line": 43, - "column": 32 - } - }, - "range": [ - 1316, - 1348 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 43, - "column": 0 - }, - "end": { - "line": 43, - "column": 16 - } - }, - "range": [ - 1316, - 1332 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 43, - "column": 0 - }, - "end": { - "line": 43, - "column": 6 - } - }, - "range": [ - 1316, - 1322 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 43, - "column": 7 - }, - "end": { - "line": 43, - "column": 16 - } - }, - "range": [ - 1323, - 1332 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 43, - "column": 17 - }, - "end": { - "line": 43, - "column": 23 - } - }, - "range": [ - 1333, - 1339 - ], - "name": "caught" - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 43, - "column": 25 - }, - "end": { - "line": 43, - "column": 31 - } - }, - "range": [ - 1341, - 1347 - ], - "name": "thrown" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 44, - "column": 49 - } - }, - "range": [ - 1350, - 1399 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 44, - "column": 48 - } - }, - "range": [ - 1350, - 1398 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 44, - "column": 16 - } - }, - "range": [ - 1350, - 1366 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 44, - "column": 6 - } - }, - "range": [ - 1350, - 1356 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 44, - "column": 7 - }, - "end": { - "line": 44, - "column": 16 - } - }, - "range": [ - 1357, - 1366 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 44, - "column": 17 - }, - "end": { - "line": 44, - "column": 26 - } - }, - "range": [ - 1367, - 1376 - ], - "name": "sameBlock" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 44, - "column": 28 - }, - "end": { - "line": 44, - "column": 33 - } - }, - "range": [ - 1378, - 1383 - ], - "value": false, - "raw": "false" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 44, - "column": 35 - }, - "end": { - "line": 44, - "column": 47 - } - }, - "range": [ - 1385, - 1397 - ], - "value": "same block", - "raw": "'same block'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 45, - "column": 0 - }, - "end": { - "line": 45, - "column": 61 - } - }, - "range": [ - 1400, - 1461 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 45, - "column": 0 - }, - "end": { - "line": 45, - "column": 60 - } - }, - "range": [ - 1400, - 1460 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 45, - "column": 0 - }, - "end": { - "line": 45, - "column": 16 - } - }, - "range": [ - 1400, - 1416 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 45, - "column": 0 - }, - "end": { - "line": 45, - "column": 6 - } - }, - "range": [ - 1400, - 1406 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 45, - "column": 7 - }, - "end": { - "line": 45, - "column": 16 - } - }, - "range": [ - 1407, - 1416 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 45, - "column": 32 - } - }, - "range": [ - 1417, - 1432 - ], - "name": "subsequentField" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 45, - "column": 34 - }, - "end": { - "line": 45, - "column": 39 - } - }, - "range": [ - 1434, - 1439 - ], - "value": false, - "raw": "false" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 45, - "column": 41 - }, - "end": { - "line": 45, - "column": 59 - } - }, - "range": [ - 1441, - 1459 - ], - "value": "subsequent field", - "raw": "'subsequent field'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 46, - "column": 61 - } - }, - "range": [ - 1462, - 1523 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 46, - "column": 60 - } - }, - "range": [ - 1462, - 1522 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 46, - "column": 16 - } - }, - "range": [ - 1462, - 1478 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 46, - "column": 6 - } - }, - "range": [ - 1462, - 1468 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 46, - "column": 7 - }, - "end": { - "line": 46, - "column": 16 - } - }, - "range": [ - 1469, - 1478 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 46, - "column": 17 - }, - "end": { - "line": 46, - "column": 32 - } - }, - "range": [ - 1479, - 1494 - ], - "name": "subsequentBlock" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 46, - "column": 34 - }, - "end": { - "line": 46, - "column": 39 - } - }, - "range": [ - 1496, - 1501 - ], - "value": false, - "raw": "false" - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 46, - "column": 41 - }, - "end": { - "line": 46, - "column": 59 - } - }, - "range": [ - 1503, - 1521 - ], - "value": "subsequent block", - "raw": "'subsequent block'" - } - ], - "optional": false - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 22, - "column": 0 - }, - "end": { - "line": 22, - "column": 3 - } - }, - "range": [ - 977, - 980 - ] - }, - { - "type": "Identifier", - "value": "thrown", - "loc": { - "start": { - "line": 22, - "column": 4 - }, - "end": { - "line": 22, - "column": 10 - } - }, - "range": [ - 981, - 987 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 22, - "column": 11 - }, - "end": { - "line": 22, - "column": 12 - } - }, - "range": [ - 988, - 989 - ] - }, - { - "type": "Keyword", - "value": "new", - "loc": { - "start": { - "line": 22, - "column": 13 - }, - "end": { - "line": 22, - "column": 16 - } - }, - "range": [ - 990, - 993 - ] - }, - { - "type": "Identifier", - "value": "Test262Error", - "loc": { - "start": { - "line": 22, - "column": 17 - }, - "end": { - "line": 22, - "column": 29 - } - }, - "range": [ - 994, - 1006 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 22, - "column": 29 - }, - "end": { - "line": 22, - "column": 30 - } - }, - "range": [ - 1006, - 1007 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 22, - "column": 30 - }, - "end": { - "line": 22, - "column": 31 - } - }, - "range": [ - 1007, - 1008 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 22, - "column": 31 - }, - "end": { - "line": 22, - "column": 32 - } - }, - "range": [ - 1008, - 1009 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - }, - "range": [ - 1010, - 1013 - ] - }, - { - "type": "Identifier", - "value": "caught", - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 10 - } - }, - "range": [ - 1014, - 1020 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 23, - "column": 10 - }, - "end": { - "line": 23, - "column": 11 - } - }, - "range": [ - 1020, - 1021 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 24, - "column": 0 - }, - "end": { - "line": 24, - "column": 3 - } - }, - "range": [ - 1022, - 1025 - ] - }, - { - "type": "Identifier", - "value": "sameBlock", - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 13 - } - }, - "range": [ - 1026, - 1035 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 24, - "column": 14 - }, - "end": { - "line": 24, - "column": 15 - } - }, - "range": [ - 1036, - 1037 - ] - }, - { - "type": "Boolean", - "value": "false", - "loc": { - "start": { - "line": 24, - "column": 16 - }, - "end": { - "line": 24, - "column": 21 - } - }, - "range": [ - 1038, - 1043 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 24, - "column": 21 - }, - "end": { - "line": 24, - "column": 22 - } - }, - "range": [ - 1043, - 1044 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 25, - "column": 0 - }, - "end": { - "line": 25, - "column": 3 - } - }, - "range": [ - 1045, - 1048 - ] - }, - { - "type": "Identifier", - "value": "subsequentField", - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 19 - } - }, - "range": [ - 1049, - 1064 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 25, - "column": 20 - }, - "end": { - "line": 25, - "column": 21 - } - }, - "range": [ - 1065, - 1066 - ] - }, - { - "type": "Boolean", - "value": "false", - "loc": { - "start": { - "line": 25, - "column": 22 - }, - "end": { - "line": 25, - "column": 27 - } - }, - "range": [ - 1067, - 1072 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 25, - "column": 27 - }, - "end": { - "line": 25, - "column": 28 - } - }, - "range": [ - 1072, - 1073 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 3 - } - }, - "range": [ - 1074, - 1077 - ] - }, - { - "type": "Identifier", - "value": "subsequentBlock", - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 26, - "column": 19 - } - }, - "range": [ - 1078, - 1093 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 26, - "column": 20 - }, - "end": { - "line": 26, - "column": 21 - } - }, - "range": [ - 1094, - 1095 - ] - }, - { - "type": "Boolean", - "value": "false", - "loc": { - "start": { - "line": 26, - "column": 22 - }, - "end": { - "line": 26, - "column": 27 - } - }, - "range": [ - 1096, - 1101 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 26, - "column": 27 - }, - "end": { - "line": 26, - "column": 28 - } - }, - "range": [ - 1101, - 1102 - ] - }, - { - "type": "Keyword", - "value": "try", - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 28, - "column": 3 - } - }, - "range": [ - 1104, - 1107 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 28, - "column": 4 - }, - "end": { - "line": 28, - "column": 5 - } - }, - "range": [ - 1108, - 1109 - ] - }, - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 29, - "column": 2 - }, - "end": { - "line": 29, - "column": 7 - } - }, - "range": [ - 1112, - 1117 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 29, - "column": 9 - } - }, - "range": [ - 1118, - 1119 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 29, - "column": 10 - }, - "end": { - "line": 29, - "column": 11 - } - }, - "range": [ - 1120, - 1121 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 30, - "column": 4 - }, - "end": { - "line": 30, - "column": 10 - } - }, - "range": [ - 1126, - 1132 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 30, - "column": 11 - }, - "end": { - "line": 30, - "column": 12 - } - }, - "range": [ - 1133, - 1134 - ] - }, - { - "type": "Keyword", - "value": "throw", - "loc": { - "start": { - "line": 31, - "column": 6 - }, - "end": { - "line": 31, - "column": 11 - } - }, - "range": [ - 1141, - 1146 - ] - }, - { - "type": "Identifier", - "value": "thrown", - "loc": { - "start": { - "line": 31, - "column": 12 - }, - "end": { - "line": 31, - "column": 18 - } - }, - "range": [ - 1147, - 1153 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 31, - "column": 18 - }, - "end": { - "line": 31, - "column": 19 - } - }, - "range": [ - 1153, - 1154 - ] - }, - { - "type": "Identifier", - "value": "sameBlock", - "loc": { - "start": { - "line": 32, - "column": 6 - }, - "end": { - "line": 32, - "column": 15 - } - }, - "range": [ - 1161, - 1170 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 32, - "column": 16 - }, - "end": { - "line": 32, - "column": 17 - } - }, - "range": [ - 1171, - 1172 - ] - }, - { - "type": "Boolean", - "value": "true", - "loc": { - "start": { - "line": 32, - "column": 18 - }, - "end": { - "line": 32, - "column": 22 - } - }, - "range": [ - 1173, - 1177 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 32, - "column": 22 - }, - "end": { - "line": 32, - "column": 23 - } - }, - "range": [ - 1177, - 1178 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 33, - "column": 4 - }, - "end": { - "line": 33, - "column": 5 - } - }, - "range": [ - 1183, - 1184 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 34, - "column": 4 - }, - "end": { - "line": 34, - "column": 10 - } - }, - "range": [ - 1189, - 1195 - ] - }, - { - "type": "Identifier", - "value": "x", - "loc": { - "start": { - "line": 34, - "column": 11 - }, - "end": { - "line": 34, - "column": 12 - } - }, - "range": [ - 1196, - 1197 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 34, - "column": 13 - }, - "end": { - "line": 34, - "column": 14 - } - }, - "range": [ - 1198, - 1199 - ] - }, - { - "type": "Identifier", - "value": "subsequentField", - "loc": { - "start": { - "line": 34, - "column": 15 - }, - "end": { - "line": 34, - "column": 30 - } - }, - "range": [ - 1200, - 1215 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 34, - "column": 31 - }, - "end": { - "line": 34, - "column": 32 - } - }, - "range": [ - 1216, - 1217 - ] - }, - { - "type": "Boolean", - "value": "true", - "loc": { - "start": { - "line": 34, - "column": 33 - }, - "end": { - "line": 34, - "column": 37 - } - }, - "range": [ - 1218, - 1222 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 34, - "column": 37 - }, - "end": { - "line": 34, - "column": 38 - } - }, - "range": [ - 1222, - 1223 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 35, - "column": 4 - }, - "end": { - "line": 35, - "column": 10 - } - }, - "range": [ - 1228, - 1234 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 35, - "column": 11 - }, - "end": { - "line": 35, - "column": 12 - } - }, - "range": [ - 1235, - 1236 - ] - }, - { - "type": "Identifier", - "value": "subsequentBlock", - "loc": { - "start": { - "line": 36, - "column": 6 - }, - "end": { - "line": 36, - "column": 21 - } - }, - "range": [ - 1243, - 1258 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 36, - "column": 22 - }, - "end": { - "line": 36, - "column": 23 - } - }, - "range": [ - 1259, - 1260 - ] - }, - { - "type": "Boolean", - "value": "true", - "loc": { - "start": { - "line": 36, - "column": 24 - }, - "end": { - "line": 36, - "column": 28 - } - }, - "range": [ - 1261, - 1265 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 36, - "column": 28 - }, - "end": { - "line": 36, - "column": 29 - } - }, - "range": [ - 1265, - 1266 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 37, - "column": 4 - }, - "end": { - "line": 37, - "column": 5 - } - }, - "range": [ - 1271, - 1272 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 38, - "column": 3 - } - }, - "range": [ - 1275, - 1276 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 39, - "column": 0 - }, - "end": { - "line": 39, - "column": 1 - } - }, - "range": [ - 1277, - 1278 - ] - }, - { - "type": "Keyword", - "value": "catch", - "loc": { - "start": { - "line": 39, - "column": 2 - }, - "end": { - "line": 39, - "column": 7 - } - }, - "range": [ - 1279, - 1284 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 9 - } - }, - "range": [ - 1285, - 1286 - ] - }, - { - "type": "Identifier", - "value": "error", - "loc": { - "start": { - "line": 39, - "column": 9 - }, - "end": { - "line": 39, - "column": 14 - } - }, - "range": [ - 1286, - 1291 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 39, - "column": 14 - }, - "end": { - "line": 39, - "column": 15 - } - }, - "range": [ - 1291, - 1292 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 39, - "column": 16 - }, - "end": { - "line": 39, - "column": 17 - } - }, - "range": [ - 1293, - 1294 - ] - }, - { - "type": "Identifier", - "value": "caught", - "loc": { - "start": { - "line": 40, - "column": 2 - }, - "end": { - "line": 40, - "column": 8 - } - }, - "range": [ - 1297, - 1303 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 40, - "column": 9 - }, - "end": { - "line": 40, - "column": 10 - } - }, - "range": [ - 1304, - 1305 - ] - }, - { - "type": "Identifier", - "value": "error", - "loc": { - "start": { - "line": 40, - "column": 11 - }, - "end": { - "line": 40, - "column": 16 - } - }, - "range": [ - 1306, - 1311 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 40, - "column": 17 - } - }, - "range": [ - 1311, - 1312 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 41, - "column": 0 - }, - "end": { - "line": 41, - "column": 1 - } - }, - "range": [ - 1313, - 1314 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 43, - "column": 0 - }, - "end": { - "line": 43, - "column": 6 - } - }, - "range": [ - 1316, - 1322 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 43, - "column": 6 - }, - "end": { - "line": 43, - "column": 7 - } - }, - "range": [ - 1322, - 1323 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 43, - "column": 7 - }, - "end": { - "line": 43, - "column": 16 - } - }, - "range": [ - 1323, - 1332 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 43, - "column": 16 - }, - "end": { - "line": 43, - "column": 17 - } - }, - "range": [ - 1332, - 1333 - ] - }, - { - "type": "Identifier", - "value": "caught", - "loc": { - "start": { - "line": 43, - "column": 17 - }, - "end": { - "line": 43, - "column": 23 - } - }, - "range": [ - 1333, - 1339 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 43, - "column": 23 - }, - "end": { - "line": 43, - "column": 24 - } - }, - "range": [ - 1339, - 1340 - ] - }, - { - "type": "Identifier", - "value": "thrown", - "loc": { - "start": { - "line": 43, - "column": 25 - }, - "end": { - "line": 43, - "column": 31 - } - }, - "range": [ - 1341, - 1347 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 43, - "column": 31 - }, - "end": { - "line": 43, - "column": 32 - } - }, - "range": [ - 1347, - 1348 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 43, - "column": 32 - }, - "end": { - "line": 43, - "column": 33 - } - }, - "range": [ - 1348, - 1349 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 44, - "column": 6 - } - }, - "range": [ - 1350, - 1356 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 44, - "column": 6 - }, - "end": { - "line": 44, - "column": 7 - } - }, - "range": [ - 1356, - 1357 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 44, - "column": 7 - }, - "end": { - "line": 44, - "column": 16 - } - }, - "range": [ - 1357, - 1366 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 44, - "column": 16 - }, - "end": { - "line": 44, - "column": 17 - } - }, - "range": [ - 1366, - 1367 - ] - }, - { - "type": "Identifier", - "value": "sameBlock", - "loc": { - "start": { - "line": 44, - "column": 17 - }, - "end": { - "line": 44, - "column": 26 - } - }, - "range": [ - 1367, - 1376 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 44, - "column": 26 - }, - "end": { - "line": 44, - "column": 27 - } - }, - "range": [ - 1376, - 1377 - ] - }, - { - "type": "Boolean", - "value": "false", - "loc": { - "start": { - "line": 44, - "column": 28 - }, - "end": { - "line": 44, - "column": 33 - } - }, - "range": [ - 1378, - 1383 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 44, - "column": 33 - }, - "end": { - "line": 44, - "column": 34 - } - }, - "range": [ - 1383, - 1384 - ] - }, - { - "type": "String", - "value": "'same block'", - "loc": { - "start": { - "line": 44, - "column": 35 - }, - "end": { - "line": 44, - "column": 47 - } - }, - "range": [ - 1385, - 1397 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 44, - "column": 47 - }, - "end": { - "line": 44, - "column": 48 - } - }, - "range": [ - 1397, - 1398 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 44, - "column": 48 - }, - "end": { - "line": 44, - "column": 49 - } - }, - "range": [ - 1398, - 1399 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 45, - "column": 0 - }, - "end": { - "line": 45, - "column": 6 - } - }, - "range": [ - 1400, - 1406 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 45, - "column": 6 - }, - "end": { - "line": 45, - "column": 7 - } - }, - "range": [ - 1406, - 1407 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 45, - "column": 7 - }, - "end": { - "line": 45, - "column": 16 - } - }, - "range": [ - 1407, - 1416 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 45, - "column": 16 - }, - "end": { - "line": 45, - "column": 17 - } - }, - "range": [ - 1416, - 1417 - ] - }, - { - "type": "Identifier", - "value": "subsequentField", - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 45, - "column": 32 - } - }, - "range": [ - 1417, - 1432 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 45, - "column": 32 - }, - "end": { - "line": 45, - "column": 33 - } - }, - "range": [ - 1432, - 1433 - ] - }, - { - "type": "Boolean", - "value": "false", - "loc": { - "start": { - "line": 45, - "column": 34 - }, - "end": { - "line": 45, - "column": 39 - } - }, - "range": [ - 1434, - 1439 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 45, - "column": 39 - }, - "end": { - "line": 45, - "column": 40 - } - }, - "range": [ - 1439, - 1440 - ] - }, - { - "type": "String", - "value": "'subsequent field'", - "loc": { - "start": { - "line": 45, - "column": 41 - }, - "end": { - "line": 45, - "column": 59 - } - }, - "range": [ - 1441, - 1459 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 45, - "column": 59 - }, - "end": { - "line": 45, - "column": 60 - } - }, - "range": [ - 1459, - 1460 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 45, - "column": 60 - }, - "end": { - "line": 45, - "column": 61 - } - }, - "range": [ - 1460, - 1461 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 46, - "column": 6 - } - }, - "range": [ - 1462, - 1468 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 46, - "column": 6 - }, - "end": { - "line": 46, - "column": 7 - } - }, - "range": [ - 1468, - 1469 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 46, - "column": 7 - }, - "end": { - "line": 46, - "column": 16 - } - }, - "range": [ - 1469, - 1478 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 46, - "column": 16 - }, - "end": { - "line": 46, - "column": 17 - } - }, - "range": [ - 1478, - 1479 - ] - }, - { - "type": "Identifier", - "value": "subsequentBlock", - "loc": { - "start": { - "line": 46, - "column": 17 - }, - "end": { - "line": 46, - "column": 32 - } - }, - "range": [ - 1479, - 1494 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 46, - "column": 32 - }, - "end": { - "line": 46, - "column": 33 - } - }, - "range": [ - 1494, - 1495 - ] - }, - { - "type": "Boolean", - "value": "false", - "loc": { - "start": { - "line": 46, - "column": 34 - }, - "end": { - "line": 46, - "column": 39 - } - }, - "range": [ - 1496, - 1501 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 46, - "column": 39 - }, - "end": { - "line": 46, - "column": 40 - } - }, - "range": [ - 1501, - 1502 - ] - }, - { - "type": "String", - "value": "'subsequent block'", - "loc": { - "start": { - "line": 46, - "column": 41 - }, - "end": { - "line": 46, - "column": 59 - } - }, - "range": [ - 1503, - 1521 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 46, - "column": 59 - }, - "end": { - "line": 46, - "column": 60 - } - }, - "range": [ - 1521, - 1522 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 46, - "column": 60 - }, - "end": { - "line": 46, - "column": 61 - } - }, - "range": [ - 1522, - 1523 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-abrupt.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-abrupt.src.js deleted file mode 100644 index c8270c10..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-abrupt.src.js +++ /dev/null @@ -1,46 +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: Returns abrupt completion and halts further class body evaluation -info: | - 34. For each element elementRecord of staticElements in List order, do - a. If elementRecord is a ClassFieldDefinition Record, then - [...] - b. Else, - i. Assert: fieldRecord is a ClassStaticBlockDefinition Record. - ii. Let status be the result of performing EvaluateStaticBlock(F, - elementRecord). - d. If status is an abrupt completion, then - i. Set the running execution context's LexicalEnvironment to lex. - ii. Set the running execution context's PrivateEnvironment to - outerPrivateEnvironment. - iii. Return Completion(status). -features: [class-static-fields-public, class-static-block] ----*/ - -var thrown = new Test262Error(); -var caught; -var sameBlock = false; -var subsequentField = false; -var subsequentBlock = false; - -try { - class C { - static { - throw thrown; - sameBlock = true; - } - static x = subsequentField = true; - static { - subsequentBlock = true; - } - } -} catch (error) { - caught = error; -} - -assert.sameValue(caught, thrown); -assert.sameValue(sameBlock, false, 'same block'); -assert.sameValue(subsequentField, false, 'subsequent field'); -assert.sameValue(subsequentBlock, false, 'subsequent block'); diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-functions.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-functions.result.js deleted file mode 100644 index 843345e0..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-functions.result.js +++ /dev/null @@ -1,5588 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 40, - "column": 68 - } - }, - "range": [ - 504, - 1277 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 16 - } - }, - "range": [ - 504, - 520 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 6 - } - }, - "range": [ - 508, - 510 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 6 - } - }, - "range": [ - 508, - 510 - ], - "name": "fn" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 8 - }, - "end": { - "line": 15, - "column": 15 - } - }, - "range": [ - 512, - 519 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 8 - }, - "end": { - "line": 15, - "column": 15 - } - }, - "range": [ - 512, - 519 - ], - "name": "fnParam" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 16, - "column": 18 - } - }, - "range": [ - 521, - 539 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 7 - } - }, - "range": [ - 525, - 528 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 7 - } - }, - "range": [ - 525, - 528 - ], - "name": "gen" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 17 - } - }, - "range": [ - 530, - 538 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 17 - } - }, - "range": [ - 530, - 538 - ], - "name": "genParam" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 26 - } - }, - "range": [ - 540, - 566 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 11 - } - }, - "range": [ - 544, - 551 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 11 - } - }, - "range": [ - 544, - 551 - ], - "name": "asyncFn" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 17, - "column": 13 - }, - "end": { - "line": 17, - "column": 25 - } - }, - "range": [ - 553, - 565 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 17, - "column": 13 - }, - "end": { - "line": 17, - "column": 25 - } - }, - "range": [ - 553, - 565 - ], - "name": "asyncFnParam" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 33, - "column": 1 - } - }, - "range": [ - 568, - 914 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 7 - } - }, - "range": [ - 574, - 575 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 33, - "column": 1 - } - }, - "range": [ - 576, - 914 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 32, - "column": 3 - } - }, - "range": [ - 580, - 912 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 23, - "column": 19 - } - }, - "range": [ - 593, - 679 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 23, - "column": 18 - } - }, - "range": [ - 593, - 678 - ], - "callee": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 21, - "column": 5 - }, - "end": { - "line": 23, - "column": 5 - } - }, - "range": [ - 594, - 665 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "loc": { - "start": { - "line": 21, - "column": 14 - }, - "end": { - "line": 21, - "column": 45 - } - }, - "range": [ - 603, - 634 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 21, - "column": 15 - }, - "end": { - "line": 21, - "column": 44 - } - }, - "range": [ - 604, - 633 - ], - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 21, - "column": 15 - }, - "end": { - "line": 21, - "column": 22 - } - }, - "range": [ - 604, - 611 - ], - "name": "test262" - }, - "kind": "init", - "value": { - "type": "AssignmentPattern", - "loc": { - "start": { - "line": 21, - "column": 15 - }, - "end": { - "line": 21, - "column": 44 - } - }, - "range": [ - 604, - 633 - ], - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 21, - "column": 15 - }, - "end": { - "line": 21, - "column": 22 - } - }, - "range": [ - 604, - 611 - ], - "name": "test262" - }, - "right": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 21, - "column": 25 - }, - "end": { - "line": 21, - "column": 44 - } - }, - "range": [ - 614, - 633 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 21, - "column": 25 - }, - "end": { - "line": 21, - "column": 32 - } - }, - "range": [ - 614, - 621 - ], - "name": "fnParam" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 21, - "column": 35 - }, - "end": { - "line": 21, - "column": 44 - } - }, - "range": [ - 624, - 633 - ], - "name": "arguments" - } - } - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 21, - "column": 47 - }, - "end": { - "line": 23, - "column": 5 - } - }, - "range": [ - 636, - 665 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 21 - } - }, - "range": [ - 644, - 659 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 20 - } - }, - "range": [ - 644, - 658 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 8 - } - }, - "range": [ - 644, - 646 - ], - "name": "fn" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 22, - "column": 11 - }, - "end": { - "line": 22, - "column": 20 - } - }, - "range": [ - 649, - 658 - ], - "name": "arguments" - } - } - } - ] - } - }, - "arguments": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 17 - } - }, - "range": [ - 667, - 677 - ], - "value": "function", - "raw": "'function'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 27, - "column": 36 - } - }, - "range": [ - 685, - 793 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 27, - "column": 35 - } - }, - "range": [ - 685, - 792 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 27, - "column": 33 - } - }, - "range": [ - 685, - 790 - ], - "object": { - "type": "CallExpression", - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 27, - "column": 28 - } - }, - "range": [ - 685, - 785 - ], - "callee": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 25, - "column": 5 - }, - "end": { - "line": 27, - "column": 5 - } - }, - "range": [ - 686, - 762 - ], - "id": null, - "expression": false, - "generator": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "loc": { - "start": { - "line": 25, - "column": 17 - }, - "end": { - "line": 25, - "column": 49 - } - }, - "range": [ - 698, - 730 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 25, - "column": 18 - }, - "end": { - "line": 25, - "column": 48 - } - }, - "range": [ - 699, - 729 - ], - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 18 - }, - "end": { - "line": 25, - "column": 25 - } - }, - "range": [ - 699, - 706 - ], - "name": "test262" - }, - "kind": "init", - "value": { - "type": "AssignmentPattern", - "loc": { - "start": { - "line": 25, - "column": 18 - }, - "end": { - "line": 25, - "column": 48 - } - }, - "range": [ - 699, - 729 - ], - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 18 - }, - "end": { - "line": 25, - "column": 25 - } - }, - "range": [ - 699, - 706 - ], - "name": "test262" - }, - "right": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 25, - "column": 28 - }, - "end": { - "line": 25, - "column": 48 - } - }, - "range": [ - 709, - 729 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 28 - }, - "end": { - "line": 25, - "column": 36 - } - }, - "range": [ - 709, - 717 - ], - "name": "genParam" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 39 - }, - "end": { - "line": 25, - "column": 48 - } - }, - "range": [ - 720, - 729 - ], - "name": "arguments" - } - } - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 25, - "column": 51 - }, - "end": { - "line": 27, - "column": 5 - } - }, - "range": [ - 732, - 762 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 26, - "column": 6 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "range": [ - 740, - 756 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 26, - "column": 6 - }, - "end": { - "line": 26, - "column": 21 - } - }, - "range": [ - 740, - 755 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 26, - "column": 6 - }, - "end": { - "line": 26, - "column": 9 - } - }, - "range": [ - 740, - 743 - ], - "name": "gen" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 26, - "column": 12 - }, - "end": { - "line": 26, - "column": 21 - } - }, - "range": [ - 746, - 755 - ], - "name": "arguments" - } - } - } - ] - } - }, - "arguments": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 27 - } - }, - "range": [ - 764, - 784 - ], - "value": "generator function", - "raw": "'generator function'" - } - ], - "optional": false - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 27, - "column": 29 - }, - "end": { - "line": 27, - "column": 33 - } - }, - "range": [ - 786, - 790 - ], - "name": "next" - }, - "computed": false, - "optional": false - }, - "arguments": [], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 31, - "column": 25 - } - }, - "range": [ - 799, - 908 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 31, - "column": 24 - } - }, - "range": [ - 799, - 907 - ], - "callee": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 29, - "column": 5 - }, - "end": { - "line": 31, - "column": 5 - } - }, - "range": [ - 800, - 888 - ], - "id": null, - "expression": false, - "generator": false, - "async": true, - "params": [ - { - "type": "ObjectPattern", - "loc": { - "start": { - "line": 29, - "column": 21 - }, - "end": { - "line": 29, - "column": 57 - } - }, - "range": [ - 816, - 852 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 29, - "column": 22 - }, - "end": { - "line": 29, - "column": 56 - } - }, - "range": [ - 817, - 851 - ], - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 29, - "column": 22 - }, - "end": { - "line": 29, - "column": 29 - } - }, - "range": [ - 817, - 824 - ], - "name": "test262" - }, - "kind": "init", - "value": { - "type": "AssignmentPattern", - "loc": { - "start": { - "line": 29, - "column": 22 - }, - "end": { - "line": 29, - "column": 56 - } - }, - "range": [ - 817, - 851 - ], - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 29, - "column": 22 - }, - "end": { - "line": 29, - "column": 29 - } - }, - "range": [ - 817, - 824 - ], - "name": "test262" - }, - "right": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 29, - "column": 32 - }, - "end": { - "line": 29, - "column": 56 - } - }, - "range": [ - 827, - 851 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 29, - "column": 32 - }, - "end": { - "line": 29, - "column": 44 - } - }, - "range": [ - 827, - 839 - ], - "name": "asyncFnParam" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 29, - "column": 47 - }, - "end": { - "line": 29, - "column": 56 - } - }, - "range": [ - 842, - 851 - ], - "name": "arguments" - } - } - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 29, - "column": 59 - }, - "end": { - "line": 31, - "column": 5 - } - }, - "range": [ - 854, - 888 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 30, - "column": 6 - }, - "end": { - "line": 30, - "column": 26 - } - }, - "range": [ - 862, - 882 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 30, - "column": 6 - }, - "end": { - "line": 30, - "column": 25 - } - }, - "range": [ - 862, - 881 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 30, - "column": 6 - }, - "end": { - "line": 30, - "column": 13 - } - }, - "range": [ - 862, - 869 - ], - "name": "asyncFn" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 30, - "column": 16 - }, - "end": { - "line": 30, - "column": 25 - } - }, - "range": [ - 872, - 881 - ], - "name": "arguments" - } - } - } - ] - } - }, - "arguments": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 31, - "column": 7 - }, - "end": { - "line": 31, - "column": 23 - } - }, - "range": [ - 890, - 906 - ], - "value": "async function", - "raw": "'async function'" - } - ], - "optional": false - } - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 35, - "column": 47 - } - }, - "range": [ - 916, - 963 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 35, - "column": 46 - } - }, - "range": [ - 916, - 962 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 35, - "column": 6 - } - }, - "range": [ - 916, - 922 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 35, - "column": 7 - }, - "end": { - "line": 35, - "column": 37 - } - }, - "range": [ - 923, - 953 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 35, - "column": 7 - }, - "end": { - "line": 35, - "column": 19 - } - }, - "range": [ - 923, - 935 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 35, - "column": 20 - }, - "end": { - "line": 35, - "column": 32 - } - }, - "range": [ - 936, - 948 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 35, - "column": 21 - }, - "end": { - "line": 35, - "column": 31 - } - }, - "range": [ - 937, - 947 - ], - "value": "function", - "raw": "'function'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 35, - "column": 34 - }, - "end": { - "line": 35, - "column": 36 - } - }, - "range": [ - 950, - 952 - ], - "name": "fn" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 35, - "column": 39 - }, - "end": { - "line": 35, - "column": 45 - } - }, - "range": [ - 955, - 961 - ], - "value": "body", - "raw": "'body'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 36, - "column": 0 - }, - "end": { - "line": 36, - "column": 57 - } - }, - "range": [ - 964, - 1021 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 36, - "column": 0 - }, - "end": { - "line": 36, - "column": 56 - } - }, - "range": [ - 964, - 1020 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 36, - "column": 0 - }, - "end": { - "line": 36, - "column": 6 - } - }, - "range": [ - 964, - 970 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 36, - "column": 7 - }, - "end": { - "line": 36, - "column": 42 - } - }, - "range": [ - 971, - 1006 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 36, - "column": 7 - }, - "end": { - "line": 36, - "column": 19 - } - }, - "range": [ - 971, - 983 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 36, - "column": 20 - }, - "end": { - "line": 36, - "column": 32 - } - }, - "range": [ - 984, - 996 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 31 - } - }, - "range": [ - 985, - 995 - ], - "value": "function", - "raw": "'function'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 36, - "column": 34 - }, - "end": { - "line": 36, - "column": 41 - } - }, - "range": [ - 998, - 1005 - ], - "name": "fnParam" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 36, - "column": 44 - }, - "end": { - "line": 36, - "column": 55 - } - }, - "range": [ - 1008, - 1019 - ], - "value": "parameter", - "raw": "'parameter'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 37, - "column": 58 - } - }, - "range": [ - 1022, - 1080 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 37, - "column": 57 - } - }, - "range": [ - 1022, - 1079 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 37, - "column": 6 - } - }, - "range": [ - 1022, - 1028 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 37, - "column": 7 - }, - "end": { - "line": 37, - "column": 48 - } - }, - "range": [ - 1029, - 1070 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 37, - "column": 7 - }, - "end": { - "line": 37, - "column": 19 - } - }, - "range": [ - 1029, - 1041 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 37, - "column": 20 - }, - "end": { - "line": 37, - "column": 42 - } - }, - "range": [ - 1042, - 1064 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 37, - "column": 21 - }, - "end": { - "line": 37, - "column": 41 - } - }, - "range": [ - 1043, - 1063 - ], - "value": "generator function", - "raw": "'generator function'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 37, - "column": 44 - }, - "end": { - "line": 37, - "column": 47 - } - }, - "range": [ - 1066, - 1069 - ], - "name": "gen" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 37, - "column": 50 - }, - "end": { - "line": 37, - "column": 56 - } - }, - "range": [ - 1072, - 1078 - ], - "value": "body", - "raw": "'body'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 38, - "column": 0 - }, - "end": { - "line": 38, - "column": 68 - } - }, - "range": [ - 1081, - 1149 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 38, - "column": 0 - }, - "end": { - "line": 38, - "column": 67 - } - }, - "range": [ - 1081, - 1148 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 38, - "column": 0 - }, - "end": { - "line": 38, - "column": 6 - } - }, - "range": [ - 1081, - 1087 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 38, - "column": 7 - }, - "end": { - "line": 38, - "column": 53 - } - }, - "range": [ - 1088, - 1134 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 38, - "column": 7 - }, - "end": { - "line": 38, - "column": 19 - } - }, - "range": [ - 1088, - 1100 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 42 - } - }, - "range": [ - 1101, - 1123 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 41 - } - }, - "range": [ - 1102, - 1122 - ], - "value": "generator function", - "raw": "'generator function'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 38, - "column": 44 - }, - "end": { - "line": 38, - "column": 52 - } - }, - "range": [ - 1125, - 1133 - ], - "name": "genParam" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 38, - "column": 55 - }, - "end": { - "line": 38, - "column": 66 - } - }, - "range": [ - 1136, - 1147 - ], - "value": "parameter", - "raw": "'parameter'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 39, - "column": 0 - }, - "end": { - "line": 39, - "column": 58 - } - }, - "range": [ - 1150, - 1208 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 39, - "column": 0 - }, - "end": { - "line": 39, - "column": 57 - } - }, - "range": [ - 1150, - 1207 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 39, - "column": 0 - }, - "end": { - "line": 39, - "column": 6 - } - }, - "range": [ - 1150, - 1156 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 39, - "column": 7 - }, - "end": { - "line": 39, - "column": 48 - } - }, - "range": [ - 1157, - 1198 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 39, - "column": 7 - }, - "end": { - "line": 39, - "column": 19 - } - }, - "range": [ - 1157, - 1169 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 39, - "column": 20 - }, - "end": { - "line": 39, - "column": 38 - } - }, - "range": [ - 1170, - 1188 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 39, - "column": 21 - }, - "end": { - "line": 39, - "column": 37 - } - }, - "range": [ - 1171, - 1187 - ], - "value": "async function", - "raw": "'async function'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 39, - "column": 40 - }, - "end": { - "line": 39, - "column": 47 - } - }, - "range": [ - 1190, - 1197 - ], - "name": "asyncFn" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 39, - "column": 50 - }, - "end": { - "line": 39, - "column": 56 - } - }, - "range": [ - 1200, - 1206 - ], - "value": "body", - "raw": "'body'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 40, - "column": 0 - }, - "end": { - "line": 40, - "column": 68 - } - }, - "range": [ - 1209, - 1277 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 40, - "column": 0 - }, - "end": { - "line": 40, - "column": 67 - } - }, - "range": [ - 1209, - 1276 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 40, - "column": 0 - }, - "end": { - "line": 40, - "column": 6 - } - }, - "range": [ - 1209, - 1215 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 40, - "column": 7 - }, - "end": { - "line": 40, - "column": 53 - } - }, - "range": [ - 1216, - 1262 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 40, - "column": 7 - }, - "end": { - "line": 40, - "column": 19 - } - }, - "range": [ - 1216, - 1228 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 40, - "column": 20 - }, - "end": { - "line": 40, - "column": 38 - } - }, - "range": [ - 1229, - 1247 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 40, - "column": 21 - }, - "end": { - "line": 40, - "column": 37 - } - }, - "range": [ - 1230, - 1246 - ], - "value": "async function", - "raw": "'async function'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 40, - "column": 40 - }, - "end": { - "line": 40, - "column": 52 - } - }, - "range": [ - 1249, - 1261 - ], - "name": "asyncFnParam" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 40, - "column": 55 - }, - "end": { - "line": 40, - "column": 66 - } - }, - "range": [ - 1264, - 1275 - ], - "value": "parameter", - "raw": "'parameter'" - } - ], - "optional": false - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - }, - "range": [ - 504, - 507 - ] - }, - { - "type": "Identifier", - "value": "fn", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 6 - } - }, - "range": [ - 508, - 510 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 15, - "column": 6 - }, - "end": { - "line": 15, - "column": 7 - } - }, - "range": [ - 510, - 511 - ] - }, - { - "type": "Identifier", - "value": "fnParam", - "loc": { - "start": { - "line": 15, - "column": 8 - }, - "end": { - "line": 15, - "column": 15 - } - }, - "range": [ - 512, - 519 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 16 - } - }, - "range": [ - 519, - 520 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - }, - "range": [ - 521, - 524 - ] - }, - { - "type": "Identifier", - "value": "gen", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 7 - } - }, - "range": [ - 525, - 528 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 16, - "column": 7 - }, - "end": { - "line": 16, - "column": 8 - } - }, - "range": [ - 528, - 529 - ] - }, - { - "type": "Identifier", - "value": "genParam", - "loc": { - "start": { - "line": 16, - "column": 9 - }, - "end": { - "line": 16, - "column": 17 - } - }, - "range": [ - 530, - 538 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 18 - } - }, - "range": [ - 538, - 539 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 540, - 543 - ] - }, - { - "type": "Identifier", - "value": "asyncFn", - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 11 - } - }, - "range": [ - 544, - 551 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 17, - "column": 11 - }, - "end": { - "line": 17, - "column": 12 - } - }, - "range": [ - 551, - 552 - ] - }, - { - "type": "Identifier", - "value": "asyncFnParam", - "loc": { - "start": { - "line": 17, - "column": 13 - }, - "end": { - "line": 17, - "column": 25 - } - }, - "range": [ - 553, - 565 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 17, - "column": 25 - }, - "end": { - "line": 17, - "column": 26 - } - }, - "range": [ - 565, - 566 - ] - }, - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 19, - "column": 5 - } - }, - "range": [ - 568, - 573 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 19, - "column": 6 - }, - "end": { - "line": 19, - "column": 7 - } - }, - "range": [ - 574, - 575 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 19, - "column": 8 - }, - "end": { - "line": 19, - "column": 9 - } - }, - "range": [ - 576, - 577 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 8 - } - }, - "range": [ - 580, - 586 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 20, - "column": 9 - }, - "end": { - "line": 20, - "column": 10 - } - }, - "range": [ - 587, - 588 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 21, - "column": 5 - } - }, - "range": [ - 593, - 594 - ] - }, - { - "type": "Keyword", - "value": "function", - "loc": { - "start": { - "line": 21, - "column": 5 - }, - "end": { - "line": 21, - "column": 13 - } - }, - "range": [ - 594, - 602 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 21, - "column": 13 - }, - "end": { - "line": 21, - "column": 14 - } - }, - "range": [ - 602, - 603 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 21, - "column": 14 - }, - "end": { - "line": 21, - "column": 15 - } - }, - "range": [ - 603, - 604 - ] - }, - { - "type": "Identifier", - "value": "test262", - "loc": { - "start": { - "line": 21, - "column": 15 - }, - "end": { - "line": 21, - "column": 22 - } - }, - "range": [ - 604, - 611 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 21, - "column": 23 - }, - "end": { - "line": 21, - "column": 24 - } - }, - "range": [ - 612, - 613 - ] - }, - { - "type": "Identifier", - "value": "fnParam", - "loc": { - "start": { - "line": 21, - "column": 25 - }, - "end": { - "line": 21, - "column": 32 - } - }, - "range": [ - 614, - 621 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 21, - "column": 33 - }, - "end": { - "line": 21, - "column": 34 - } - }, - "range": [ - 622, - 623 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 21, - "column": 35 - }, - "end": { - "line": 21, - "column": 44 - } - }, - "range": [ - 624, - 633 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 21, - "column": 44 - }, - "end": { - "line": 21, - "column": 45 - } - }, - "range": [ - 633, - 634 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 21, - "column": 45 - }, - "end": { - "line": 21, - "column": 46 - } - }, - "range": [ - 634, - 635 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 21, - "column": 47 - }, - "end": { - "line": 21, - "column": 48 - } - }, - "range": [ - 636, - 637 - ] - }, - { - "type": "Identifier", - "value": "fn", - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 8 - } - }, - "range": [ - 644, - 646 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 22, - "column": 9 - }, - "end": { - "line": 22, - "column": 10 - } - }, - "range": [ - 647, - 648 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 22, - "column": 11 - }, - "end": { - "line": 22, - "column": 20 - } - }, - "range": [ - 649, - 658 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 22, - "column": 20 - }, - "end": { - "line": 22, - "column": 21 - } - }, - "range": [ - 658, - 659 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 23, - "column": 4 - }, - "end": { - "line": 23, - "column": 5 - } - }, - "range": [ - 664, - 665 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 23, - "column": 5 - }, - "end": { - "line": 23, - "column": 6 - } - }, - "range": [ - 665, - 666 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 7 - } - }, - "range": [ - 666, - 667 - ] - }, - { - "type": "String", - "value": "'function'", - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 17 - } - }, - "range": [ - 667, - 677 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 23, - "column": 17 - }, - "end": { - "line": 23, - "column": 18 - } - }, - "range": [ - 677, - 678 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 23, - "column": 18 - }, - "end": { - "line": 23, - "column": 19 - } - }, - "range": [ - 678, - 679 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 5 - } - }, - "range": [ - 685, - 686 - ] - }, - { - "type": "Keyword", - "value": "function", - "loc": { - "start": { - "line": 25, - "column": 5 - }, - "end": { - "line": 25, - "column": 13 - } - }, - "range": [ - 686, - 694 - ] - }, - { - "type": "Punctuator", - "value": "*", - "loc": { - "start": { - "line": 25, - "column": 14 - }, - "end": { - "line": 25, - "column": 15 - } - }, - "range": [ - 695, - 696 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 25, - "column": 16 - }, - "end": { - "line": 25, - "column": 17 - } - }, - "range": [ - 697, - 698 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 25, - "column": 17 - }, - "end": { - "line": 25, - "column": 18 - } - }, - "range": [ - 698, - 699 - ] - }, - { - "type": "Identifier", - "value": "test262", - "loc": { - "start": { - "line": 25, - "column": 18 - }, - "end": { - "line": 25, - "column": 25 - } - }, - "range": [ - 699, - 706 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 25, - "column": 26 - }, - "end": { - "line": 25, - "column": 27 - } - }, - "range": [ - 707, - 708 - ] - }, - { - "type": "Identifier", - "value": "genParam", - "loc": { - "start": { - "line": 25, - "column": 28 - }, - "end": { - "line": 25, - "column": 36 - } - }, - "range": [ - 709, - 717 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 25, - "column": 37 - }, - "end": { - "line": 25, - "column": 38 - } - }, - "range": [ - 718, - 719 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 25, - "column": 39 - }, - "end": { - "line": 25, - "column": 48 - } - }, - "range": [ - 720, - 729 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 25, - "column": 48 - }, - "end": { - "line": 25, - "column": 49 - } - }, - "range": [ - 729, - 730 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 25, - "column": 49 - }, - "end": { - "line": 25, - "column": 50 - } - }, - "range": [ - 730, - 731 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 25, - "column": 51 - }, - "end": { - "line": 25, - "column": 52 - } - }, - "range": [ - 732, - 733 - ] - }, - { - "type": "Identifier", - "value": "gen", - "loc": { - "start": { - "line": 26, - "column": 6 - }, - "end": { - "line": 26, - "column": 9 - } - }, - "range": [ - 740, - 743 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 26, - "column": 10 - }, - "end": { - "line": 26, - "column": 11 - } - }, - "range": [ - 744, - 745 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 26, - "column": 12 - }, - "end": { - "line": 26, - "column": 21 - } - }, - "range": [ - 746, - 755 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 26, - "column": 21 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "range": [ - 755, - 756 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 27, - "column": 4 - }, - "end": { - "line": 27, - "column": 5 - } - }, - "range": [ - 761, - 762 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 27, - "column": 5 - }, - "end": { - "line": 27, - "column": 6 - } - }, - "range": [ - 762, - 763 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 27, - "column": 6 - }, - "end": { - "line": 27, - "column": 7 - } - }, - "range": [ - 763, - 764 - ] - }, - { - "type": "String", - "value": "'generator function'", - "loc": { - "start": { - "line": 27, - "column": 7 - }, - "end": { - "line": 27, - "column": 27 - } - }, - "range": [ - 764, - 784 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 27, - "column": 27 - }, - "end": { - "line": 27, - "column": 28 - } - }, - "range": [ - 784, - 785 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 27, - "column": 28 - }, - "end": { - "line": 27, - "column": 29 - } - }, - "range": [ - 785, - 786 - ] - }, - { - "type": "Identifier", - "value": "next", - "loc": { - "start": { - "line": 27, - "column": 29 - }, - "end": { - "line": 27, - "column": 33 - } - }, - "range": [ - 786, - 790 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 27, - "column": 33 - }, - "end": { - "line": 27, - "column": 34 - } - }, - "range": [ - 790, - 791 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 27, - "column": 34 - }, - "end": { - "line": 27, - "column": 35 - } - }, - "range": [ - 791, - 792 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 27, - "column": 35 - }, - "end": { - "line": 27, - "column": 36 - } - }, - "range": [ - 792, - 793 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 29, - "column": 4 - }, - "end": { - "line": 29, - "column": 5 - } - }, - "range": [ - 799, - 800 - ] - }, - { - "type": "Identifier", - "value": "async", - "loc": { - "start": { - "line": 29, - "column": 5 - }, - "end": { - "line": 29, - "column": 10 - } - }, - "range": [ - 800, - 805 - ] - }, - { - "type": "Keyword", - "value": "function", - "loc": { - "start": { - "line": 29, - "column": 11 - }, - "end": { - "line": 29, - "column": 19 - } - }, - "range": [ - 806, - 814 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 29, - "column": 20 - }, - "end": { - "line": 29, - "column": 21 - } - }, - "range": [ - 815, - 816 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 29, - "column": 21 - }, - "end": { - "line": 29, - "column": 22 - } - }, - "range": [ - 816, - 817 - ] - }, - { - "type": "Identifier", - "value": "test262", - "loc": { - "start": { - "line": 29, - "column": 22 - }, - "end": { - "line": 29, - "column": 29 - } - }, - "range": [ - 817, - 824 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 29, - "column": 30 - }, - "end": { - "line": 29, - "column": 31 - } - }, - "range": [ - 825, - 826 - ] - }, - { - "type": "Identifier", - "value": "asyncFnParam", - "loc": { - "start": { - "line": 29, - "column": 32 - }, - "end": { - "line": 29, - "column": 44 - } - }, - "range": [ - 827, - 839 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 29, - "column": 45 - }, - "end": { - "line": 29, - "column": 46 - } - }, - "range": [ - 840, - 841 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 29, - "column": 47 - }, - "end": { - "line": 29, - "column": 56 - } - }, - "range": [ - 842, - 851 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 29, - "column": 56 - }, - "end": { - "line": 29, - "column": 57 - } - }, - "range": [ - 851, - 852 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 29, - "column": 57 - }, - "end": { - "line": 29, - "column": 58 - } - }, - "range": [ - 852, - 853 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 29, - "column": 59 - }, - "end": { - "line": 29, - "column": 60 - } - }, - "range": [ - 854, - 855 - ] - }, - { - "type": "Identifier", - "value": "asyncFn", - "loc": { - "start": { - "line": 30, - "column": 6 - }, - "end": { - "line": 30, - "column": 13 - } - }, - "range": [ - 862, - 869 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 30, - "column": 14 - }, - "end": { - "line": 30, - "column": 15 - } - }, - "range": [ - 870, - 871 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 30, - "column": 16 - }, - "end": { - "line": 30, - "column": 25 - } - }, - "range": [ - 872, - 881 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 30, - "column": 25 - }, - "end": { - "line": 30, - "column": 26 - } - }, - "range": [ - 881, - 882 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 31, - "column": 4 - }, - "end": { - "line": 31, - "column": 5 - } - }, - "range": [ - 887, - 888 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 31, - "column": 5 - }, - "end": { - "line": 31, - "column": 6 - } - }, - "range": [ - 888, - 889 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 31, - "column": 6 - }, - "end": { - "line": 31, - "column": 7 - } - }, - "range": [ - 889, - 890 - ] - }, - { - "type": "String", - "value": "'async function'", - "loc": { - "start": { - "line": 31, - "column": 7 - }, - "end": { - "line": 31, - "column": 23 - } - }, - "range": [ - 890, - 906 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 31, - "column": 23 - }, - "end": { - "line": 31, - "column": 24 - } - }, - "range": [ - 906, - 907 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 31, - "column": 24 - }, - "end": { - "line": 31, - "column": 25 - } - }, - "range": [ - 907, - 908 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 32, - "column": 2 - }, - "end": { - "line": 32, - "column": 3 - } - }, - "range": [ - 911, - 912 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 33, - "column": 0 - }, - "end": { - "line": 33, - "column": 1 - } - }, - "range": [ - 913, - 914 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 35, - "column": 6 - } - }, - "range": [ - 916, - 922 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 35, - "column": 6 - }, - "end": { - "line": 35, - "column": 7 - } - }, - "range": [ - 922, - 923 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 35, - "column": 7 - }, - "end": { - "line": 35, - "column": 19 - } - }, - "range": [ - 923, - 935 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 35, - "column": 19 - }, - "end": { - "line": 35, - "column": 20 - } - }, - "range": [ - 935, - 936 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 35, - "column": 20 - }, - "end": { - "line": 35, - "column": 21 - } - }, - "range": [ - 936, - 937 - ] - }, - { - "type": "String", - "value": "'function'", - "loc": { - "start": { - "line": 35, - "column": 21 - }, - "end": { - "line": 35, - "column": 31 - } - }, - "range": [ - 937, - 947 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 35, - "column": 31 - }, - "end": { - "line": 35, - "column": 32 - } - }, - "range": [ - 947, - 948 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 35, - "column": 32 - }, - "end": { - "line": 35, - "column": 33 - } - }, - "range": [ - 948, - 949 - ] - }, - { - "type": "Identifier", - "value": "fn", - "loc": { - "start": { - "line": 35, - "column": 34 - }, - "end": { - "line": 35, - "column": 36 - } - }, - "range": [ - 950, - 952 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 35, - "column": 36 - }, - "end": { - "line": 35, - "column": 37 - } - }, - "range": [ - 952, - 953 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 35, - "column": 37 - }, - "end": { - "line": 35, - "column": 38 - } - }, - "range": [ - 953, - 954 - ] - }, - { - "type": "String", - "value": "'body'", - "loc": { - "start": { - "line": 35, - "column": 39 - }, - "end": { - "line": 35, - "column": 45 - } - }, - "range": [ - 955, - 961 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 35, - "column": 45 - }, - "end": { - "line": 35, - "column": 46 - } - }, - "range": [ - 961, - 962 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 35, - "column": 46 - }, - "end": { - "line": 35, - "column": 47 - } - }, - "range": [ - 962, - 963 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 36, - "column": 0 - }, - "end": { - "line": 36, - "column": 6 - } - }, - "range": [ - 964, - 970 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 36, - "column": 6 - }, - "end": { - "line": 36, - "column": 7 - } - }, - "range": [ - 970, - 971 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 36, - "column": 7 - }, - "end": { - "line": 36, - "column": 19 - } - }, - "range": [ - 971, - 983 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 36, - "column": 19 - }, - "end": { - "line": 36, - "column": 20 - } - }, - "range": [ - 983, - 984 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 36, - "column": 20 - }, - "end": { - "line": 36, - "column": 21 - } - }, - "range": [ - 984, - 985 - ] - }, - { - "type": "String", - "value": "'function'", - "loc": { - "start": { - "line": 36, - "column": 21 - }, - "end": { - "line": 36, - "column": 31 - } - }, - "range": [ - 985, - 995 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 36, - "column": 31 - }, - "end": { - "line": 36, - "column": 32 - } - }, - "range": [ - 995, - 996 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 36, - "column": 32 - }, - "end": { - "line": 36, - "column": 33 - } - }, - "range": [ - 996, - 997 - ] - }, - { - "type": "Identifier", - "value": "fnParam", - "loc": { - "start": { - "line": 36, - "column": 34 - }, - "end": { - "line": 36, - "column": 41 - } - }, - "range": [ - 998, - 1005 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 36, - "column": 41 - }, - "end": { - "line": 36, - "column": 42 - } - }, - "range": [ - 1005, - 1006 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 36, - "column": 42 - }, - "end": { - "line": 36, - "column": 43 - } - }, - "range": [ - 1006, - 1007 - ] - }, - { - "type": "String", - "value": "'parameter'", - "loc": { - "start": { - "line": 36, - "column": 44 - }, - "end": { - "line": 36, - "column": 55 - } - }, - "range": [ - 1008, - 1019 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 36, - "column": 55 - }, - "end": { - "line": 36, - "column": 56 - } - }, - "range": [ - 1019, - 1020 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 36, - "column": 56 - }, - "end": { - "line": 36, - "column": 57 - } - }, - "range": [ - 1020, - 1021 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 37, - "column": 0 - }, - "end": { - "line": 37, - "column": 6 - } - }, - "range": [ - 1022, - 1028 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 7 - } - }, - "range": [ - 1028, - 1029 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 37, - "column": 7 - }, - "end": { - "line": 37, - "column": 19 - } - }, - "range": [ - 1029, - 1041 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 37, - "column": 20 - } - }, - "range": [ - 1041, - 1042 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 37, - "column": 20 - }, - "end": { - "line": 37, - "column": 21 - } - }, - "range": [ - 1042, - 1043 - ] - }, - { - "type": "String", - "value": "'generator function'", - "loc": { - "start": { - "line": 37, - "column": 21 - }, - "end": { - "line": 37, - "column": 41 - } - }, - "range": [ - 1043, - 1063 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 37, - "column": 41 - }, - "end": { - "line": 37, - "column": 42 - } - }, - "range": [ - 1063, - 1064 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 37, - "column": 42 - }, - "end": { - "line": 37, - "column": 43 - } - }, - "range": [ - 1064, - 1065 - ] - }, - { - "type": "Identifier", - "value": "gen", - "loc": { - "start": { - "line": 37, - "column": 44 - }, - "end": { - "line": 37, - "column": 47 - } - }, - "range": [ - 1066, - 1069 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 37, - "column": 47 - }, - "end": { - "line": 37, - "column": 48 - } - }, - "range": [ - 1069, - 1070 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 37, - "column": 48 - }, - "end": { - "line": 37, - "column": 49 - } - }, - "range": [ - 1070, - 1071 - ] - }, - { - "type": "String", - "value": "'body'", - "loc": { - "start": { - "line": 37, - "column": 50 - }, - "end": { - "line": 37, - "column": 56 - } - }, - "range": [ - 1072, - 1078 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 37, - "column": 56 - }, - "end": { - "line": 37, - "column": 57 - } - }, - "range": [ - 1078, - 1079 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 37, - "column": 57 - }, - "end": { - "line": 37, - "column": 58 - } - }, - "range": [ - 1079, - 1080 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 38, - "column": 0 - }, - "end": { - "line": 38, - "column": 6 - } - }, - "range": [ - 1081, - 1087 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 38, - "column": 6 - }, - "end": { - "line": 38, - "column": 7 - } - }, - "range": [ - 1087, - 1088 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 38, - "column": 7 - }, - "end": { - "line": 38, - "column": 19 - } - }, - "range": [ - 1088, - 1100 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 38, - "column": 19 - }, - "end": { - "line": 38, - "column": 20 - } - }, - "range": [ - 1100, - 1101 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 21 - } - }, - "range": [ - 1101, - 1102 - ] - }, - { - "type": "String", - "value": "'generator function'", - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 41 - } - }, - "range": [ - 1102, - 1122 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 38, - "column": 41 - }, - "end": { - "line": 38, - "column": 42 - } - }, - "range": [ - 1122, - 1123 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 38, - "column": 42 - }, - "end": { - "line": 38, - "column": 43 - } - }, - "range": [ - 1123, - 1124 - ] - }, - { - "type": "Identifier", - "value": "genParam", - "loc": { - "start": { - "line": 38, - "column": 44 - }, - "end": { - "line": 38, - "column": 52 - } - }, - "range": [ - 1125, - 1133 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 38, - "column": 52 - }, - "end": { - "line": 38, - "column": 53 - } - }, - "range": [ - 1133, - 1134 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 38, - "column": 53 - }, - "end": { - "line": 38, - "column": 54 - } - }, - "range": [ - 1134, - 1135 - ] - }, - { - "type": "String", - "value": "'parameter'", - "loc": { - "start": { - "line": 38, - "column": 55 - }, - "end": { - "line": 38, - "column": 66 - } - }, - "range": [ - 1136, - 1147 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 38, - "column": 66 - }, - "end": { - "line": 38, - "column": 67 - } - }, - "range": [ - 1147, - 1148 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 38, - "column": 67 - }, - "end": { - "line": 38, - "column": 68 - } - }, - "range": [ - 1148, - 1149 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 39, - "column": 0 - }, - "end": { - "line": 39, - "column": 6 - } - }, - "range": [ - 1150, - 1156 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 39, - "column": 6 - }, - "end": { - "line": 39, - "column": 7 - } - }, - "range": [ - 1156, - 1157 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 39, - "column": 7 - }, - "end": { - "line": 39, - "column": 19 - } - }, - "range": [ - 1157, - 1169 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 39, - "column": 19 - }, - "end": { - "line": 39, - "column": 20 - } - }, - "range": [ - 1169, - 1170 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 39, - "column": 20 - }, - "end": { - "line": 39, - "column": 21 - } - }, - "range": [ - 1170, - 1171 - ] - }, - { - "type": "String", - "value": "'async function'", - "loc": { - "start": { - "line": 39, - "column": 21 - }, - "end": { - "line": 39, - "column": 37 - } - }, - "range": [ - 1171, - 1187 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 39, - "column": 37 - }, - "end": { - "line": 39, - "column": 38 - } - }, - "range": [ - 1187, - 1188 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 39, - "column": 38 - }, - "end": { - "line": 39, - "column": 39 - } - }, - "range": [ - 1188, - 1189 - ] - }, - { - "type": "Identifier", - "value": "asyncFn", - "loc": { - "start": { - "line": 39, - "column": 40 - }, - "end": { - "line": 39, - "column": 47 - } - }, - "range": [ - 1190, - 1197 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 39, - "column": 47 - }, - "end": { - "line": 39, - "column": 48 - } - }, - "range": [ - 1197, - 1198 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 39, - "column": 48 - }, - "end": { - "line": 39, - "column": 49 - } - }, - "range": [ - 1198, - 1199 - ] - }, - { - "type": "String", - "value": "'body'", - "loc": { - "start": { - "line": 39, - "column": 50 - }, - "end": { - "line": 39, - "column": 56 - } - }, - "range": [ - 1200, - 1206 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 39, - "column": 56 - }, - "end": { - "line": 39, - "column": 57 - } - }, - "range": [ - 1206, - 1207 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 39, - "column": 57 - }, - "end": { - "line": 39, - "column": 58 - } - }, - "range": [ - 1207, - 1208 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 40, - "column": 0 - }, - "end": { - "line": 40, - "column": 6 - } - }, - "range": [ - 1209, - 1215 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 40, - "column": 6 - }, - "end": { - "line": 40, - "column": 7 - } - }, - "range": [ - 1215, - 1216 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 40, - "column": 7 - }, - "end": { - "line": 40, - "column": 19 - } - }, - "range": [ - 1216, - 1228 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 40, - "column": 19 - }, - "end": { - "line": 40, - "column": 20 - } - }, - "range": [ - 1228, - 1229 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 40, - "column": 20 - }, - "end": { - "line": 40, - "column": 21 - } - }, - "range": [ - 1229, - 1230 - ] - }, - { - "type": "String", - "value": "'async function'", - "loc": { - "start": { - "line": 40, - "column": 21 - }, - "end": { - "line": 40, - "column": 37 - } - }, - "range": [ - 1230, - 1246 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 40, - "column": 37 - }, - "end": { - "line": 40, - "column": 38 - } - }, - "range": [ - 1246, - 1247 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 40, - "column": 38 - }, - "end": { - "line": 40, - "column": 39 - } - }, - "range": [ - 1247, - 1248 - ] - }, - { - "type": "Identifier", - "value": "asyncFnParam", - "loc": { - "start": { - "line": 40, - "column": 40 - }, - "end": { - "line": 40, - "column": 52 - } - }, - "range": [ - 1249, - 1261 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 40, - "column": 52 - }, - "end": { - "line": 40, - "column": 53 - } - }, - "range": [ - 1261, - 1262 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 40, - "column": 53 - }, - "end": { - "line": 40, - "column": 54 - } - }, - "range": [ - 1262, - 1263 - ] - }, - { - "type": "String", - "value": "'parameter'", - "loc": { - "start": { - "line": 40, - "column": 55 - }, - "end": { - "line": 40, - "column": 66 - } - }, - "range": [ - 1264, - 1275 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 40, - "column": 66 - }, - "end": { - "line": 40, - "column": 67 - } - }, - "range": [ - 1275, - 1276 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 40, - "column": 67 - }, - "end": { - "line": 40, - "column": 68 - } - }, - "range": [ - 1276, - 1277 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-functions.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-functions.src.js deleted file mode 100644 index 19aefb22..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-functions.src.js +++ /dev/null @@ -1,40 +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 identifier `arguments` is not restricted within function forms -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - - It is a Syntax Error if ContainsArguments of ClassStaticBlockStatementList - is true. -includes: [compareArray.js] -features: [class-static-block] ----*/ - -var fn, fnParam; -var gen, genParam; -var asyncFn, asyncFnParam; - -class C { - static { - (function({test262 = fnParam = arguments}) { - fn = arguments; - })('function'); - - (function * ({test262 = genParam = arguments}) { - gen = arguments; - })('generator function').next(); - - (async function ({test262 = asyncFnParam = arguments}) { - asyncFn = arguments; - })('async function'); - } -} - -assert(compareArray(['function'], fn), 'body'); -assert(compareArray(['function'], fnParam), 'parameter'); -assert(compareArray(['generator function'], gen), 'body'); -assert(compareArray(['generator function'], genParam), 'parameter'); -assert(compareArray(['async function'], asyncFn), 'body'); -assert(compareArray(['async function'], asyncFnParam), 'parameter'); diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-methods.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-methods.result.js deleted file mode 100644 index 94399d31..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-methods.result.js +++ /dev/null @@ -1,9111 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 58, - "column": 70 - } - }, - "range": [ - 502, - 1824 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 502, - 515 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 12 - } - }, - "range": [ - 506, - 514 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 12 - } - }, - "range": [ - 506, - 514 - ], - "name": "instance" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 516, - 540 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 10 - } - }, - "range": [ - 520, - 526 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 10 - } - }, - "range": [ - 520, - 526 - ], - "name": "method" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 16, - "column": 12 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 528, - 539 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 12 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 528, - 539 - ], - "name": "methodParam" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 11 - } - }, - "range": [ - 541, - 552 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 10 - } - }, - "range": [ - 545, - 551 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 10 - } - }, - "range": [ - 545, - 551 - ], - "name": "getter" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 24 - } - }, - "range": [ - 553, - 577 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 18, - "column": 4 - }, - "end": { - "line": 18, - "column": 10 - } - }, - "range": [ - 557, - 563 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 18, - "column": 4 - }, - "end": { - "line": 18, - "column": 10 - } - }, - "range": [ - 557, - 563 - ], - "name": "setter" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 18, - "column": 12 - }, - "end": { - "line": 18, - "column": 23 - } - }, - "range": [ - 565, - 576 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 18, - "column": 12 - }, - "end": { - "line": 18, - "column": 23 - } - }, - "range": [ - 565, - 576 - ], - "name": "setterParam" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 19, - "column": 30 - } - }, - "range": [ - 578, - 608 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 13 - } - }, - "range": [ - 582, - 591 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 13 - } - }, - "range": [ - 582, - 591 - ], - "name": "genMethod" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 19, - "column": 15 - }, - "end": { - "line": 19, - "column": 29 - } - }, - "range": [ - 593, - 607 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 15 - }, - "end": { - "line": 19, - "column": 29 - } - }, - "range": [ - 593, - 607 - ], - "name": "genMethodParam" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 20, - "column": 0 - }, - "end": { - "line": 20, - "column": 34 - } - }, - "range": [ - 609, - 643 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 15 - } - }, - "range": [ - 613, - 624 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 15 - } - }, - "range": [ - 613, - 624 - ], - "name": "asyncMethod" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 20, - "column": 17 - }, - "end": { - "line": 20, - "column": 33 - } - }, - "range": [ - 626, - 642 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 20, - "column": 17 - }, - "end": { - "line": 20, - "column": 33 - } - }, - "range": [ - 626, - 642 - ], - "name": "asyncMethodParam" - }, - "init": null - } - ], - "kind": "var" - }, - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 22, - "column": 0 - }, - "end": { - "line": 42, - "column": 1 - } - }, - "range": [ - 645, - 1143 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 651, - 652 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 22, - "column": 8 - }, - "end": { - "line": 42, - "column": 1 - } - }, - "range": [ - 653, - 1143 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 41, - "column": 3 - } - }, - "range": [ - 657, - 1141 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 40, - "column": 8 - } - }, - "range": [ - 670, - 1137 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 40, - "column": 7 - } - }, - "range": [ - 670, - 1136 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 12 - } - }, - "range": [ - 670, - 678 - ], - "name": "instance" - }, - "right": { - "type": "NewExpression", - "loc": { - "start": { - "line": 24, - "column": 15 - }, - "end": { - "line": 40, - "column": 7 - } - }, - "range": [ - 681, - 1136 - ], - "callee": { - "type": "ClassExpression", - "loc": { - "start": { - "line": 24, - "column": 19 - }, - "end": { - "line": 40, - "column": 5 - } - }, - "range": [ - 685, - 1134 - ], - "id": null, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 24, - "column": 25 - }, - "end": { - "line": 40, - "column": 5 - } - }, - "range": [ - 691, - 1134 - ], - "body": [ - { - "type": "MethodDefinition", - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 27, - "column": 7 - } - }, - "range": [ - 699, - 780 - ], - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 12 - } - }, - "range": [ - 699, - 705 - ], - "name": "method" - }, - "kind": "method", - "value": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 25, - "column": 12 - }, - "end": { - "line": 27, - "column": 7 - } - }, - "range": [ - 705, - 780 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "loc": { - "start": { - "line": 25, - "column": 13 - }, - "end": { - "line": 25, - "column": 48 - } - }, - "range": [ - 706, - 741 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 25, - "column": 14 - }, - "end": { - "line": 25, - "column": 47 - } - }, - "range": [ - 707, - 740 - ], - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 14 - }, - "end": { - "line": 25, - "column": 21 - } - }, - "range": [ - 707, - 714 - ], - "name": "test262" - }, - "kind": "init", - "value": { - "type": "AssignmentPattern", - "loc": { - "start": { - "line": 25, - "column": 14 - }, - "end": { - "line": 25, - "column": 47 - } - }, - "range": [ - 707, - 740 - ], - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 14 - }, - "end": { - "line": 25, - "column": 21 - } - }, - "range": [ - 707, - 714 - ], - "name": "test262" - }, - "right": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 25, - "column": 24 - }, - "end": { - "line": 25, - "column": 47 - } - }, - "range": [ - 717, - 740 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 24 - }, - "end": { - "line": 25, - "column": 35 - } - }, - "range": [ - 717, - 728 - ], - "name": "methodParam" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 25, - "column": 38 - }, - "end": { - "line": 25, - "column": 47 - } - }, - "range": [ - 731, - 740 - ], - "name": "arguments" - } - } - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 25, - "column": 50 - }, - "end": { - "line": 27, - "column": 7 - } - }, - "range": [ - 743, - 780 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 26, - "column": 8 - }, - "end": { - "line": 26, - "column": 27 - } - }, - "range": [ - 753, - 772 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 26, - "column": 8 - }, - "end": { - "line": 26, - "column": 26 - } - }, - "range": [ - 753, - 771 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 26, - "column": 8 - }, - "end": { - "line": 26, - "column": 14 - } - }, - "range": [ - 753, - 759 - ], - "name": "method" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 26, - "column": 17 - }, - "end": { - "line": 26, - "column": 26 - } - }, - "range": [ - 762, - 771 - ], - "name": "arguments" - } - } - } - ] - } - } - }, - { - "type": "MethodDefinition", - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 30, - "column": 7 - } - }, - "range": [ - 787, - 839 - ], - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 28, - "column": 10 - }, - "end": { - "line": 28, - "column": 18 - } - }, - "range": [ - 791, - 799 - ], - "name": "accessor" - }, - "kind": "get", - "value": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 28, - "column": 18 - }, - "end": { - "line": 30, - "column": 7 - } - }, - "range": [ - 799, - 839 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 28, - "column": 21 - }, - "end": { - "line": 30, - "column": 7 - } - }, - "range": [ - 802, - 839 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 29, - "column": 27 - } - }, - "range": [ - 812, - 831 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 29, - "column": 26 - } - }, - "range": [ - 812, - 830 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 29, - "column": 14 - } - }, - "range": [ - 812, - 818 - ], - "name": "getter" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 29, - "column": 17 - }, - "end": { - "line": 29, - "column": 26 - } - }, - "range": [ - 821, - 830 - ], - "name": "arguments" - } - } - } - ] - } - } - }, - { - "type": "MethodDefinition", - "loc": { - "start": { - "line": 31, - "column": 6 - }, - "end": { - "line": 33, - "column": 7 - } - }, - "range": [ - 846, - 933 - ], - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 31, - "column": 10 - }, - "end": { - "line": 31, - "column": 18 - } - }, - "range": [ - 850, - 858 - ], - "name": "accessor" - }, - "kind": "set", - "value": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 31, - "column": 18 - }, - "end": { - "line": 33, - "column": 7 - } - }, - "range": [ - 858, - 933 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "loc": { - "start": { - "line": 31, - "column": 19 - }, - "end": { - "line": 31, - "column": 54 - } - }, - "range": [ - 859, - 894 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 31, - "column": 20 - }, - "end": { - "line": 31, - "column": 53 - } - }, - "range": [ - 860, - 893 - ], - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 31, - "column": 20 - }, - "end": { - "line": 31, - "column": 27 - } - }, - "range": [ - 860, - 867 - ], - "name": "test262" - }, - "kind": "init", - "value": { - "type": "AssignmentPattern", - "loc": { - "start": { - "line": 31, - "column": 20 - }, - "end": { - "line": 31, - "column": 53 - } - }, - "range": [ - 860, - 893 - ], - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 31, - "column": 20 - }, - "end": { - "line": 31, - "column": 27 - } - }, - "range": [ - 860, - 867 - ], - "name": "test262" - }, - "right": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 31, - "column": 30 - }, - "end": { - "line": 31, - "column": 53 - } - }, - "range": [ - 870, - 893 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 31, - "column": 30 - }, - "end": { - "line": 31, - "column": 41 - } - }, - "range": [ - 870, - 881 - ], - "name": "setterParam" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 31, - "column": 44 - }, - "end": { - "line": 31, - "column": 53 - } - }, - "range": [ - 884, - 893 - ], - "name": "arguments" - } - } - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 31, - "column": 56 - }, - "end": { - "line": 33, - "column": 7 - } - }, - "range": [ - 896, - 933 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 27 - } - }, - "range": [ - 906, - 925 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 26 - } - }, - "range": [ - 906, - 924 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 14 - } - }, - "range": [ - 906, - 912 - ], - "name": "setter" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 32, - "column": 17 - }, - "end": { - "line": 32, - "column": 26 - } - }, - "range": [ - 915, - 924 - ], - "name": "arguments" - } - } - } - ] - } - } - }, - { - "type": "MethodDefinition", - "loc": { - "start": { - "line": 34, - "column": 6 - }, - "end": { - "line": 36, - "column": 7 - } - }, - "range": [ - 940, - 1025 - ], - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 34, - "column": 7 - }, - "end": { - "line": 34, - "column": 10 - } - }, - "range": [ - 941, - 944 - ], - "name": "gen" - }, - "kind": "method", - "value": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 34, - "column": 10 - }, - "end": { - "line": 36, - "column": 7 - } - }, - "range": [ - 944, - 1025 - ], - "id": null, - "expression": false, - "generator": true, - "async": false, - "params": [ - { - "type": "ObjectPattern", - "loc": { - "start": { - "line": 34, - "column": 11 - }, - "end": { - "line": 34, - "column": 49 - } - }, - "range": [ - 945, - 983 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 34, - "column": 12 - }, - "end": { - "line": 34, - "column": 48 - } - }, - "range": [ - 946, - 982 - ], - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 34, - "column": 12 - }, - "end": { - "line": 34, - "column": 19 - } - }, - "range": [ - 946, - 953 - ], - "name": "test262" - }, - "kind": "init", - "value": { - "type": "AssignmentPattern", - "loc": { - "start": { - "line": 34, - "column": 12 - }, - "end": { - "line": 34, - "column": 48 - } - }, - "range": [ - 946, - 982 - ], - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 34, - "column": 12 - }, - "end": { - "line": 34, - "column": 19 - } - }, - "range": [ - 946, - 953 - ], - "name": "test262" - }, - "right": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 34, - "column": 22 - }, - "end": { - "line": 34, - "column": 48 - } - }, - "range": [ - 956, - 982 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 34, - "column": 22 - }, - "end": { - "line": 34, - "column": 36 - } - }, - "range": [ - 956, - 970 - ], - "name": "genMethodParam" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 34, - "column": 39 - }, - "end": { - "line": 34, - "column": 48 - } - }, - "range": [ - 973, - 982 - ], - "name": "arguments" - } - } - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 34, - "column": 51 - }, - "end": { - "line": 36, - "column": 7 - } - }, - "range": [ - 985, - 1025 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 35, - "column": 8 - }, - "end": { - "line": 35, - "column": 30 - } - }, - "range": [ - 995, - 1017 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 35, - "column": 8 - }, - "end": { - "line": 35, - "column": 29 - } - }, - "range": [ - 995, - 1016 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 35, - "column": 8 - }, - "end": { - "line": 35, - "column": 17 - } - }, - "range": [ - 995, - 1004 - ], - "name": "genMethod" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 35, - "column": 20 - }, - "end": { - "line": 35, - "column": 29 - } - }, - "range": [ - 1007, - 1016 - ], - "name": "arguments" - } - } - } - ] - } - } - }, - { - "type": "MethodDefinition", - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 39, - "column": 7 - } - }, - "range": [ - 1032, - 1128 - ], - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 37, - "column": 12 - }, - "end": { - "line": 37, - "column": 17 - } - }, - "range": [ - 1038, - 1043 - ], - "name": "async" - }, - "kind": "method", - "value": { - "type": "FunctionExpression", - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 39, - "column": 7 - } - }, - "range": [ - 1043, - 1128 - ], - "id": null, - "expression": false, - "generator": false, - "async": true, - "params": [ - { - "type": "ObjectPattern", - "loc": { - "start": { - "line": 37, - "column": 18 - }, - "end": { - "line": 37, - "column": 58 - } - }, - "range": [ - 1044, - 1084 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 37, - "column": 57 - } - }, - "range": [ - 1045, - 1083 - ], - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 37, - "column": 26 - } - }, - "range": [ - 1045, - 1052 - ], - "name": "test262" - }, - "kind": "init", - "value": { - "type": "AssignmentPattern", - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 37, - "column": 57 - } - }, - "range": [ - 1045, - 1083 - ], - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 37, - "column": 26 - } - }, - "range": [ - 1045, - 1052 - ], - "name": "test262" - }, - "right": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 37, - "column": 29 - }, - "end": { - "line": 37, - "column": 57 - } - }, - "range": [ - 1055, - 1083 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 37, - "column": 29 - }, - "end": { - "line": 37, - "column": 45 - } - }, - "range": [ - 1055, - 1071 - ], - "name": "asyncMethodParam" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 37, - "column": 48 - }, - "end": { - "line": 37, - "column": 57 - } - }, - "range": [ - 1074, - 1083 - ], - "name": "arguments" - } - } - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 37, - "column": 60 - }, - "end": { - "line": 39, - "column": 7 - } - }, - "range": [ - 1086, - 1128 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 32 - } - }, - "range": [ - 1096, - 1120 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 31 - } - }, - "range": [ - 1096, - 1119 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 19 - } - }, - "range": [ - 1096, - 1107 - ], - "name": "asyncMethod" - }, - "right": { - "type": "Identifier", - "loc": { - "start": { - "line": 38, - "column": 22 - }, - "end": { - "line": 38, - "column": 31 - } - }, - "range": [ - 1110, - 1119 - ], - "name": "arguments" - } - } - } - ] - } - } - } - ] - } - }, - "arguments": [] - } - } - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 44, - "column": 26 - } - }, - "range": [ - 1145, - 1171 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 44, - "column": 25 - } - }, - "range": [ - 1145, - 1170 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 44, - "column": 15 - } - }, - "range": [ - 1145, - 1160 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 44, - "column": 8 - } - }, - "range": [ - 1145, - 1153 - ], - "name": "instance" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 44, - "column": 9 - }, - "end": { - "line": 44, - "column": 15 - } - }, - "range": [ - 1154, - 1160 - ], - "name": "method" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 44, - "column": 16 - }, - "end": { - "line": 44, - "column": 24 - } - }, - "range": [ - 1161, - 1169 - ], - "value": "method", - "raw": "'method'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 45, - "column": 0 - }, - "end": { - "line": 45, - "column": 18 - } - }, - "range": [ - 1172, - 1190 - ], - "expression": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 45, - "column": 0 - }, - "end": { - "line": 45, - "column": 17 - } - }, - "range": [ - 1172, - 1189 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 45, - "column": 0 - }, - "end": { - "line": 45, - "column": 8 - } - }, - "range": [ - 1172, - 1180 - ], - "name": "instance" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 45, - "column": 9 - }, - "end": { - "line": 45, - "column": 17 - } - }, - "range": [ - 1181, - 1189 - ], - "name": "accessor" - }, - "computed": false, - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 46, - "column": 29 - } - }, - "range": [ - 1191, - 1220 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 46, - "column": 28 - } - }, - "range": [ - 1191, - 1219 - ], - "operator": "=", - "left": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 46, - "column": 17 - } - }, - "range": [ - 1191, - 1208 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 46, - "column": 8 - } - }, - "range": [ - 1191, - 1199 - ], - "name": "instance" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 46, - "column": 9 - }, - "end": { - "line": 46, - "column": 17 - } - }, - "range": [ - 1200, - 1208 - ], - "name": "accessor" - }, - "computed": false, - "optional": false - }, - "right": { - "type": "Literal", - "loc": { - "start": { - "line": 46, - "column": 20 - }, - "end": { - "line": 46, - "column": 28 - } - }, - "range": [ - 1211, - 1219 - ], - "value": "setter", - "raw": "'setter'" - } - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 47, - "column": 0 - }, - "end": { - "line": 47, - "column": 40 - } - }, - "range": [ - 1221, - 1261 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 47, - "column": 0 - }, - "end": { - "line": 47, - "column": 39 - } - }, - "range": [ - 1221, - 1260 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 47, - "column": 0 - }, - "end": { - "line": 47, - "column": 37 - } - }, - "range": [ - 1221, - 1258 - ], - "object": { - "type": "CallExpression", - "loc": { - "start": { - "line": 47, - "column": 0 - }, - "end": { - "line": 47, - "column": 32 - } - }, - "range": [ - 1221, - 1253 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 47, - "column": 0 - }, - "end": { - "line": 47, - "column": 12 - } - }, - "range": [ - 1221, - 1233 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 47, - "column": 0 - }, - "end": { - "line": 47, - "column": 8 - } - }, - "range": [ - 1221, - 1229 - ], - "name": "instance" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 47, - "column": 9 - }, - "end": { - "line": 47, - "column": 12 - } - }, - "range": [ - 1230, - 1233 - ], - "name": "gen" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 31 - } - }, - "range": [ - 1234, - 1252 - ], - "value": "generator method", - "raw": "'generator method'" - } - ], - "optional": false - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 47, - "column": 33 - }, - "end": { - "line": 47, - "column": 37 - } - }, - "range": [ - 1254, - 1258 - ], - "name": "next" - }, - "computed": false, - "optional": false - }, - "arguments": [], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 48, - "column": 31 - } - }, - "range": [ - 1262, - 1293 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 48, - "column": 30 - } - }, - "range": [ - 1262, - 1292 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 48, - "column": 14 - } - }, - "range": [ - 1262, - 1276 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 48, - "column": 8 - } - }, - "range": [ - 1262, - 1270 - ], - "name": "instance" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 48, - "column": 9 - }, - "end": { - "line": 48, - "column": 14 - } - }, - "range": [ - 1271, - 1276 - ], - "name": "async" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 48, - "column": 15 - }, - "end": { - "line": 48, - "column": 29 - } - }, - "range": [ - 1277, - 1291 - ], - "value": "async method", - "raw": "'async method'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 50, - "column": 49 - } - }, - "range": [ - 1295, - 1344 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 50, - "column": 48 - } - }, - "range": [ - 1295, - 1343 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 50, - "column": 6 - } - }, - "range": [ - 1295, - 1301 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 50, - "column": 7 - }, - "end": { - "line": 50, - "column": 39 - } - }, - "range": [ - 1302, - 1334 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 50, - "column": 7 - }, - "end": { - "line": 50, - "column": 19 - } - }, - "range": [ - 1302, - 1314 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 30 - } - }, - "range": [ - 1315, - 1325 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 50, - "column": 21 - }, - "end": { - "line": 50, - "column": 29 - } - }, - "range": [ - 1316, - 1324 - ], - "value": "method", - "raw": "'method'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 50, - "column": 32 - }, - "end": { - "line": 50, - "column": 38 - } - }, - "range": [ - 1327, - 1333 - ], - "name": "method" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 50, - "column": 41 - }, - "end": { - "line": 50, - "column": 47 - } - }, - "range": [ - 1336, - 1342 - ], - "value": "body", - "raw": "'body'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 51, - "column": 0 - }, - "end": { - "line": 51, - "column": 59 - } - }, - "range": [ - 1345, - 1404 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 51, - "column": 0 - }, - "end": { - "line": 51, - "column": 58 - } - }, - "range": [ - 1345, - 1403 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 51, - "column": 0 - }, - "end": { - "line": 51, - "column": 6 - } - }, - "range": [ - 1345, - 1351 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 51, - "column": 7 - }, - "end": { - "line": 51, - "column": 44 - } - }, - "range": [ - 1352, - 1389 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 51, - "column": 7 - }, - "end": { - "line": 51, - "column": 19 - } - }, - "range": [ - 1352, - 1364 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 51, - "column": 20 - }, - "end": { - "line": 51, - "column": 30 - } - }, - "range": [ - 1365, - 1375 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 51, - "column": 21 - }, - "end": { - "line": 51, - "column": 29 - } - }, - "range": [ - 1366, - 1374 - ], - "value": "method", - "raw": "'method'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 51, - "column": 32 - }, - "end": { - "line": 51, - "column": 43 - } - }, - "range": [ - 1377, - 1388 - ], - "name": "methodParam" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 51, - "column": 46 - }, - "end": { - "line": 51, - "column": 57 - } - }, - "range": [ - 1391, - 1402 - ], - "value": "parameter", - "raw": "'parameter'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 52, - "column": 0 - }, - "end": { - "line": 52, - "column": 41 - } - }, - "range": [ - 1405, - 1446 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 52, - "column": 0 - }, - "end": { - "line": 52, - "column": 40 - } - }, - "range": [ - 1405, - 1445 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 52, - "column": 0 - }, - "end": { - "line": 52, - "column": 6 - } - }, - "range": [ - 1405, - 1411 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 52, - "column": 7 - }, - "end": { - "line": 52, - "column": 31 - } - }, - "range": [ - 1412, - 1436 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 52, - "column": 7 - }, - "end": { - "line": 52, - "column": 19 - } - }, - "range": [ - 1412, - 1424 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 52, - "column": 20 - }, - "end": { - "line": 52, - "column": 22 - } - }, - "range": [ - 1425, - 1427 - ], - "elements": [] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 52, - "column": 24 - }, - "end": { - "line": 52, - "column": 30 - } - }, - "range": [ - 1429, - 1435 - ], - "name": "getter" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 52, - "column": 33 - }, - "end": { - "line": 52, - "column": 39 - } - }, - "range": [ - 1438, - 1444 - ], - "value": "body", - "raw": "'body'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 53, - "column": 0 - }, - "end": { - "line": 53, - "column": 49 - } - }, - "range": [ - 1447, - 1496 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 53, - "column": 0 - }, - "end": { - "line": 53, - "column": 48 - } - }, - "range": [ - 1447, - 1495 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 53, - "column": 0 - }, - "end": { - "line": 53, - "column": 6 - } - }, - "range": [ - 1447, - 1453 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 53, - "column": 7 - }, - "end": { - "line": 53, - "column": 39 - } - }, - "range": [ - 1454, - 1486 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 53, - "column": 7 - }, - "end": { - "line": 53, - "column": 19 - } - }, - "range": [ - 1454, - 1466 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 30 - } - }, - "range": [ - 1467, - 1477 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 53, - "column": 21 - }, - "end": { - "line": 53, - "column": 29 - } - }, - "range": [ - 1468, - 1476 - ], - "value": "setter", - "raw": "'setter'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 53, - "column": 32 - }, - "end": { - "line": 53, - "column": 38 - } - }, - "range": [ - 1479, - 1485 - ], - "name": "setter" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 53, - "column": 41 - }, - "end": { - "line": 53, - "column": 47 - } - }, - "range": [ - 1488, - 1494 - ], - "value": "body", - "raw": "'body'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 54, - "column": 0 - }, - "end": { - "line": 54, - "column": 59 - } - }, - "range": [ - 1497, - 1556 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 54, - "column": 0 - }, - "end": { - "line": 54, - "column": 58 - } - }, - "range": [ - 1497, - 1555 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 54, - "column": 0 - }, - "end": { - "line": 54, - "column": 6 - } - }, - "range": [ - 1497, - 1503 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 54, - "column": 7 - }, - "end": { - "line": 54, - "column": 44 - } - }, - "range": [ - 1504, - 1541 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 54, - "column": 7 - }, - "end": { - "line": 54, - "column": 19 - } - }, - "range": [ - 1504, - 1516 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 54, - "column": 20 - }, - "end": { - "line": 54, - "column": 30 - } - }, - "range": [ - 1517, - 1527 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 54, - "column": 21 - }, - "end": { - "line": 54, - "column": 29 - } - }, - "range": [ - 1518, - 1526 - ], - "value": "setter", - "raw": "'setter'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 54, - "column": 32 - }, - "end": { - "line": 54, - "column": 43 - } - }, - "range": [ - 1529, - 1540 - ], - "name": "setterParam" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 54, - "column": 46 - }, - "end": { - "line": 54, - "column": 57 - } - }, - "range": [ - 1543, - 1554 - ], - "value": "parameter", - "raw": "'parameter'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 55, - "column": 0 - }, - "end": { - "line": 55, - "column": 62 - } - }, - "range": [ - 1557, - 1619 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 55, - "column": 0 - }, - "end": { - "line": 55, - "column": 61 - } - }, - "range": [ - 1557, - 1618 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 55, - "column": 0 - }, - "end": { - "line": 55, - "column": 6 - } - }, - "range": [ - 1557, - 1563 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 55, - "column": 7 - }, - "end": { - "line": 55, - "column": 52 - } - }, - "range": [ - 1564, - 1609 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 55, - "column": 7 - }, - "end": { - "line": 55, - "column": 19 - } - }, - "range": [ - 1564, - 1576 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 55, - "column": 20 - }, - "end": { - "line": 55, - "column": 40 - } - }, - "range": [ - 1577, - 1597 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 55, - "column": 21 - }, - "end": { - "line": 55, - "column": 39 - } - }, - "range": [ - 1578, - 1596 - ], - "value": "generator method", - "raw": "'generator method'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 55, - "column": 42 - }, - "end": { - "line": 55, - "column": 51 - } - }, - "range": [ - 1599, - 1608 - ], - "name": "genMethod" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 55, - "column": 54 - }, - "end": { - "line": 55, - "column": 60 - } - }, - "range": [ - 1611, - 1617 - ], - "value": "body", - "raw": "'body'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 56, - "column": 0 - }, - "end": { - "line": 56, - "column": 72 - } - }, - "range": [ - 1620, - 1692 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 56, - "column": 0 - }, - "end": { - "line": 56, - "column": 71 - } - }, - "range": [ - 1620, - 1691 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 56, - "column": 0 - }, - "end": { - "line": 56, - "column": 6 - } - }, - "range": [ - 1620, - 1626 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 56, - "column": 7 - }, - "end": { - "line": 56, - "column": 57 - } - }, - "range": [ - 1627, - 1677 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 56, - "column": 7 - }, - "end": { - "line": 56, - "column": 19 - } - }, - "range": [ - 1627, - 1639 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 56, - "column": 20 - }, - "end": { - "line": 56, - "column": 40 - } - }, - "range": [ - 1640, - 1660 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 56, - "column": 39 - } - }, - "range": [ - 1641, - 1659 - ], - "value": "generator method", - "raw": "'generator method'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 56, - "column": 42 - }, - "end": { - "line": 56, - "column": 56 - } - }, - "range": [ - 1662, - 1676 - ], - "name": "genMethodParam" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 56, - "column": 59 - }, - "end": { - "line": 56, - "column": 70 - } - }, - "range": [ - 1679, - 1690 - ], - "value": "parameter", - "raw": "'parameter'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 57, - "column": 0 - }, - "end": { - "line": 57, - "column": 60 - } - }, - "range": [ - 1693, - 1753 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 57, - "column": 0 - }, - "end": { - "line": 57, - "column": 59 - } - }, - "range": [ - 1693, - 1752 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 57, - "column": 0 - }, - "end": { - "line": 57, - "column": 6 - } - }, - "range": [ - 1693, - 1699 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 57, - "column": 7 - }, - "end": { - "line": 57, - "column": 50 - } - }, - "range": [ - 1700, - 1743 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 57, - "column": 7 - }, - "end": { - "line": 57, - "column": 19 - } - }, - "range": [ - 1700, - 1712 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 57, - "column": 20 - }, - "end": { - "line": 57, - "column": 36 - } - }, - "range": [ - 1713, - 1729 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 57, - "column": 21 - }, - "end": { - "line": 57, - "column": 35 - } - }, - "range": [ - 1714, - 1728 - ], - "value": "async method", - "raw": "'async method'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 57, - "column": 38 - }, - "end": { - "line": 57, - "column": 49 - } - }, - "range": [ - 1731, - 1742 - ], - "name": "asyncMethod" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 57, - "column": 52 - }, - "end": { - "line": 57, - "column": 58 - } - }, - "range": [ - 1745, - 1751 - ], - "value": "body", - "raw": "'body'" - } - ], - "optional": false - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 58, - "column": 70 - } - }, - "range": [ - 1754, - 1824 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 58, - "column": 69 - } - }, - "range": [ - 1754, - 1823 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 58, - "column": 6 - } - }, - "range": [ - 1754, - 1760 - ], - "name": "assert" - }, - "arguments": [ - { - "type": "CallExpression", - "loc": { - "start": { - "line": 58, - "column": 7 - }, - "end": { - "line": 58, - "column": 55 - } - }, - "range": [ - 1761, - 1809 - ], - "callee": { - "type": "Identifier", - "loc": { - "start": { - "line": 58, - "column": 7 - }, - "end": { - "line": 58, - "column": 19 - } - }, - "range": [ - 1761, - 1773 - ], - "name": "compareArray" - }, - "arguments": [ - { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 58, - "column": 20 - }, - "end": { - "line": 58, - "column": 36 - } - }, - "range": [ - 1774, - 1790 - ], - "elements": [ - { - "type": "Literal", - "loc": { - "start": { - "line": 58, - "column": 21 - }, - "end": { - "line": 58, - "column": 35 - } - }, - "range": [ - 1775, - 1789 - ], - "value": "async method", - "raw": "'async method'" - } - ] - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 58, - "column": 38 - }, - "end": { - "line": 58, - "column": 54 - } - }, - "range": [ - 1792, - 1808 - ], - "name": "asyncMethodParam" - } - ], - "optional": false - }, - { - "type": "Literal", - "loc": { - "start": { - "line": 58, - "column": 57 - }, - "end": { - "line": 58, - "column": 68 - } - }, - "range": [ - 1811, - 1822 - ], - "value": "parameter", - "raw": "'parameter'" - } - ], - "optional": false - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - }, - "range": [ - 502, - 505 - ] - }, - { - "type": "Identifier", - "value": "instance", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 12 - } - }, - "range": [ - 506, - 514 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 15, - "column": 12 - }, - "end": { - "line": 15, - "column": 13 - } - }, - "range": [ - 514, - 515 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 16, - "column": 3 - } - }, - "range": [ - 516, - 519 - ] - }, - { - "type": "Identifier", - "value": "method", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 10 - } - }, - "range": [ - 520, - 526 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 16, - "column": 10 - }, - "end": { - "line": 16, - "column": 11 - } - }, - "range": [ - 526, - 527 - ] - }, - { - "type": "Identifier", - "value": "methodParam", - "loc": { - "start": { - "line": 16, - "column": 12 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 528, - 539 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 23 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 539, - 540 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 541, - 544 - ] - }, - { - "type": "Identifier", - "value": "getter", - "loc": { - "start": { - "line": 17, - "column": 4 - }, - "end": { - "line": 17, - "column": 10 - } - }, - "range": [ - 545, - 551 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 17, - "column": 10 - }, - "end": { - "line": 17, - "column": 11 - } - }, - "range": [ - 551, - 552 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 3 - } - }, - "range": [ - 553, - 556 - ] - }, - { - "type": "Identifier", - "value": "setter", - "loc": { - "start": { - "line": 18, - "column": 4 - }, - "end": { - "line": 18, - "column": 10 - } - }, - "range": [ - 557, - 563 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 18, - "column": 10 - }, - "end": { - "line": 18, - "column": 11 - } - }, - "range": [ - 563, - 564 - ] - }, - { - "type": "Identifier", - "value": "setterParam", - "loc": { - "start": { - "line": 18, - "column": 12 - }, - "end": { - "line": 18, - "column": 23 - } - }, - "range": [ - 565, - 576 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 18, - "column": 23 - }, - "end": { - "line": 18, - "column": 24 - } - }, - "range": [ - 576, - 577 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 19, - "column": 0 - }, - "end": { - "line": 19, - "column": 3 - } - }, - "range": [ - 578, - 581 - ] - }, - { - "type": "Identifier", - "value": "genMethod", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 13 - } - }, - "range": [ - 582, - 591 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 19, - "column": 13 - }, - "end": { - "line": 19, - "column": 14 - } - }, - "range": [ - 591, - 592 - ] - }, - { - "type": "Identifier", - "value": "genMethodParam", - "loc": { - "start": { - "line": 19, - "column": 15 - }, - "end": { - "line": 19, - "column": 29 - } - }, - "range": [ - 593, - 607 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 19, - "column": 29 - }, - "end": { - "line": 19, - "column": 30 - } - }, - "range": [ - 607, - 608 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 20, - "column": 0 - }, - "end": { - "line": 20, - "column": 3 - } - }, - "range": [ - 609, - 612 - ] - }, - { - "type": "Identifier", - "value": "asyncMethod", - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 15 - } - }, - "range": [ - 613, - 624 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 20, - "column": 15 - }, - "end": { - "line": 20, - "column": 16 - } - }, - "range": [ - 624, - 625 - ] - }, - { - "type": "Identifier", - "value": "asyncMethodParam", - "loc": { - "start": { - "line": 20, - "column": 17 - }, - "end": { - "line": 20, - "column": 33 - } - }, - "range": [ - 626, - 642 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 20, - "column": 33 - }, - "end": { - "line": 20, - "column": 34 - } - }, - "range": [ - 642, - 643 - ] - }, - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 22, - "column": 0 - }, - "end": { - "line": 22, - "column": 5 - } - }, - "range": [ - 645, - 650 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 22, - "column": 7 - } - }, - "range": [ - 651, - 652 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 22, - "column": 8 - }, - "end": { - "line": 22, - "column": 9 - } - }, - "range": [ - 653, - 654 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 8 - } - }, - "range": [ - 657, - 663 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 23, - "column": 9 - }, - "end": { - "line": 23, - "column": 10 - } - }, - "range": [ - 664, - 665 - ] - }, - { - "type": "Identifier", - "value": "instance", - "loc": { - "start": { - "line": 24, - "column": 4 - }, - "end": { - "line": 24, - "column": 12 - } - }, - "range": [ - 670, - 678 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 24, - "column": 13 - }, - "end": { - "line": 24, - "column": 14 - } - }, - "range": [ - 679, - 680 - ] - }, - { - "type": "Keyword", - "value": "new", - "loc": { - "start": { - "line": 24, - "column": 15 - }, - "end": { - "line": 24, - "column": 18 - } - }, - "range": [ - 681, - 684 - ] - }, - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 24, - "column": 19 - }, - "end": { - "line": 24, - "column": 24 - } - }, - "range": [ - 685, - 690 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 24, - "column": 25 - }, - "end": { - "line": 24, - "column": 26 - } - }, - "range": [ - 691, - 692 - ] - }, - { - "type": "Identifier", - "value": "method", - "loc": { - "start": { - "line": 25, - "column": 6 - }, - "end": { - "line": 25, - "column": 12 - } - }, - "range": [ - 699, - 705 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 25, - "column": 12 - }, - "end": { - "line": 25, - "column": 13 - } - }, - "range": [ - 705, - 706 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 25, - "column": 13 - }, - "end": { - "line": 25, - "column": 14 - } - }, - "range": [ - 706, - 707 - ] - }, - { - "type": "Identifier", - "value": "test262", - "loc": { - "start": { - "line": 25, - "column": 14 - }, - "end": { - "line": 25, - "column": 21 - } - }, - "range": [ - 707, - 714 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 25, - "column": 22 - }, - "end": { - "line": 25, - "column": 23 - } - }, - "range": [ - 715, - 716 - ] - }, - { - "type": "Identifier", - "value": "methodParam", - "loc": { - "start": { - "line": 25, - "column": 24 - }, - "end": { - "line": 25, - "column": 35 - } - }, - "range": [ - 717, - 728 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 25, - "column": 36 - }, - "end": { - "line": 25, - "column": 37 - } - }, - "range": [ - 729, - 730 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 25, - "column": 38 - }, - "end": { - "line": 25, - "column": 47 - } - }, - "range": [ - 731, - 740 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 25, - "column": 47 - }, - "end": { - "line": 25, - "column": 48 - } - }, - "range": [ - 740, - 741 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 25, - "column": 48 - }, - "end": { - "line": 25, - "column": 49 - } - }, - "range": [ - 741, - 742 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 25, - "column": 50 - }, - "end": { - "line": 25, - "column": 51 - } - }, - "range": [ - 743, - 744 - ] - }, - { - "type": "Identifier", - "value": "method", - "loc": { - "start": { - "line": 26, - "column": 8 - }, - "end": { - "line": 26, - "column": 14 - } - }, - "range": [ - 753, - 759 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 26, - "column": 15 - }, - "end": { - "line": 26, - "column": 16 - } - }, - "range": [ - 760, - 761 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 26, - "column": 17 - }, - "end": { - "line": 26, - "column": 26 - } - }, - "range": [ - 762, - 771 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 26, - "column": 26 - }, - "end": { - "line": 26, - "column": 27 - } - }, - "range": [ - 771, - 772 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 27, - "column": 6 - }, - "end": { - "line": 27, - "column": 7 - } - }, - "range": [ - 779, - 780 - ] - }, - { - "type": "Identifier", - "value": "get", - "loc": { - "start": { - "line": 28, - "column": 6 - }, - "end": { - "line": 28, - "column": 9 - } - }, - "range": [ - 787, - 790 - ] - }, - { - "type": "Identifier", - "value": "accessor", - "loc": { - "start": { - "line": 28, - "column": 10 - }, - "end": { - "line": 28, - "column": 18 - } - }, - "range": [ - 791, - 799 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 28, - "column": 18 - }, - "end": { - "line": 28, - "column": 19 - } - }, - "range": [ - 799, - 800 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 28, - "column": 19 - }, - "end": { - "line": 28, - "column": 20 - } - }, - "range": [ - 800, - 801 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 28, - "column": 21 - }, - "end": { - "line": 28, - "column": 22 - } - }, - "range": [ - 802, - 803 - ] - }, - { - "type": "Identifier", - "value": "getter", - "loc": { - "start": { - "line": 29, - "column": 8 - }, - "end": { - "line": 29, - "column": 14 - } - }, - "range": [ - 812, - 818 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 29, - "column": 15 - }, - "end": { - "line": 29, - "column": 16 - } - }, - "range": [ - 819, - 820 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 29, - "column": 17 - }, - "end": { - "line": 29, - "column": 26 - } - }, - "range": [ - 821, - 830 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 29, - "column": 26 - }, - "end": { - "line": 29, - "column": 27 - } - }, - "range": [ - 830, - 831 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 30, - "column": 6 - }, - "end": { - "line": 30, - "column": 7 - } - }, - "range": [ - 838, - 839 - ] - }, - { - "type": "Identifier", - "value": "set", - "loc": { - "start": { - "line": 31, - "column": 6 - }, - "end": { - "line": 31, - "column": 9 - } - }, - "range": [ - 846, - 849 - ] - }, - { - "type": "Identifier", - "value": "accessor", - "loc": { - "start": { - "line": 31, - "column": 10 - }, - "end": { - "line": 31, - "column": 18 - } - }, - "range": [ - 850, - 858 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 31, - "column": 18 - }, - "end": { - "line": 31, - "column": 19 - } - }, - "range": [ - 858, - 859 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 31, - "column": 19 - }, - "end": { - "line": 31, - "column": 20 - } - }, - "range": [ - 859, - 860 - ] - }, - { - "type": "Identifier", - "value": "test262", - "loc": { - "start": { - "line": 31, - "column": 20 - }, - "end": { - "line": 31, - "column": 27 - } - }, - "range": [ - 860, - 867 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 31, - "column": 28 - }, - "end": { - "line": 31, - "column": 29 - } - }, - "range": [ - 868, - 869 - ] - }, - { - "type": "Identifier", - "value": "setterParam", - "loc": { - "start": { - "line": 31, - "column": 30 - }, - "end": { - "line": 31, - "column": 41 - } - }, - "range": [ - 870, - 881 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 31, - "column": 42 - }, - "end": { - "line": 31, - "column": 43 - } - }, - "range": [ - 882, - 883 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 31, - "column": 44 - }, - "end": { - "line": 31, - "column": 53 - } - }, - "range": [ - 884, - 893 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 31, - "column": 53 - }, - "end": { - "line": 31, - "column": 54 - } - }, - "range": [ - 893, - 894 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 31, - "column": 54 - }, - "end": { - "line": 31, - "column": 55 - } - }, - "range": [ - 894, - 895 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 31, - "column": 56 - }, - "end": { - "line": 31, - "column": 57 - } - }, - "range": [ - 896, - 897 - ] - }, - { - "type": "Identifier", - "value": "setter", - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 14 - } - }, - "range": [ - 906, - 912 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 32, - "column": 15 - }, - "end": { - "line": 32, - "column": 16 - } - }, - "range": [ - 913, - 914 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 32, - "column": 17 - }, - "end": { - "line": 32, - "column": 26 - } - }, - "range": [ - 915, - 924 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 32, - "column": 26 - }, - "end": { - "line": 32, - "column": 27 - } - }, - "range": [ - 924, - 925 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 33, - "column": 6 - }, - "end": { - "line": 33, - "column": 7 - } - }, - "range": [ - 932, - 933 - ] - }, - { - "type": "Punctuator", - "value": "*", - "loc": { - "start": { - "line": 34, - "column": 6 - }, - "end": { - "line": 34, - "column": 7 - } - }, - "range": [ - 940, - 941 - ] - }, - { - "type": "Identifier", - "value": "gen", - "loc": { - "start": { - "line": 34, - "column": 7 - }, - "end": { - "line": 34, - "column": 10 - } - }, - "range": [ - 941, - 944 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 34, - "column": 10 - }, - "end": { - "line": 34, - "column": 11 - } - }, - "range": [ - 944, - 945 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 34, - "column": 11 - }, - "end": { - "line": 34, - "column": 12 - } - }, - "range": [ - 945, - 946 - ] - }, - { - "type": "Identifier", - "value": "test262", - "loc": { - "start": { - "line": 34, - "column": 12 - }, - "end": { - "line": 34, - "column": 19 - } - }, - "range": [ - 946, - 953 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 34, - "column": 20 - }, - "end": { - "line": 34, - "column": 21 - } - }, - "range": [ - 954, - 955 - ] - }, - { - "type": "Identifier", - "value": "genMethodParam", - "loc": { - "start": { - "line": 34, - "column": 22 - }, - "end": { - "line": 34, - "column": 36 - } - }, - "range": [ - 956, - 970 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 34, - "column": 37 - }, - "end": { - "line": 34, - "column": 38 - } - }, - "range": [ - 971, - 972 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 34, - "column": 39 - }, - "end": { - "line": 34, - "column": 48 - } - }, - "range": [ - 973, - 982 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 34, - "column": 48 - }, - "end": { - "line": 34, - "column": 49 - } - }, - "range": [ - 982, - 983 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 34, - "column": 49 - }, - "end": { - "line": 34, - "column": 50 - } - }, - "range": [ - 983, - 984 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 34, - "column": 51 - }, - "end": { - "line": 34, - "column": 52 - } - }, - "range": [ - 985, - 986 - ] - }, - { - "type": "Identifier", - "value": "genMethod", - "loc": { - "start": { - "line": 35, - "column": 8 - }, - "end": { - "line": 35, - "column": 17 - } - }, - "range": [ - 995, - 1004 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 35, - "column": 18 - }, - "end": { - "line": 35, - "column": 19 - } - }, - "range": [ - 1005, - 1006 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 35, - "column": 20 - }, - "end": { - "line": 35, - "column": 29 - } - }, - "range": [ - 1007, - 1016 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 35, - "column": 29 - }, - "end": { - "line": 35, - "column": 30 - } - }, - "range": [ - 1016, - 1017 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 36, - "column": 6 - }, - "end": { - "line": 36, - "column": 7 - } - }, - "range": [ - 1024, - 1025 - ] - }, - { - "type": "Identifier", - "value": "async", - "loc": { - "start": { - "line": 37, - "column": 6 - }, - "end": { - "line": 37, - "column": 11 - } - }, - "range": [ - 1032, - 1037 - ] - }, - { - "type": "Identifier", - "value": "async", - "loc": { - "start": { - "line": 37, - "column": 12 - }, - "end": { - "line": 37, - "column": 17 - } - }, - "range": [ - 1038, - 1043 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 18 - } - }, - "range": [ - 1043, - 1044 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 37, - "column": 18 - }, - "end": { - "line": 37, - "column": 19 - } - }, - "range": [ - 1044, - 1045 - ] - }, - { - "type": "Identifier", - "value": "test262", - "loc": { - "start": { - "line": 37, - "column": 19 - }, - "end": { - "line": 37, - "column": 26 - } - }, - "range": [ - 1045, - 1052 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 37, - "column": 27 - }, - "end": { - "line": 37, - "column": 28 - } - }, - "range": [ - 1053, - 1054 - ] - }, - { - "type": "Identifier", - "value": "asyncMethodParam", - "loc": { - "start": { - "line": 37, - "column": 29 - }, - "end": { - "line": 37, - "column": 45 - } - }, - "range": [ - 1055, - 1071 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 37, - "column": 46 - }, - "end": { - "line": 37, - "column": 47 - } - }, - "range": [ - 1072, - 1073 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 37, - "column": 48 - }, - "end": { - "line": 37, - "column": 57 - } - }, - "range": [ - 1074, - 1083 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 37, - "column": 57 - }, - "end": { - "line": 37, - "column": 58 - } - }, - "range": [ - 1083, - 1084 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 37, - "column": 58 - }, - "end": { - "line": 37, - "column": 59 - } - }, - "range": [ - 1084, - 1085 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 37, - "column": 60 - }, - "end": { - "line": 37, - "column": 61 - } - }, - "range": [ - 1086, - 1087 - ] - }, - { - "type": "Identifier", - "value": "asyncMethod", - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 19 - } - }, - "range": [ - 1096, - 1107 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 21 - } - }, - "range": [ - 1108, - 1109 - ] - }, - { - "type": "Identifier", - "value": "arguments", - "loc": { - "start": { - "line": 38, - "column": 22 - }, - "end": { - "line": 38, - "column": 31 - } - }, - "range": [ - 1110, - 1119 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 38, - "column": 31 - }, - "end": { - "line": 38, - "column": 32 - } - }, - "range": [ - 1119, - 1120 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 39, - "column": 6 - }, - "end": { - "line": 39, - "column": 7 - } - }, - "range": [ - 1127, - 1128 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 40, - "column": 4 - }, - "end": { - "line": 40, - "column": 5 - } - }, - "range": [ - 1133, - 1134 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 40, - "column": 5 - }, - "end": { - "line": 40, - "column": 6 - } - }, - "range": [ - 1134, - 1135 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 40, - "column": 6 - }, - "end": { - "line": 40, - "column": 7 - } - }, - "range": [ - 1135, - 1136 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 40, - "column": 7 - }, - "end": { - "line": 40, - "column": 8 - } - }, - "range": [ - 1136, - 1137 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 41, - "column": 2 - }, - "end": { - "line": 41, - "column": 3 - } - }, - "range": [ - 1140, - 1141 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 42, - "column": 0 - }, - "end": { - "line": 42, - "column": 1 - } - }, - "range": [ - 1142, - 1143 - ] - }, - { - "type": "Identifier", - "value": "instance", - "loc": { - "start": { - "line": 44, - "column": 0 - }, - "end": { - "line": 44, - "column": 8 - } - }, - "range": [ - 1145, - 1153 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 9 - } - }, - "range": [ - 1153, - 1154 - ] - }, - { - "type": "Identifier", - "value": "method", - "loc": { - "start": { - "line": 44, - "column": 9 - }, - "end": { - "line": 44, - "column": 15 - } - }, - "range": [ - 1154, - 1160 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 44, - "column": 15 - }, - "end": { - "line": 44, - "column": 16 - } - }, - "range": [ - 1160, - 1161 - ] - }, - { - "type": "String", - "value": "'method'", - "loc": { - "start": { - "line": 44, - "column": 16 - }, - "end": { - "line": 44, - "column": 24 - } - }, - "range": [ - 1161, - 1169 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 25 - } - }, - "range": [ - 1169, - 1170 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 26 - } - }, - "range": [ - 1170, - 1171 - ] - }, - { - "type": "Identifier", - "value": "instance", - "loc": { - "start": { - "line": 45, - "column": 0 - }, - "end": { - "line": 45, - "column": 8 - } - }, - "range": [ - 1172, - 1180 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 45, - "column": 8 - }, - "end": { - "line": 45, - "column": 9 - } - }, - "range": [ - 1180, - 1181 - ] - }, - { - "type": "Identifier", - "value": "accessor", - "loc": { - "start": { - "line": 45, - "column": 9 - }, - "end": { - "line": 45, - "column": 17 - } - }, - "range": [ - 1181, - 1189 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 45, - "column": 18 - } - }, - "range": [ - 1189, - 1190 - ] - }, - { - "type": "Identifier", - "value": "instance", - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 46, - "column": 8 - } - }, - "range": [ - 1191, - 1199 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 46, - "column": 8 - }, - "end": { - "line": 46, - "column": 9 - } - }, - "range": [ - 1199, - 1200 - ] - }, - { - "type": "Identifier", - "value": "accessor", - "loc": { - "start": { - "line": 46, - "column": 9 - }, - "end": { - "line": 46, - "column": 17 - } - }, - "range": [ - 1200, - 1208 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 46, - "column": 18 - }, - "end": { - "line": 46, - "column": 19 - } - }, - "range": [ - 1209, - 1210 - ] - }, - { - "type": "String", - "value": "'setter'", - "loc": { - "start": { - "line": 46, - "column": 20 - }, - "end": { - "line": 46, - "column": 28 - } - }, - "range": [ - 1211, - 1219 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 46, - "column": 28 - }, - "end": { - "line": 46, - "column": 29 - } - }, - "range": [ - 1219, - 1220 - ] - }, - { - "type": "Identifier", - "value": "instance", - "loc": { - "start": { - "line": 47, - "column": 0 - }, - "end": { - "line": 47, - "column": 8 - } - }, - "range": [ - 1221, - 1229 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 47, - "column": 8 - }, - "end": { - "line": 47, - "column": 9 - } - }, - "range": [ - 1229, - 1230 - ] - }, - { - "type": "Identifier", - "value": "gen", - "loc": { - "start": { - "line": 47, - "column": 9 - }, - "end": { - "line": 47, - "column": 12 - } - }, - "range": [ - 1230, - 1233 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 47, - "column": 12 - }, - "end": { - "line": 47, - "column": 13 - } - }, - "range": [ - 1233, - 1234 - ] - }, - { - "type": "String", - "value": "'generator method'", - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 31 - } - }, - "range": [ - 1234, - 1252 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 47, - "column": 31 - }, - "end": { - "line": 47, - "column": 32 - } - }, - "range": [ - 1252, - 1253 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 47, - "column": 32 - }, - "end": { - "line": 47, - "column": 33 - } - }, - "range": [ - 1253, - 1254 - ] - }, - { - "type": "Identifier", - "value": "next", - "loc": { - "start": { - "line": 47, - "column": 33 - }, - "end": { - "line": 47, - "column": 37 - } - }, - "range": [ - 1254, - 1258 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 47, - "column": 37 - }, - "end": { - "line": 47, - "column": 38 - } - }, - "range": [ - 1258, - 1259 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 47, - "column": 38 - }, - "end": { - "line": 47, - "column": 39 - } - }, - "range": [ - 1259, - 1260 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 47, - "column": 39 - }, - "end": { - "line": 47, - "column": 40 - } - }, - "range": [ - 1260, - 1261 - ] - }, - { - "type": "Identifier", - "value": "instance", - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 48, - "column": 8 - } - }, - "range": [ - 1262, - 1270 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 9 - } - }, - "range": [ - 1270, - 1271 - ] - }, - { - "type": "Identifier", - "value": "async", - "loc": { - "start": { - "line": 48, - "column": 9 - }, - "end": { - "line": 48, - "column": 14 - } - }, - "range": [ - 1271, - 1276 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 48, - "column": 14 - }, - "end": { - "line": 48, - "column": 15 - } - }, - "range": [ - 1276, - 1277 - ] - }, - { - "type": "String", - "value": "'async method'", - "loc": { - "start": { - "line": 48, - "column": 15 - }, - "end": { - "line": 48, - "column": 29 - } - }, - "range": [ - 1277, - 1291 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 48, - "column": 29 - }, - "end": { - "line": 48, - "column": 30 - } - }, - "range": [ - 1291, - 1292 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 48, - "column": 30 - }, - "end": { - "line": 48, - "column": 31 - } - }, - "range": [ - 1292, - 1293 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 50, - "column": 6 - } - }, - "range": [ - 1295, - 1301 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 50, - "column": 6 - }, - "end": { - "line": 50, - "column": 7 - } - }, - "range": [ - 1301, - 1302 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 50, - "column": 7 - }, - "end": { - "line": 50, - "column": 19 - } - }, - "range": [ - 1302, - 1314 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 50, - "column": 19 - }, - "end": { - "line": 50, - "column": 20 - } - }, - "range": [ - 1314, - 1315 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 21 - } - }, - "range": [ - 1315, - 1316 - ] - }, - { - "type": "String", - "value": "'method'", - "loc": { - "start": { - "line": 50, - "column": 21 - }, - "end": { - "line": 50, - "column": 29 - } - }, - "range": [ - 1316, - 1324 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 50, - "column": 29 - }, - "end": { - "line": 50, - "column": 30 - } - }, - "range": [ - 1324, - 1325 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 50, - "column": 30 - }, - "end": { - "line": 50, - "column": 31 - } - }, - "range": [ - 1325, - 1326 - ] - }, - { - "type": "Identifier", - "value": "method", - "loc": { - "start": { - "line": 50, - "column": 32 - }, - "end": { - "line": 50, - "column": 38 - } - }, - "range": [ - 1327, - 1333 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 50, - "column": 38 - }, - "end": { - "line": 50, - "column": 39 - } - }, - "range": [ - 1333, - 1334 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 50, - "column": 39 - }, - "end": { - "line": 50, - "column": 40 - } - }, - "range": [ - 1334, - 1335 - ] - }, - { - "type": "String", - "value": "'body'", - "loc": { - "start": { - "line": 50, - "column": 41 - }, - "end": { - "line": 50, - "column": 47 - } - }, - "range": [ - 1336, - 1342 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 50, - "column": 47 - }, - "end": { - "line": 50, - "column": 48 - } - }, - "range": [ - 1342, - 1343 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 50, - "column": 48 - }, - "end": { - "line": 50, - "column": 49 - } - }, - "range": [ - 1343, - 1344 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 51, - "column": 0 - }, - "end": { - "line": 51, - "column": 6 - } - }, - "range": [ - 1345, - 1351 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 51, - "column": 6 - }, - "end": { - "line": 51, - "column": 7 - } - }, - "range": [ - 1351, - 1352 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 51, - "column": 7 - }, - "end": { - "line": 51, - "column": 19 - } - }, - "range": [ - 1352, - 1364 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 51, - "column": 19 - }, - "end": { - "line": 51, - "column": 20 - } - }, - "range": [ - 1364, - 1365 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 51, - "column": 20 - }, - "end": { - "line": 51, - "column": 21 - } - }, - "range": [ - 1365, - 1366 - ] - }, - { - "type": "String", - "value": "'method'", - "loc": { - "start": { - "line": 51, - "column": 21 - }, - "end": { - "line": 51, - "column": 29 - } - }, - "range": [ - 1366, - 1374 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 51, - "column": 29 - }, - "end": { - "line": 51, - "column": 30 - } - }, - "range": [ - 1374, - 1375 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 51, - "column": 30 - }, - "end": { - "line": 51, - "column": 31 - } - }, - "range": [ - 1375, - 1376 - ] - }, - { - "type": "Identifier", - "value": "methodParam", - "loc": { - "start": { - "line": 51, - "column": 32 - }, - "end": { - "line": 51, - "column": 43 - } - }, - "range": [ - 1377, - 1388 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 51, - "column": 43 - }, - "end": { - "line": 51, - "column": 44 - } - }, - "range": [ - 1388, - 1389 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 51, - "column": 44 - }, - "end": { - "line": 51, - "column": 45 - } - }, - "range": [ - 1389, - 1390 - ] - }, - { - "type": "String", - "value": "'parameter'", - "loc": { - "start": { - "line": 51, - "column": 46 - }, - "end": { - "line": 51, - "column": 57 - } - }, - "range": [ - 1391, - 1402 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 51, - "column": 57 - }, - "end": { - "line": 51, - "column": 58 - } - }, - "range": [ - 1402, - 1403 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 51, - "column": 58 - }, - "end": { - "line": 51, - "column": 59 - } - }, - "range": [ - 1403, - 1404 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 52, - "column": 0 - }, - "end": { - "line": 52, - "column": 6 - } - }, - "range": [ - 1405, - 1411 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 52, - "column": 6 - }, - "end": { - "line": 52, - "column": 7 - } - }, - "range": [ - 1411, - 1412 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 52, - "column": 7 - }, - "end": { - "line": 52, - "column": 19 - } - }, - "range": [ - 1412, - 1424 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 52, - "column": 19 - }, - "end": { - "line": 52, - "column": 20 - } - }, - "range": [ - 1424, - 1425 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 52, - "column": 20 - }, - "end": { - "line": 52, - "column": 21 - } - }, - "range": [ - 1425, - 1426 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 52, - "column": 21 - }, - "end": { - "line": 52, - "column": 22 - } - }, - "range": [ - 1426, - 1427 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 52, - "column": 22 - }, - "end": { - "line": 52, - "column": 23 - } - }, - "range": [ - 1427, - 1428 - ] - }, - { - "type": "Identifier", - "value": "getter", - "loc": { - "start": { - "line": 52, - "column": 24 - }, - "end": { - "line": 52, - "column": 30 - } - }, - "range": [ - 1429, - 1435 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 52, - "column": 30 - }, - "end": { - "line": 52, - "column": 31 - } - }, - "range": [ - 1435, - 1436 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 52, - "column": 31 - }, - "end": { - "line": 52, - "column": 32 - } - }, - "range": [ - 1436, - 1437 - ] - }, - { - "type": "String", - "value": "'body'", - "loc": { - "start": { - "line": 52, - "column": 33 - }, - "end": { - "line": 52, - "column": 39 - } - }, - "range": [ - 1438, - 1444 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 52, - "column": 39 - }, - "end": { - "line": 52, - "column": 40 - } - }, - "range": [ - 1444, - 1445 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 52, - "column": 40 - }, - "end": { - "line": 52, - "column": 41 - } - }, - "range": [ - 1445, - 1446 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 53, - "column": 0 - }, - "end": { - "line": 53, - "column": 6 - } - }, - "range": [ - 1447, - 1453 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 7 - } - }, - "range": [ - 1453, - 1454 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 53, - "column": 7 - }, - "end": { - "line": 53, - "column": 19 - } - }, - "range": [ - 1454, - 1466 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 53, - "column": 19 - }, - "end": { - "line": 53, - "column": 20 - } - }, - "range": [ - 1466, - 1467 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 21 - } - }, - "range": [ - 1467, - 1468 - ] - }, - { - "type": "String", - "value": "'setter'", - "loc": { - "start": { - "line": 53, - "column": 21 - }, - "end": { - "line": 53, - "column": 29 - } - }, - "range": [ - 1468, - 1476 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 53, - "column": 29 - }, - "end": { - "line": 53, - "column": 30 - } - }, - "range": [ - 1476, - 1477 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 53, - "column": 30 - }, - "end": { - "line": 53, - "column": 31 - } - }, - "range": [ - 1477, - 1478 - ] - }, - { - "type": "Identifier", - "value": "setter", - "loc": { - "start": { - "line": 53, - "column": 32 - }, - "end": { - "line": 53, - "column": 38 - } - }, - "range": [ - 1479, - 1485 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 53, - "column": 38 - }, - "end": { - "line": 53, - "column": 39 - } - }, - "range": [ - 1485, - 1486 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 53, - "column": 39 - }, - "end": { - "line": 53, - "column": 40 - } - }, - "range": [ - 1486, - 1487 - ] - }, - { - "type": "String", - "value": "'body'", - "loc": { - "start": { - "line": 53, - "column": 41 - }, - "end": { - "line": 53, - "column": 47 - } - }, - "range": [ - 1488, - 1494 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 53, - "column": 47 - }, - "end": { - "line": 53, - "column": 48 - } - }, - "range": [ - 1494, - 1495 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 53, - "column": 48 - }, - "end": { - "line": 53, - "column": 49 - } - }, - "range": [ - 1495, - 1496 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 54, - "column": 0 - }, - "end": { - "line": 54, - "column": 6 - } - }, - "range": [ - 1497, - 1503 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 54, - "column": 6 - }, - "end": { - "line": 54, - "column": 7 - } - }, - "range": [ - 1503, - 1504 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 54, - "column": 7 - }, - "end": { - "line": 54, - "column": 19 - } - }, - "range": [ - 1504, - 1516 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 54, - "column": 19 - }, - "end": { - "line": 54, - "column": 20 - } - }, - "range": [ - 1516, - 1517 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 54, - "column": 20 - }, - "end": { - "line": 54, - "column": 21 - } - }, - "range": [ - 1517, - 1518 - ] - }, - { - "type": "String", - "value": "'setter'", - "loc": { - "start": { - "line": 54, - "column": 21 - }, - "end": { - "line": 54, - "column": 29 - } - }, - "range": [ - 1518, - 1526 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 54, - "column": 29 - }, - "end": { - "line": 54, - "column": 30 - } - }, - "range": [ - 1526, - 1527 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 54, - "column": 30 - }, - "end": { - "line": 54, - "column": 31 - } - }, - "range": [ - 1527, - 1528 - ] - }, - { - "type": "Identifier", - "value": "setterParam", - "loc": { - "start": { - "line": 54, - "column": 32 - }, - "end": { - "line": 54, - "column": 43 - } - }, - "range": [ - 1529, - 1540 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 54, - "column": 43 - }, - "end": { - "line": 54, - "column": 44 - } - }, - "range": [ - 1540, - 1541 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 54, - "column": 44 - }, - "end": { - "line": 54, - "column": 45 - } - }, - "range": [ - 1541, - 1542 - ] - }, - { - "type": "String", - "value": "'parameter'", - "loc": { - "start": { - "line": 54, - "column": 46 - }, - "end": { - "line": 54, - "column": 57 - } - }, - "range": [ - 1543, - 1554 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 54, - "column": 57 - }, - "end": { - "line": 54, - "column": 58 - } - }, - "range": [ - 1554, - 1555 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 54, - "column": 58 - }, - "end": { - "line": 54, - "column": 59 - } - }, - "range": [ - 1555, - 1556 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 55, - "column": 0 - }, - "end": { - "line": 55, - "column": 6 - } - }, - "range": [ - 1557, - 1563 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 7 - } - }, - "range": [ - 1563, - 1564 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 55, - "column": 7 - }, - "end": { - "line": 55, - "column": 19 - } - }, - "range": [ - 1564, - 1576 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 55, - "column": 19 - }, - "end": { - "line": 55, - "column": 20 - } - }, - "range": [ - 1576, - 1577 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 55, - "column": 20 - }, - "end": { - "line": 55, - "column": 21 - } - }, - "range": [ - 1577, - 1578 - ] - }, - { - "type": "String", - "value": "'generator method'", - "loc": { - "start": { - "line": 55, - "column": 21 - }, - "end": { - "line": 55, - "column": 39 - } - }, - "range": [ - 1578, - 1596 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 55, - "column": 39 - }, - "end": { - "line": 55, - "column": 40 - } - }, - "range": [ - 1596, - 1597 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 55, - "column": 40 - }, - "end": { - "line": 55, - "column": 41 - } - }, - "range": [ - 1597, - 1598 - ] - }, - { - "type": "Identifier", - "value": "genMethod", - "loc": { - "start": { - "line": 55, - "column": 42 - }, - "end": { - "line": 55, - "column": 51 - } - }, - "range": [ - 1599, - 1608 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 55, - "column": 51 - }, - "end": { - "line": 55, - "column": 52 - } - }, - "range": [ - 1608, - 1609 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 55, - "column": 52 - }, - "end": { - "line": 55, - "column": 53 - } - }, - "range": [ - 1609, - 1610 - ] - }, - { - "type": "String", - "value": "'body'", - "loc": { - "start": { - "line": 55, - "column": 54 - }, - "end": { - "line": 55, - "column": 60 - } - }, - "range": [ - 1611, - 1617 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 55, - "column": 60 - }, - "end": { - "line": 55, - "column": 61 - } - }, - "range": [ - 1617, - 1618 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 55, - "column": 61 - }, - "end": { - "line": 55, - "column": 62 - } - }, - "range": [ - 1618, - 1619 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 56, - "column": 0 - }, - "end": { - "line": 56, - "column": 6 - } - }, - "range": [ - 1620, - 1626 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 56, - "column": 6 - }, - "end": { - "line": 56, - "column": 7 - } - }, - "range": [ - 1626, - 1627 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 56, - "column": 7 - }, - "end": { - "line": 56, - "column": 19 - } - }, - "range": [ - 1627, - 1639 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 56, - "column": 19 - }, - "end": { - "line": 56, - "column": 20 - } - }, - "range": [ - 1639, - 1640 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 56, - "column": 20 - }, - "end": { - "line": 56, - "column": 21 - } - }, - "range": [ - 1640, - 1641 - ] - }, - { - "type": "String", - "value": "'generator method'", - "loc": { - "start": { - "line": 56, - "column": 21 - }, - "end": { - "line": 56, - "column": 39 - } - }, - "range": [ - 1641, - 1659 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 56, - "column": 39 - }, - "end": { - "line": 56, - "column": 40 - } - }, - "range": [ - 1659, - 1660 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 56, - "column": 40 - }, - "end": { - "line": 56, - "column": 41 - } - }, - "range": [ - 1660, - 1661 - ] - }, - { - "type": "Identifier", - "value": "genMethodParam", - "loc": { - "start": { - "line": 56, - "column": 42 - }, - "end": { - "line": 56, - "column": 56 - } - }, - "range": [ - 1662, - 1676 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 56, - "column": 56 - }, - "end": { - "line": 56, - "column": 57 - } - }, - "range": [ - 1676, - 1677 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 56, - "column": 57 - }, - "end": { - "line": 56, - "column": 58 - } - }, - "range": [ - 1677, - 1678 - ] - }, - { - "type": "String", - "value": "'parameter'", - "loc": { - "start": { - "line": 56, - "column": 59 - }, - "end": { - "line": 56, - "column": 70 - } - }, - "range": [ - 1679, - 1690 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 56, - "column": 70 - }, - "end": { - "line": 56, - "column": 71 - } - }, - "range": [ - 1690, - 1691 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 56, - "column": 71 - }, - "end": { - "line": 56, - "column": 72 - } - }, - "range": [ - 1691, - 1692 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 57, - "column": 0 - }, - "end": { - "line": 57, - "column": 6 - } - }, - "range": [ - 1693, - 1699 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 7 - } - }, - "range": [ - 1699, - 1700 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 57, - "column": 7 - }, - "end": { - "line": 57, - "column": 19 - } - }, - "range": [ - 1700, - 1712 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 57, - "column": 19 - }, - "end": { - "line": 57, - "column": 20 - } - }, - "range": [ - 1712, - 1713 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 57, - "column": 20 - }, - "end": { - "line": 57, - "column": 21 - } - }, - "range": [ - 1713, - 1714 - ] - }, - { - "type": "String", - "value": "'async method'", - "loc": { - "start": { - "line": 57, - "column": 21 - }, - "end": { - "line": 57, - "column": 35 - } - }, - "range": [ - 1714, - 1728 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 57, - "column": 35 - }, - "end": { - "line": 57, - "column": 36 - } - }, - "range": [ - 1728, - 1729 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 57, - "column": 36 - }, - "end": { - "line": 57, - "column": 37 - } - }, - "range": [ - 1729, - 1730 - ] - }, - { - "type": "Identifier", - "value": "asyncMethod", - "loc": { - "start": { - "line": 57, - "column": 38 - }, - "end": { - "line": 57, - "column": 49 - } - }, - "range": [ - 1731, - 1742 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 57, - "column": 49 - }, - "end": { - "line": 57, - "column": 50 - } - }, - "range": [ - 1742, - 1743 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 57, - "column": 50 - }, - "end": { - "line": 57, - "column": 51 - } - }, - "range": [ - 1743, - 1744 - ] - }, - { - "type": "String", - "value": "'body'", - "loc": { - "start": { - "line": 57, - "column": 52 - }, - "end": { - "line": 57, - "column": 58 - } - }, - "range": [ - 1745, - 1751 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 57, - "column": 58 - }, - "end": { - "line": 57, - "column": 59 - } - }, - "range": [ - 1751, - 1752 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 57, - "column": 59 - }, - "end": { - "line": 57, - "column": 60 - } - }, - "range": [ - 1752, - 1753 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 58, - "column": 6 - } - }, - "range": [ - 1754, - 1760 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 58, - "column": 6 - }, - "end": { - "line": 58, - "column": 7 - } - }, - "range": [ - 1760, - 1761 - ] - }, - { - "type": "Identifier", - "value": "compareArray", - "loc": { - "start": { - "line": 58, - "column": 7 - }, - "end": { - "line": 58, - "column": 19 - } - }, - "range": [ - 1761, - 1773 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 58, - "column": 19 - }, - "end": { - "line": 58, - "column": 20 - } - }, - "range": [ - 1773, - 1774 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 58, - "column": 20 - }, - "end": { - "line": 58, - "column": 21 - } - }, - "range": [ - 1774, - 1775 - ] - }, - { - "type": "String", - "value": "'async method'", - "loc": { - "start": { - "line": 58, - "column": 21 - }, - "end": { - "line": 58, - "column": 35 - } - }, - "range": [ - 1775, - 1789 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 58, - "column": 35 - }, - "end": { - "line": 58, - "column": 36 - } - }, - "range": [ - 1789, - 1790 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 58, - "column": 36 - }, - "end": { - "line": 58, - "column": 37 - } - }, - "range": [ - 1790, - 1791 - ] - }, - { - "type": "Identifier", - "value": "asyncMethodParam", - "loc": { - "start": { - "line": 58, - "column": 38 - }, - "end": { - "line": 58, - "column": 54 - } - }, - "range": [ - 1792, - 1808 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 58, - "column": 54 - }, - "end": { - "line": 58, - "column": 55 - } - }, - "range": [ - 1808, - 1809 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 58, - "column": 55 - }, - "end": { - "line": 58, - "column": 56 - } - }, - "range": [ - 1809, - 1810 - ] - }, - { - "type": "String", - "value": "'parameter'", - "loc": { - "start": { - "line": 58, - "column": 57 - }, - "end": { - "line": 58, - "column": 68 - } - }, - "range": [ - 1811, - 1822 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 58, - "column": 68 - }, - "end": { - "line": 58, - "column": 69 - } - }, - "range": [ - 1822, - 1823 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 58, - "column": 69 - }, - "end": { - "line": 58, - "column": 70 - } - }, - "range": [ - 1823, - 1824 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-methods.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-methods.src.js deleted file mode 100644 index 66862156..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-arguments-methods.src.js +++ /dev/null @@ -1,58 +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 identifier `arguments` is not restricted within method forms -info: | - ClassStaticBlockBody : ClassStaticBlockStatementList - - - It is a Syntax Error if ContainsArguments of ClassStaticBlockStatementList - is true. -includes: [compareArray.js] -features: [class-static-block] ----*/ - -var instance; -var method, methodParam; -var getter; -var setter, setterParam; -var genMethod, genMethodParam; -var asyncMethod, asyncMethodParam; - -class C { - static { - instance = new class { - method({test262 = methodParam = arguments}) { - method = arguments; - } - get accessor() { - getter = arguments; - } - set accessor({test262 = setterParam = arguments}) { - setter = arguments; - } - *gen({test262 = genMethodParam = arguments}) { - genMethod = arguments; - } - async async({test262 = asyncMethodParam = arguments}) { - asyncMethod = arguments; - } - }(); - } -} - -instance.method('method'); -instance.accessor; -instance.accessor = 'setter'; -instance.gen('generator method').next(); -instance.async('async method'); - -assert(compareArray(['method'], method), 'body'); -assert(compareArray(['method'], methodParam), 'parameter'); -assert(compareArray([], getter), 'body'); -assert(compareArray(['setter'], setter), 'body'); -assert(compareArray(['setter'], setterParam), 'parameter'); -assert(compareArray(['generator method'], genMethod), 'body'); -assert(compareArray(['generator method'], genMethodParam), 'parameter'); -assert(compareArray(['async method'], asyncMethod), 'body'); -assert(compareArray(['async method'], asyncMethodParam), 'parameter'); 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-const-static-init-await-binding-valid.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-const-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-const-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-const-static-init-await-binding-valid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-valid.result.js deleted file mode 100644 index 440fac84..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-valid.result.js +++ /dev/null @@ -1,588 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 550 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 550 - ], - "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, - 550 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 502, - 548 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 33 - } - }, - "range": [ - 515, - 544 - ], - "expression": { - "type": "ArrowFunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 31 - } - }, - "range": [ - 516, - 542 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 11 - }, - "end": { - "line": 16, - "column": 31 - } - }, - "range": [ - 522, - 542 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 524, - 540 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 16, - "column": 19 - }, - "end": { - "line": 16, - "column": 28 - } - }, - "range": [ - 530, - 539 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 19 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 530, - 535 - ], - "name": "await" - }, - "init": { - "type": "Literal", - "loc": { - "start": { - "line": 16, - "column": 27 - }, - "end": { - "line": 16, - "column": 28 - } - }, - "range": [ - 538, - 539 - ], - "value": 0, - "raw": "0" - } - } - ], - "kind": "const" - } - ] - } - } - } - ] - } - ] - } - } - ], - "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": "const", - "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": "Numeric", - "value": "0", - "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": 32 - }, - "end": { - "line": 16, - "column": 33 - } - }, - "range": [ - 543, - 544 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 547, - 548 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 549, - 550 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-valid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-const-static-init-await-binding-valid.src.js deleted file mode 100644 index 64592782..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-const-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 { - (() => { 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-let-static-init-await-binding-valid.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-valid.module-result.js deleted file mode 100644 index dad0ac95..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-valid.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 528, - "lineNumber": 16, - "column": 18, - "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-let-static-init-await-binding-valid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-valid.result.js deleted file mode 100644 index 5796e5c8..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-valid.result.js +++ /dev/null @@ -1,534 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 544 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 544 - ], - "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, - 544 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 502, - 542 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 27 - } - }, - "range": [ - 515, - 538 - ], - "expression": { - "type": "ArrowFunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 516, - 536 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 11 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 522, - 536 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 524, - 534 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 528, - 533 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 528, - 533 - ], - "name": "await" - }, - "init": null - } - ], - "kind": "let" - } - ] - } - } - } - ] - } - ] - } - } - ], - "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": "let", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 16 - } - }, - "range": [ - 524, - 527 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 528, - 533 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 22 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 533, - 534 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 24 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 535, - 536 - ] - }, - { - "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": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 541, - 542 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 543, - 544 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-valid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-static-init-await-binding-valid.src.js deleted file mode 100644 index 95789d62..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-let-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 { - (() => { 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-try-static-init-await-binding-valid.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-valid.module-result.js deleted file mode 100644 index d56e73ce..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-valid.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 538, - "lineNumber": 16, - "column": 28, - "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-try-static-init-await-binding-valid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-valid.result.js deleted file mode 100644 index 202840d9..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-valid.result.js +++ /dev/null @@ -1,675 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 557 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 557 - ], - "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, - 557 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 502, - 555 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 40 - } - }, - "range": [ - 515, - 551 - ], - "expression": { - "type": "ArrowFunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 38 - } - }, - "range": [ - 516, - 549 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 11 - }, - "end": { - "line": 16, - "column": 38 - } - }, - "range": [ - 522, - 549 - ], - "body": [ - { - "type": "TryStatement", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 36 - } - }, - "range": [ - 524, - 547 - ], - "block": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "range": [ - 528, - 530 - ], - "body": [] - }, - "handler": { - "type": "CatchClause", - "loc": { - "start": { - "line": 16, - "column": 20 - }, - "end": { - "line": 16, - "column": 36 - } - }, - "range": [ - 531, - 547 - ], - "param": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 27 - }, - "end": { - "line": 16, - "column": 32 - } - }, - "range": [ - 538, - 543 - ], - "name": "await" - }, - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 34 - }, - "end": { - "line": 16, - "column": 36 - } - }, - "range": [ - 545, - 547 - ], - "body": [] - } - }, - "finalizer": null - } - ] - } - } - } - ] - } - ] - } - } - ], - "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": "try", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 16 - } - }, - "range": [ - 524, - 527 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 18 - } - }, - "range": [ - 528, - 529 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 18 - }, - "end": { - "line": 16, - "column": 19 - } - }, - "range": [ - 529, - 530 - ] - }, - { - "type": "Keyword", - "value": "catch", - "loc": { - "start": { - "line": 16, - "column": 20 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 531, - 536 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 16, - "column": 26 - }, - "end": { - "line": 16, - "column": 27 - } - }, - "range": [ - 537, - 538 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 27 - }, - "end": { - "line": 16, - "column": 32 - } - }, - "range": [ - 538, - 543 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 32 - }, - "end": { - "line": 16, - "column": 33 - } - }, - "range": [ - 543, - 544 - ] - }, - { - "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": 16, - "column": 37 - }, - "end": { - "line": 16, - "column": 38 - } - }, - "range": [ - 548, - 549 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 16, - "column": 38 - }, - "end": { - "line": 16, - "column": 39 - } - }, - "range": [ - 549, - 550 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 39 - }, - "end": { - "line": 16, - "column": 40 - } - }, - "range": [ - 550, - 551 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 554, - 555 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 556, - 557 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-valid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-static-init-await-binding-valid.src.js deleted file mode 100644 index e72b12d1..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-try-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 { - (() => { 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-ary-ptrn-elem-id-static-init-await-valid.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-valid.module-result.js deleted file mode 100644 index 6cd74794..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-valid.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 529, - "lineNumber": 16, - "column": 19, - "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-variable-dstr-ary-ptrn-elem-id-static-init-await-valid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-valid.result.js deleted file mode 100644 index 8b7e8309..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-valid.result.js +++ /dev/null @@ -1,660 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 551 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 551 - ], - "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, - 551 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 502, - 549 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 34 - } - }, - "range": [ - 515, - 545 - ], - "expression": { - "type": "ArrowFunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 32 - } - }, - "range": [ - 516, - 543 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 11 - }, - "end": { - "line": 16, - "column": 32 - } - }, - "range": [ - 522, - 543 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 30 - } - }, - "range": [ - 524, - 541 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 528, - 540 - ], - "id": { - "type": "ArrayPattern", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 528, - 535 - ], - "elements": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 18 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 529, - 534 - ], - "name": "await" - } - ] - }, - "init": { - "type": "ArrayExpression", - "loc": { - "start": { - "line": 16, - "column": 27 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 538, - 540 - ], - "elements": [] - } - } - ], - "kind": "var" - } - ] - } - } - } - ] - } - ] - } - } - ], - "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": "var", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 16 - } - }, - "range": [ - 524, - 527 - ] - }, - { - "type": "Punctuator", - "value": "[", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 18 - } - }, - "range": [ - 528, - 529 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 18 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 529, - 534 - ] - }, - { - "type": "Punctuator", - "value": "]", - "loc": { - "start": { - "line": 16, - "column": 23 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 534, - 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": 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": 29 - }, - "end": { - "line": 16, - "column": 30 - } - }, - "range": [ - 540, - 541 - ] - }, - { - "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": 32 - }, - "end": { - "line": 16, - "column": 33 - } - }, - "range": [ - 543, - 544 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 33 - }, - "end": { - "line": 16, - "column": 34 - } - }, - "range": [ - 544, - 545 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 548, - 549 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 550, - 551 - ] - } - ] -}; \ 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-valid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-valid.src.js deleted file mode 100644 index d6f2c5d9..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-ary-ptrn-elem-id-static-init-await-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 { - (() => { 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-dstr-obj-ptrn-elem-id-static-init-await-valid.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-valid.module-result.js deleted file mode 100644 index 6cd74794..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-valid.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 529, - "lineNumber": 16, - "column": 19, - "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-variable-dstr-obj-ptrn-elem-id-static-init-await-valid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-valid.result.js deleted file mode 100644 index 2a6893bd..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-valid.result.js +++ /dev/null @@ -1,699 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 551 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 551 - ], - "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, - 551 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 502, - 549 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 34 - } - }, - "range": [ - 515, - 545 - ], - "expression": { - "type": "ArrowFunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 32 - } - }, - "range": [ - 516, - 543 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 11 - }, - "end": { - "line": 16, - "column": 32 - } - }, - "range": [ - 522, - 543 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 30 - } - }, - "range": [ - 524, - 541 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 528, - 540 - ], - "id": { - "type": "ObjectPattern", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 528, - 535 - ], - "properties": [ - { - "type": "Property", - "loc": { - "start": { - "line": 16, - "column": 18 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 529, - 534 - ], - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 18 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 529, - 534 - ], - "name": "await" - }, - "kind": "init", - "value": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 18 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 529, - 534 - ], - "name": "await" - } - } - ] - }, - "init": { - "type": "ObjectExpression", - "loc": { - "start": { - "line": 16, - "column": 27 - }, - "end": { - "line": 16, - "column": 29 - } - }, - "range": [ - 538, - 540 - ], - "properties": [] - } - } - ], - "kind": "var" - } - ] - } - } - } - ] - } - ] - } - } - ], - "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": "var", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 16 - } - }, - "range": [ - 524, - 527 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 18 - } - }, - "range": [ - 528, - 529 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 18 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 529, - 534 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 23 - }, - "end": { - "line": 16, - "column": 24 - } - }, - "range": [ - 534, - 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": 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": 29 - }, - "end": { - "line": 16, - "column": 30 - } - }, - "range": [ - 540, - 541 - ] - }, - { - "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": 32 - }, - "end": { - "line": 16, - "column": 33 - } - }, - "range": [ - 543, - 544 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 33 - }, - "end": { - "line": 16, - "column": 34 - } - }, - "range": [ - 544, - 545 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 548, - 549 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 550, - 551 - ] - } - ] -}; \ 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-valid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-valid.src.js deleted file mode 100644 index f71e0567..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-dstr-obj-ptrn-elem-id-static-init-await-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 { - (() => { 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; - } -} diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-valid.module-result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-valid.module-result.js deleted file mode 100644 index dad0ac95..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-valid.module-result.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - "index": 528, - "lineNumber": 16, - "column": 18, - "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-variable-static-init-await-binding-valid.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-valid.result.js deleted file mode 100644 index 8090c27b..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-valid.result.js +++ /dev/null @@ -1,534 +0,0 @@ -export default { - "type": "Program", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 544 - ], - "body": [ - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 14, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 490, - 544 - ], - "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, - 544 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 502, - 542 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 16, - "column": 27 - } - }, - "range": [ - 515, - 538 - ], - "expression": { - "type": "ArrowFunctionExpression", - "loc": { - "start": { - "line": 16, - "column": 5 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 516, - 536 - ], - "id": null, - "expression": false, - "generator": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 16, - "column": 11 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 522, - 536 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 524, - 534 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 528, - 533 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 528, - 533 - ], - "name": "await" - }, - "init": null - } - ], - "kind": "var" - } - ] - } - } - } - ] - } - ] - } - } - ], - "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": "var", - "loc": { - "start": { - "line": 16, - "column": 13 - }, - "end": { - "line": 16, - "column": 16 - } - }, - "range": [ - 524, - 527 - ] - }, - { - "type": "Identifier", - "value": "await", - "loc": { - "start": { - "line": 16, - "column": 17 - }, - "end": { - "line": 16, - "column": 22 - } - }, - "range": [ - 528, - 533 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 16, - "column": 22 - }, - "end": { - "line": 16, - "column": 23 - } - }, - "range": [ - 533, - 534 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 16, - "column": 24 - }, - "end": { - "line": 16, - "column": 25 - } - }, - "range": [ - 535, - 536 - ] - }, - { - "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": 17, - "column": 2 - }, - "end": { - "line": 17, - "column": 3 - } - }, - "range": [ - 541, - 542 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 18, - "column": 0 - }, - "end": { - "line": 18, - "column": 1 - } - }, - "range": [ - 543, - 544 - ] - } - ] -}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-valid.src.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-static-init-await-binding-valid.src.js deleted file mode 100644 index eef43047..00000000 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-variable-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 { - (() => { var await; }); - } -} diff --git a/tests/fixtures/ecma-version/13/modules/top-level-await/top-await.result.js b/tests/fixtures/ecma-version/13/modules/top-level-await/top-await.result.js index d7b70cf0..b2bef7ab 100644 --- a/tests/fixtures/ecma-version/13/modules/top-level-await/top-await.result.js +++ b/tests/fixtures/ecma-version/13/modules/top-level-await/top-await.result.js @@ -87,7 +87,7 @@ export default { } } ], - "sourceType": "script", + "sourceType": "module", "tokens": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/13/regexp-match-indices/regexp-match-indices.result.js b/tests/fixtures/ecma-version/13/regexp-match-indices/regexp-match-indices.result.js index d30ace1d..52e140ac 100644 --- a/tests/fixtures/ecma-version/13/regexp-match-indices/regexp-match-indices.result.js +++ b/tests/fixtures/ecma-version/13/regexp-match-indices/regexp-match-indices.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -68,7 +66,7 @@ export default { ], "name": "re1" }, - "init": conditionalRegex({ + "init": { "type": "Literal", "loc": { "start": { @@ -84,15 +82,13 @@ export default { 12, 24 ], - - // /d flag no supported in Node.js 12 or 14 yet - "value": null, + "value": /a+(z)?/d, "raw": "/a+(z)?/d", "regex": { "pattern": "a+(z)?", "flags": "d" } - }) + } } ], "kind": "const" @@ -195,4 +191,4 @@ export default { ] } ] -}; +}; \ No newline at end of file