[
  [
    "optional-chain",
    "script",
    true,
    "modern",
    "const n = obj?.value ?? 0;"
  ],
  [
    "bigint-separator",
    "script",
    true,
    "modern",
    "let n = 1_000n; n ??= 0n;"
  ],
  [
    "class-fields",
    "script",
    true,
    "modern",
    "class C { #x=1; static { this.ready=true; } get(){ return this.#x; } }"
  ],
  [
    "async-function",
    "script",
    true,
    "modern",
    "async function f(){ await Promise.resolve(); }"
  ],
  [
    "module-import-await",
    "module",
    true,
    "context",
    "import x from './missing.js'; export default await x;"
  ],
  [
    "dynamic-import-script",
    "script",
    true,
    "modern",
    "import('./missing.js');"
  ],
  [
    "dynamic-import-module",
    "module",
    true,
    "modern",
    "import('./missing.js');"
  ],
  [
    "sloppy-params",
    "script",
    true,
    "context",
    "function f(a,a){ return a; }"
  ],
  [
    "sloppy-with",
    "script",
    true,
    "context",
    "with ({x:1}) { x; }"
  ],
  [
    "labeled-break",
    "script",
    true,
    "control",
    "label: { break label; }"
  ],
  [
    "switch-break",
    "script",
    true,
    "control",
    "switch(x){ case 1: break; }"
  ],
  [
    "shadow-binding",
    "script",
    true,
    "binding",
    "let x; { let x; }"
  ],
  [
    "named-regex",
    "script",
    true,
    "regex",
    "const r=/(?<name>a)\\k<name>/u; const n=6/2;"
  ],
  [
    "regex-v",
    "script",
    true,
    "modern",
    "const r=/[a&&b]/v;"
  ],
  [
    "regex-modifiers",
    "script",
    true,
    "modern",
    "const r=/(?i:a)/;"
  ],
  [
    "regex-duplicate-alternatives",
    "script",
    true,
    "modern",
    "const r=/(?<x>a)|(?<x>b)/;"
  ],
  [
    "import-attributes",
    "module",
    true,
    "modern",
    "import data from './a.json' with {type:'json'};"
  ],
  [
    "object-spread",
    "script",
    true,
    "modern",
    "const x={...obj}; const {a,...rest}=x;"
  ],
  [
    "optional-catch",
    "script",
    true,
    "modern",
    "try { f(); } catch {}"
  ],
  [
    "logical-assignment",
    "script",
    true,
    "modern",
    "x ||= 1; y &&= 2; z ??= 3;"
  ],
  [
    "private-in",
    "script",
    true,
    "modern",
    "class C { #x; has(o){ return #x in o; } }"
  ],
  [
    "async-generator",
    "script",
    true,
    "modern",
    "async function* f(){ yield await p; }"
  ],
  [
    "for-await",
    "script",
    true,
    "modern",
    "async function f(){ for await (const x of xs) {} }"
  ],
  [
    "unicode-source",
    "script",
    true,
    "grammar",
    "const greeting='😀'; const café=1;"
  ],
  [
    "asi",
    "script",
    true,
    "grammar",
    "let x=1\nx++"
  ],
  [
    "function-return",
    "script",
    true,
    "control",
    "function f(){return 1;}"
  ],
  [
    "loop-break",
    "script",
    true,
    "control",
    "while(true){break;}"
  ],
  [
    "labeled-continue",
    "script",
    true,
    "control",
    "outer: for(;;){continue outer;}"
  ],
  [
    "module-await",
    "module",
    true,
    "context",
    "await 1;"
  ],
  [
    "module-import-meta",
    "module",
    true,
    "context",
    "import.meta;"
  ],
  [
    "module-export",
    "module",
    true,
    "context",
    "export const x=1;"
  ],
  [
    "regex-constructor-runtime",
    "script",
    true,
    "runtime-control",
    "new RegExp('(');"
  ],
  [
    "undefined-runtime",
    "script",
    true,
    "runtime-control",
    "missingFunction();"
  ],
  [
    "const-assignment-runtime",
    "script",
    true,
    "runtime-control",
    "const x=1; x=2;"
  ],
  [
    "tdz-runtime",
    "script",
    true,
    "runtime-control",
    "let x=x;"
  ],
  [
    "throw-runtime",
    "script",
    true,
    "runtime-control",
    "throw new Error('boom');"
  ],
  [
    "infinite-loop-runtime",
    "script",
    true,
    "runtime-control",
    "while(true){}"
  ],
  [
    "dom-runtime",
    "script",
    true,
    "runtime-control",
    "document.querySelector('#missing').remove();"
  ],
  [
    "empty-script",
    "script",
    true,
    "grammar",
    ""
  ],
  [
    "empty-module",
    "module",
    true,
    "grammar",
    ""
  ],
  [
    "missing-expression",
    "script",
    false,
    "grammar",
    "const x=;"
  ],
  [
    "missing-brace",
    "script",
    false,
    "grammar",
    "function f() {"
  ],
  [
    "unclosed-string",
    "script",
    false,
    "grammar",
    "const x='oops;"
  ],
  [
    "unclosed-template",
    "script",
    false,
    "grammar",
    "const x=`hello ${x};"
  ],
  [
    "top-return",
    "script",
    false,
    "control",
    "return 1;"
  ],
  [
    "module-return",
    "module",
    false,
    "control",
    "return 1;"
  ],
  [
    "top-break",
    "script",
    false,
    "control",
    "break;"
  ],
  [
    "top-continue",
    "script",
    false,
    "control",
    "continue;"
  ],
  [
    "bad-continue-label",
    "script",
    false,
    "control",
    "label: {continue label;}"
  ],
  [
    "function-break-boundary",
    "script",
    false,
    "control",
    "while(true){ function f(){break;} }"
  ],
  [
    "missing-label",
    "script",
    false,
    "control",
    "break missing;"
  ],
  [
    "duplicate-let",
    "script",
    false,
    "binding",
    "let x; let x;"
  ],
  [
    "let-var-conflict",
    "script",
    false,
    "binding",
    "let x; var x;"
  ],
  [
    "strict-duplicate-params",
    "script",
    false,
    "strict",
    "'use strict'; function f(a,a){}"
  ],
  [
    "module-duplicate-params",
    "module",
    false,
    "strict",
    "function f(a,a){}"
  ],
  [
    "strict-nonsimple-params",
    "script",
    false,
    "strict",
    "function f(a=1){'use strict';}"
  ],
  [
    "strict-with",
    "script",
    false,
    "strict",
    "'use strict'; with({}){}"
  ],
  [
    "module-with",
    "module",
    false,
    "strict",
    "with({}){}"
  ],
  [
    "strict-delete",
    "script",
    false,
    "strict",
    "'use strict'; delete x;"
  ],
  [
    "strict-eval-binding",
    "script",
    false,
    "strict",
    "'use strict'; let eval;"
  ],
  [
    "script-await",
    "script",
    false,
    "context",
    "await 1;"
  ],
  [
    "script-static-import",
    "script",
    false,
    "context",
    "import x from 'x';"
  ],
  [
    "script-import-meta",
    "script",
    false,
    "context",
    "import.meta;"
  ],
  [
    "script-export",
    "script",
    false,
    "context",
    "export const x=1;"
  ],
  [
    "missing-export",
    "module",
    false,
    "binding",
    "export {missing};"
  ],
  [
    "missing-private",
    "script",
    false,
    "binding",
    "class C { m(){return this.#missing;} }"
  ],
  [
    "regex-pattern",
    "script",
    false,
    "regex",
    "const r=/(/;"
  ],
  [
    "regex-range",
    "script",
    false,
    "regex",
    "const r=/[z-a]/;"
  ],
  [
    "regex-duplicate-flags",
    "script",
    false,
    "regex",
    "const r=/a/gg;"
  ],
  [
    "regex-unknown-flags",
    "script",
    false,
    "regex",
    "const r=/a/z;"
  ],
  [
    "regex-conflicting-flags",
    "script",
    false,
    "regex",
    "const r=/a/uv;"
  ],
  [
    "nullish-mixing",
    "script",
    false,
    "grammar",
    "const x=a ?? b || c;"
  ],
  [
    "optional-assignment",
    "script",
    false,
    "grammar",
    "obj?.x=1;"
  ],
  [
    "jsx",
    "script",
    false,
    "language",
    "const x=<div/>;"
  ],
  [
    "typescript",
    "script",
    false,
    "language",
    "const x: number=1;"
  ],
  [
    "const-no-init",
    "script",
    false,
    "grammar",
    "const x;"
  ],
  [
    "try-no-handler",
    "script",
    false,
    "grammar",
    "try {}"
  ],
  [
    "duplicate-constructor",
    "script",
    false,
    "binding",
    "class C {constructor(){} constructor(){}}"
  ],
  [
    "super-outside",
    "script",
    false,
    "context",
    "super.x;"
  ],
  [
    "new-target-outside",
    "script",
    false,
    "context",
    "new.target;"
  ],
  [
    "throw-newline",
    "script",
    false,
    "grammar",
    "throw\nnew Error();"
  ],
  [
    "unicode-before-error",
    "script",
    false,
    "grammar",
    "const emoji='😀'; const x=;"
  ],
  [
    "scope-catch-pattern-var-conflict",
    "script",
    false,
    "scope",
    "try {} catch ({x}) { var x; }"
  ],
  [
    "scope-catch-pattern-nested-function-var",
    "script",
    true,
    "scope",
    "try {} catch ({x}) { function f() { var x; } }"
  ],
  [
    "scope-parameter-body-let-conflict",
    "script",
    false,
    "binding",
    "function f({x}) { let x; }"
  ],
  [
    "scope-parameter-nested-let-shadow",
    "script",
    true,
    "binding",
    "function f({x}) { { let x; } }"
  ],
  [
    "scope-switch-shared-lexical-conflict",
    "script",
    false,
    "scope",
    "switch (0) { case 0: let x; break; default: let x; }"
  ],
  [
    "scope-switch-block-lexical-shadow",
    "script",
    true,
    "scope",
    "switch (0) { case 0: { let x; break; } default: { let x; } }"
  ],
  [
    "scope-for-head-body-var-conflict",
    "script",
    false,
    "scope",
    "for (let x of []) { { var x; } }"
  ],
  [
    "scope-for-head-body-let-shadow",
    "script",
    true,
    "scope",
    "for (let x of []) { let x; }"
  ],
  [
    "scope-strict-directive-retroactive-arguments-binding",
    "script",
    false,
    "strict",
    "function f(arguments) { 'use strict'; }"
  ],
  [
    "scope-escaped-directive-arguments-binding",
    "script",
    true,
    "strict",
    "function f(arguments) { 'use\\x20strict'; }"
  ],
  [
    "scope-private-accessor-static-instance-conflict",
    "script",
    false,
    "classes",
    "class C { get #x() { return 1; } static set #x(v) {} }"
  ],
  [
    "scope-private-accessor-instance-pair",
    "script",
    true,
    "classes",
    "class C { get #x() { return 1; } set #x(v) {} }"
  ],
  [
    "scope-static-block-arrow-arguments",
    "script",
    false,
    "classes",
    "class C { static { const f = () => arguments; } }"
  ],
  [
    "scope-static-block-function-arguments",
    "script",
    true,
    "classes",
    "class C { static { const f = function () { return arguments; }; } }"
  ],
  [
    "scope-regex-duplicate-names-separate-disjunctions",
    "script",
    false,
    "regex",
    "const r = /(?:(?<x>a)|b)(?:c|(?<x>d))/u;"
  ],
  [
    "scope-regex-duplicate-names-nested-alternatives",
    "script",
    true,
    "regex",
    "const r = /(?:(?<x>a)|(?:b|(?<x>c)))/u;"
  ],
  [
    "scope-regex-v-mixed-set-operators",
    "script",
    false,
    "regex",
    "const r = /[a&&b--c]/v;"
  ],
  [
    "scope-regex-v-nested-set-operators",
    "script",
    true,
    "regex",
    "const r = /[[a&&b]--c]/v;"
  ],
  [
    "scope-module-import-local-collision",
    "module",
    false,
    "binding",
    "import {x} from './missing.js'; const x = 1; export {x};"
  ],
  [
    "scope-module-import-local-alias",
    "module",
    true,
    "binding",
    "import {x as importedX} from './missing.js'; const x = 1; export {x, importedX};"
  ],
  [
    "scope-private-inner-name-not-visible-in-outer",
    "script",
    false,
    "classes",
    "class Outer { make() { return class Inner { #x; }; } read(o) { return o.#x; } }"
  ],
  [
    "scope-private-outer-name-visible-in-inner",
    "script",
    true,
    "classes",
    "class Outer { #x; make() { return class Inner { read(o) { return o.#x; } }; } }"
  ],
  [
    "scope-object-duplicate-prototype-setters",
    "script",
    false,
    "grammar",
    "const o = { __proto__: null, '__proto__': null };"
  ],
  [
    "scope-object-computed-proto-is-data-property",
    "script",
    true,
    "grammar",
    "const o = { __proto__: null, ['__proto__']: null };"
  ],
  [
    "scope-sloppy-arrow-duplicate-parameters",
    "script",
    false,
    "binding",
    "const f = (x, x) => x;"
  ],
  [
    "test262-annexB--language--global-code--if-stmt-else-decl-global-init",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/annex-b-fns/global-init.case\n// - src/annex-b-fns/global/if-stmt-else-decl.template\n/*---\ndescription: Variable binding is initialized to `undefined` in outer scope (IfStatement with a declaration in the second statement position in the global scope)\nesid: sec-functiondeclarations-in-ifstatement-statement-clauses\nflags: [generated, noStrict]\nincludes: [fnGlobalObject.js, propertyHelper.js]\ninfo: |\n    The following rules for IfStatement augment those in 13.6:\n\n    IfStatement[Yield, Return]:\n        if ( Expression[In, ?Yield] ) FunctionDeclaration[?Yield] else Statement[?Yield, ?Return]\n        if ( Expression[In, ?Yield] ) Statement[?Yield, ?Return] else FunctionDeclaration[?Yield]\n        if ( Expression[In, ?Yield] ) FunctionDeclaration[?Yield] else FunctionDeclaration[?Yield]\n        if ( Expression[In, ?Yield] ) FunctionDeclaration[?Yield]\n\n\n    B.3.3.2 Changes to GlobalDeclarationInstantiation\n\n    [...]\n    b. If declaredFunctionOrVarNames does not contain F, then\n       i. Perform ? envRec.CreateGlobalFunctionBinding(F, undefined, false).\n       ii. Append F to declaredFunctionOrVarNames.\n    [...]\n\n---*/\nvar global = fnGlobalObject();\nassert.sameValue(f, undefined, 'binding is initialized to `undefined`');\n\nverifyProperty(global, \"f\", {\n  enumerable: true,\n  writable: true,\n  configurable: false\n});\n\nif (false) ; else function f() {  }\n"
  ],
  [
    "test262-annexB--language--literals--regexp--non-empty-class-ranges-no-dash",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-regular-expressions-patterns\nes6id: B.1.4\ndescription: Extensions to NonemptyClassRangesNoDash production\ninfo: |\n    The production\n    NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates\n    as follows:\n\n    1. Evaluate ClassAtomNoDash to obtain a CharSet A.\n    2. Evaluate ClassAtom to obtain a CharSet B.\n    3. Evaluate ClassRanges to obtain a CharSet C.\n    4. Call CharacterRangeOrUnion(A, B) and let D be the resulting CharSet.\n    5. Return the union of CharSets D and C.\n\n    B.1.4.1.1 Runtime Semantics: CharacterRangeOrUnion Abstract Operation\n\n    1. If Unicode is false, then\n       a. If A does not contain exactly one character or B does not contain\n          exactly one character, then\n          i. Let C be the CharSet containing the single character - U+002D\n             (HYPHEN-MINUS).\n          ii. Return the union of CharSets A, B and C.\n    2. Return CharacterRange(A, B).\n---*/\n\nvar match;\n\nmatch = /[\\d-a]+/.exec(':a0123456789-:');\nassert.sameValue(match[0], 'a0123456789-');\n\nmatch = /[\\d-az]+/.exec(':a0123456789z-:');\nassert.sameValue(match[0], 'a0123456789z-');\n\nmatch = /[%-\\d]+/.exec('&%0123456789-&');\nassert.sameValue(match[0], '%0123456789-');\n\nmatch = /[%-\\dz]+/.exec('&%0123456789z-&');\nassert.sameValue(match[0], '%0123456789z-');\n\nmatch = /[\\s-\\d]+/.exec('& \\t0123456789-&');\nassert.sameValue(match[0], ' \\t0123456789-');\n\nmatch = /[\\s-\\dz]+/.exec('& \\t0123456789z-&');\nassert.sameValue(match[0], ' \\t0123456789z-');\n"
  ],
  [
    "test262-annexB--language--statements--for-in--nonstrict-initializer",
    "script",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-initializers-in-forin-statement-heads\ndescription: >\n    for-in initializers in nonstrict mode\nflags: [noStrict]\n---*/\n(function() {\n  var effects = 0;\n  for (var a = ++effects in {});\n  assert.sameValue(effects, 1);\n})();\n\n\n(function() {\n  var stored;\n  for (var a = 0 in stored = a, {});\n  assert.sameValue(stored, 0);\n})();\n\n\n(function() {\n  for (var a = 0 in {});\n  assert.sameValue(a, 0);\n})();\n\n\n(function() {\n  var effects = 0;\n  var iterations = 0;\n  var stored;\n  for (var a = (++effects, -1) in stored = a, {a: 0, b: 1, c: 2}) {\n    ++iterations;\n  }\n  assert.sameValue(stored, -1, \"Initialized value should be available to RHS\");\n  assert.sameValue(effects, 1, \"Initializer should only be executed once\");\n  assert.sameValue(iterations, 3, \"Loop body should be executed the appropriate number of times\");\n})();\n"
  ],
  [
    "test262-annexB--language--statements--for-in--strict-initializer",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-initializers-in-forin-statement-heads\ndescription: >\n    for-in initializers in strict mode are prohibited\nnegative:\n  phase: parse\n  type: SyntaxError\nflags: [onlyStrict]\n---*/\n\n$DONOTEVALUATE();\n\nfor (var a = 0 in {});\n"
  ],
  [
    "test262-annexB--language--statements--labeled--function-declaration",
    "script",
    true,
    "standards",
    "// Copyright (C) 2011 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 13.1\ndescription: >\n    function declarations in statement position in non-strict mode:\n    label: Statement\nflags: [noStrict]\n---*/\nlabel: function g() {}\n\nlabel1: label2: function f() {}\n"
  ],
  [
    "test262-annexB--language--statements--try--catch-redeclared-var-statement-captured",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (c) 2012 Ecma International.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nes5id: 12.14-2\nes6id: B.3.5\ndescription: >\n    catch doesn't change declaration scope - var initializer in catch\n    with same name as catch parameter changes parameter\n---*/\n\n  function capturedFoo() {return foo};\n  foo = \"prior to throw\";\n  try {\n    throw new Error();\n  }\n  catch (foo) {\n    var foo = \"initializer in catch\";\n  }\n\nassert.sameValue(capturedFoo(), \"prior to throw\");\n"
  ],
  [
    "test262-built-ins--RegExp--duplicate-flags",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright 2017 the V8 project authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: |\n    RegExpInitialize ( obj, pattern, flags )\n      5. If F contains any code unit other than \"g\", \"i\", \"m\", \"s\", \"u\", or \"y\" or if it contains the same code unit more than once, throw a SyntaxError exception.\nesid: sec-regexpinitialize\ndescription: Check that duplicate RegExp flags are disallowed\nfeatures: [regexp-dotall, regexp-match-indices]\n---*/\n\nnew RegExp(\"\", \"mig\"); // single g will not throw SyntaxError\nassert.throws(SyntaxError, () => new RegExp(\"\", \"migg\"), \"duplicate g\");\n\nnew RegExp(\"\", \"i\"); // single i will not throw SyntaxError\nassert.throws(SyntaxError, () => new RegExp(\"\", \"ii\"), \"duplicate i\");\n\nnew RegExp(\"\", \"m\"); // single m will not throw SyntaxError\nassert.throws(SyntaxError, () => new RegExp(\"\", \"mm\"), \"duplicate m\");\n\nnew RegExp(\"\", \"s\"); // single s will not throw SyntaxError\nassert.throws(SyntaxError, () => new RegExp(\"\", \"ss\"), \"duplicate s\");\n\nnew RegExp(\"\", \"u\"); // single u will not throw SyntaxError\nassert.throws(SyntaxError, () => new RegExp(\"\", \"uu\"), \"duplicate u\");\n\nnew RegExp(\"\", \"y\"); // single y will not throw SyntaxError\nassert.throws(SyntaxError, () => new RegExp(\"\", \"yy\"), \"duplicate y\");\n\nnew RegExp(\"\", \"d\"); // single d will not throw SyntaxError\nassert.throws(SyntaxError, () => new RegExp(\"\", \"dd\"), \"duplicate d\");\n"
  ],
  [
    "test262-built-ins--RegExp--is-a-constructor",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2020 Rick Waldron. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-ecmascript-standard-built-in-objects\ndescription: >\n  The RegExp constructor implements [[Construct]]\ninfo: |\n  IsConstructor ( argument )\n\n  The abstract operation IsConstructor takes argument argument (an ECMAScript language value).\n  It determines if argument is a function object with a [[Construct]] internal method.\n  It performs the following steps when called:\n\n  If Type(argument) is not Object, return false.\n  If argument has a [[Construct]] internal method, return true.\n  Return false.\nincludes: [isConstructor.js]\nfeatures: [Reflect.construct]\n---*/\n\nassert.sameValue(isConstructor(RegExp), true, 'isConstructor(RegExp) must return true');\nnew RegExp('');\n  \n"
  ],
  [
    "test262-built-ins--RegExp--match-indices--indices-array-properties",
    "script",
    true,
    "standards",
    "// Copyright 2019 Ron Buckton. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: The properties of the \"indices\" array are created with CreateDataProperty.\nincludes: [propertyHelper.js]\nesid: sec-makeindicesarray\nfeatures: [regexp-match-indices]\ninfo: |\n  MakeIndicesArray ( S, indices, groupNames, hasGroups )\n    13. For each integer _i_ such that _i_ >= 0 and _i_ < _n_, do\n      d. Perform ! CreateDataProperty(_A_, ! ToString(_n_), _matchIndicesArray_).\n---*/\n\nlet input = \"abcd\";\nlet match = /b(c)/d.exec(input);\nlet indices = match.indices;\n\nverifyProperty(indices, '0', {\n  enumerable: true,\n  configurable: true,\n  writable: true\n});\n\nverifyProperty(indices, '1', {\n  enumerable: true,\n  configurable: true,\n  writable: true\n});\n"
  ],
  [
    "test262-built-ins--RegExp--named-groups--duplicate-names-match-indices",
    "script",
    true,
    "standards",
    "// Copyright 2022 Kevin Gibbons. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: match indices with duplicate named capture groups\nesid: sec-makematchindicesindexpairarray\nfeatures: [regexp-duplicate-named-groups, regexp-match-indices]\nincludes: [compareArray.js]\n---*/\n\nlet indices = \"..ab\".match(/(?<x>a)|(?<x>b)/d).indices;\nassert.compareArray(indices.groups.x, [2, 3]);\n\nindices = \"..ba\".match(/(?<x>a)|(?<x>b)/d).indices;\nassert.compareArray(indices.groups.x, [2, 3]);\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--Symbol.matchAll--not-a-constructor",
    "script",
    true,
    "standards",
    "// Copyright (C) 2020 Rick Waldron. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-ecmascript-standard-built-in-objects\ndescription: >\n  RegExp.prototype[Symbol.matchAll] does not implement [[Construct]], is not new-able\ninfo: |\n  ECMAScript Function Objects\n\n  Built-in function objects that are not identified as constructors do not\n  implement the [[Construct]] internal method unless otherwise specified in\n  the description of a particular function.\n\n  sec-evaluatenew\n\n  ...\n  7. If IsConstructor(constructor) is false, throw a TypeError exception.\n  ...\nincludes: [isConstructor.js]\nfeatures: [Reflect.construct, Symbol, Symbol.match, Symbol.matchAll, arrow-function]\n---*/\n\nassert.sameValue(\n  isConstructor(RegExp.prototype[Symbol.matchAll]),\n  false,\n  'isConstructor(RegExp.prototype[Symbol.matchAll]) must return false'\n);\n\nassert.throws(TypeError, () => {\n  let re = new RegExp(''); new re[Symbol.matchAll]();\n});\n\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--Symbol.replace--result-coerce-index-undefined",
    "script",
    true,
    "standards",
    "// Copyright (C) 2020 Alexey Shvayka. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-regexp.prototype-@@replace\ndescription: >\n  Integer coercion of \"index\" property of the value returned by RegExpExec.\n  (undefined value)\ninfo: |\n  RegExp.prototype [ @@replace ] ( string, replaceValue )\n\n  [...]\n  14. For each result in results, do\n    [...]\n    e. Let position be ? ToInteger(? Get(result, \"index\")).\n    [...]\n\n  ToInteger ( argument )\n\n  1. Let number be ? ToNumber(argument).\n  2. If number is NaN, return +0.\nfeatures: [Symbol.toPrimitive, Symbol.replace]\n---*/\n\nvar index = {};\nvar toPrimitiveHint;\nindex[Symbol.toPrimitive] = function(hint) {\n  toPrimitiveHint = hint;\n};\n\nvar r = /./;\nr.exec = function() {\n  return {\n    length: 1,\n    0: 'a',\n    index: index,\n  };\n};\n\nassert.sameValue(r[Symbol.replace]('ab', '$`'), 'b');\nassert.sameValue(toPrimitiveHint, 'number');\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--Symbol.replace--subst-capture-idx-2",
    "script",
    true,
    "standards",
    "// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: >\n    Substitution pattern: two-digit capturing group reference\nes6id: 21.2.5.8\ninfo: |\n    16. Repeat, for each result in results,\n        [...]\n        m. If functionalReplace is true, then\n           [...]\n        n. Else,\n           i. Let replacement be GetSubstitution(matched, S, position,\n              captures, replaceValue).\n        [...]\n\n    21.1.3.14.1 Runtime Semantics: GetSubstitution\n\n    Code units:\n    0x0024, N, N\n    Where 0x0030 ≤ N ≤ 0x0039\n\n    Unicode Characters:\n    $nn where\n    n is one of 0 1 2 3 4 5 6 7 8 9\n\n    Replacement text:\n    The nnth element of captures, where nn is a two-digit decimal number in the\n    range 01 to 99. If nn≤m and the nnth element of captures is undefined, use\n    the empty String instead. If nn is 00 or nn>m, no replacement is done.\nfeatures: [Symbol.replace]\n---*/\n\nassert.sameValue(\n  /b(c)(z)?(.)/[Symbol.replace]('abcde', '[$01$02$03]'), 'a[cd]e'\n);\n\nassert.sameValue(\n  /b(c)(z)?(.)/[Symbol.replace]('abcde', '[$01$02$03$04$00]'), 'a[cd$04$00]e'\n);\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--Symbol.search--coerce-string-err",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nes6id: 21.2.5.9\ndescription: Behavior when error thrown while coercing `string` argument\ninfo: |\n    [...]\n    3. Let S be ToString(string).\n    4. ReturnIfAbrupt(S).\nfeatures: [Symbol.search]\n---*/\n\nvar uncoercibleObj = {\n  toString: function() {\n    throw new Test262Error();\n  }\n};\n\nassert.throws(Test262Error, function() {\n  /./[Symbol.search](uncoercibleObj);\n});\n\nassert.throws(TypeError, function() {\n  /./[Symbol.search](Symbol.search);\n});\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--exec--S15.10.6.2_A1_T1",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: |\n    RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and\n    returns an Array object containing the results of the match, or null if the string did not match\nes5id: 15.10.6.2_A1_T1\ndescription: String is \"123\" and RegExp is /1|12/\n---*/\n\nvar __executed = /1|12/.exec(\"123\");\n\nvar __expected = [\"1\"];\n__expected.index=0;\n__expected.input=\"123\";\n\nassert.sameValue(\n  __executed instanceof Array,\n  true,\n  'The result of evaluating (__executed instanceof Array) is expected to be true'\n);\n\nassert.sameValue(\n  __executed.length,\n  __expected.length,\n  'The value of __executed.length is expected to equal the value of __expected.length'\n);\n\nassert.sameValue(\n  __executed.index,\n  __expected.index,\n  'The value of __executed.index is expected to equal the value of __expected.index'\n);\n\nassert.sameValue(\n  __executed.input,\n  __expected.input,\n  'The value of __executed.input is expected to equal the value of __expected.input'\n);\n\nfor(var index=0; index<__expected.length; index++) {\n  assert.sameValue(\n    __executed[index],\n    __expected[index],\n    'The value of __executed[index] is expected to equal the value of __expected[index]'\n  );\n}\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--exec--duplicate-named-indices-groups-properties",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright 2022 Igalia, S.L. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: Properties on indices.groups object with duplicate named capture groups\nesid: prod-GroupSpecifier\nfeatures: [regexp-duplicate-named-groups, regexp-match-indices]\nincludes: [compareArray.js]\n---*/\n\nconst matcher = /(?:(?<x>a)|(?<y>a)(?<x>b))(?:(?<z>c)|(?<z>d))/d;\n\nconst threeMatchResult = matcher.exec(\"abc\");\nassert.compareArray(threeMatchResult.indices.groups.x, [1, 2], \"group x matches b\");\nassert.compareArray(threeMatchResult.indices.groups.y, [0, 1], \"group y matches a\");\nassert.compareArray(threeMatchResult.indices.groups.z, [2, 3], \"group z matches c\");\nassert.compareArray(\n  Object.keys(threeMatchResult.indices.groups),\n  [\"x\", \"y\", \"z\"],\n  \"Properties of groups are ordered in RegExp source order despite y matching before x in this alternative\"\n);\n\nconst twoMatchResult = matcher.exec(\"ad\");\nassert.compareArray(twoMatchResult.indices.groups.x, [0, 1], \"group x matches a\");\nassert.sameValue(twoMatchResult.indices.groups.y, undefined, \"group y does not match\");\nassert.compareArray(twoMatchResult.indices.groups.z, [1, 2], \"group z matches d\");\nassert.compareArray(\n  Object.keys(twoMatchResult.indices.groups),\n  [\"x\", \"y\", \"z\"],\n  \"y is still present on groups object, in the right order, despite not matching\"\n);\n\nconst iteratedMatcher = /(?:(?:(?<x>a)|(?<x>b)|c)\\k<x>){2}/d;\n\nconst matchedInPrevIterationResult = iteratedMatcher.exec(\"aac\");\nassert.sameValue(matchedInPrevIterationResult.indices.groups.x, undefined, \"group x does not match in the last iteration\");\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--flags--coercion-ignoreCase",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 Aleksey Shvayka. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-get-regexp.prototype.flags\ndescription: Boolean coercion of the ignoreCase property\ninfo: |\n  get RegExp.prototype.flags\n\n  ...\n  6. Let ignoreCase be ToBoolean(? Get(R, \"ignoreCase\")).\n  ...\nfeatures: [Symbol]\n---*/\n\nvar get = Object.getOwnPropertyDescriptor(RegExp.prototype, \"flags\").get;\n\nvar r = {};\n\nr.ignoreCase = undefined;\nassert.sameValue(get.call(r), \"\", \"ignoreCase: undefined\");\n\nr.ignoreCase = null;\nassert.sameValue(get.call(r), \"\", \"ignoreCase: null\");\n\nr.ignoreCase = NaN;\nassert.sameValue(get.call(r), \"\", \"ignoreCase: NaN\");\n\nr.ignoreCase = \"\";\nassert.sameValue(get.call(r), \"\", \"ignoreCase: the empty string\");\n\nr.ignoreCase = \"string\";\nassert.sameValue(get.call(r), \"i\", \"ignoreCase: string\");\n\nr.ignoreCase = 86;\nassert.sameValue(get.call(r), \"i\", \"ignoreCase: 86\");\n\nr.ignoreCase = Symbol();\nassert.sameValue(get.call(r), \"i\", \"ignoreCase: Symbol()\");\n\nr.ignoreCase = [];\nassert.sameValue(get.call(r), \"i\", \"ignoreCase: []\");\n\nr.ignoreCase = {};\nassert.sameValue(get.call(r), \"i\", \"ignoreCase: {}\");\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--global--this-val-non-obj",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-get-regexp.prototype.global\ndescription: A TypeError is thrown when the \"this\" value is not an Object\ninfo: |\n  1. Let R be the this value.\n  2. If Type(R) is not Object, throw a TypeError exception.\nfeatures: [Symbol]\n---*/\n\nvar get = Object.getOwnPropertyDescriptor(RegExp.prototype, 'global').get;\nvar symbol = Symbol();\n\nassert.throws(TypeError, function() {\n  get.call(undefined);\n}, 'undefined');\n\nassert.throws(TypeError, function() {\n  get.call(null);\n}, 'null');\n\nassert.throws(TypeError, function() {\n  get.call(3);\n}, 'number');\n\nassert.throws(TypeError, function() {\n  get.call('string');\n}, 'string');\n\nassert.throws(TypeError, function() {\n  get.call(true);\n}, 'boolean');\n\nassert.throws(TypeError, function() {\n  get.call(symbol);\n}, 'symbol');\n\nassert.throws(TypeError, function() {\n  get.call(4n);\n}, 'bigint');\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--hasIndices--cross-realm",
    "script",
    true,
    "standards",
    "// Copyright (C) 2021 Ron Buckton and the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-get-regexp.prototype.hasindices\ndescription: Invoked on a cross-realm object\ninfo: |\n    get RegExp.prototype.hasIndices\n\n    1. Let R be the this value.\n    2. If Type(R) is not Object, throw a TypeError exception.\n    3. If R does not have an [[OriginalFlags]] internal slot, then\n      a. If SameValue(R, %RegExpPrototype%) is true, return undefined.\n      b. Otherwise, throw a TypeError exception.\nfeatures: [regexp-match-indices, cross-realm]\n---*/\n\nvar hasIndices = Object.getOwnPropertyDescriptor(RegExp.prototype, 'hasIndices').get;\nvar other = $262.createRealm().global;\nvar otherRegExpProto = other.RegExp.prototype;\nvar otherRegExpGetter = Object.getOwnPropertyDescriptor(otherRegExpProto, 'hasIndices').get;\n\nassert.throws(TypeError, function() {\n  hasIndices.call(otherRegExpProto);\n}, 'cross-realm RegExp.prototype');\n\nassert.throws(other.TypeError, function() {\n  otherRegExpGetter.call(RegExp.prototype);\n}, 'cross-realm RegExp.prototype getter method against primary realm RegExp.prototype');\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--hasIndices--this-val-regexp-prototype",
    "script",
    true,
    "standards",
    "// Copyright (C) 2021 Ron Buckton and the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-get-regexp.prototype.hasIndices\ndescription: >\n  Return value of `undefined` when the \"this\" value is the RegExp prototype\n  object\ninfo: |\n  1. Let R be the this value.\n  2. If Type(R) is not Object, throw a TypeError exception.\n  3. If R does not have an [[OriginalFlags]] internal slot, then\n     a. If SameValue(R, %RegExpPrototype%) is true, return undefined.\nfeatures: [regexp-match-indices]\n---*/\n\nvar get = Object.getOwnPropertyDescriptor(RegExp.prototype, \"hasIndices\").get;\n\nassert.sameValue(get.call(RegExp.prototype), undefined);\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--multiline--cross-realm",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-get-regexp.prototype.multiline\ndescription: A TypeError is thrown when the \"this\" value is an invalid cross-realm Object\ninfo: |\n  1. Let R be the this value.\n  2. If Type(R) is not Object, throw a TypeError exception.\n  3. If R does not have an [[OriginalFlags]] internal slot, then\n     a. If SameValue(R, %RegExpPrototype%) is true, return undefined.\n     b. Otherwise, throw a TypeError exception.\nfeatures: [cross-realm]\n---*/\n\nvar get = Object.getOwnPropertyDescriptor(RegExp.prototype, 'multiline').get;\nvar other = $262.createRealm().global;\nvar otherRegExpProto = other.RegExp.prototype;\nvar otherRegExpGetter = Object.getOwnPropertyDescriptor(otherRegExpProto, 'multiline').get;\n\nassert.throws(TypeError, function() {\n  get.call(otherRegExpProto);\n}, 'cross-realm RegExp.prototype');\n\nassert.throws(other.TypeError, function() {\n  otherRegExpGetter.call(RegExp.prototype);\n}, 'cross-realm RegExp.prototype getter method against primary realm RegExp.prototype');\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--source--value-line-terminator",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-get-regexp.prototype.source\ndescription: >\n  Return value can be used to create an equivalent RegExp when the\n  [[OriginalSource]] internal slot contains a LineTerminator\ninfo: |\n  [...]\n  5. Let src be R.[[OriginalSource]].\n  6. Let flags be R.[[OriginalFlags]].\n  7. Return EscapeRegExpPattern(src, flags).\n\n  21.2.3.2.4 Runtime Semantics: EscapeRegExpPattern\n\n  [...] the internal procedure that would result from evaluating S as a\n  Pattern[~U] (Pattern[+U] if F contains \"u\") must behave identically to the\n  internal procedure given by the constructed object's [[RegExpMatcher]]\n  internal slot.\n---*/\n\nvar re = eval('/' + new RegExp('\\n').source + '/');\n\nassert.sameValue(re.test('\\n'), true, 'input: \"\\\\n\"');\nassert.sameValue(re.test('_\\n_'), true, 'input: \"_\\\\n_\"');\nassert.sameValue(re.test('\\\\n'), false, 'input: \"\\\\\\\\n\"');\nassert.sameValue(re.test('\\r'), false, 'input: \"\\\\r\"');\nassert.sameValue(re.test('n'), false, 'input: \"n\"');\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--sticky--prop-desc",
    "script",
    true,
    "standards",
    "// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 21.2.5.12\ndescription: >\n    `sticky` property descriptor\ninfo: |\n    RegExp.prototype.sticky is an accessor property whose set accessor\n    function is undefined.\n---*/\n\nvar desc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'sticky');\n\nassert.sameValue(desc.set, undefined);\nassert.sameValue(typeof desc.get, 'function');\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--unicode--cross-realm",
    "script",
    true,
    "standards",
    "// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: Invoked on a cross-realm object without an [[OriginalFlags]] internal slot\nes6id: 21.2.5.15\ninfo: |\n    21.2.5.15 get RegExp.prototype.unicode\n\n    1. Let R be the this value.\n    2. If Type(R) is not Object, throw a TypeError exception.\n    3. If R does not have an [[OriginalFlags]] internal slot, throw a TypeError\n       exception.\nfeatures: [cross-realm]\n---*/\n\nvar unicode = Object.getOwnPropertyDescriptor(RegExp.prototype, 'unicode').get;\nvar other = $262.createRealm().global;\nvar otherRegExpProto = other.RegExp.prototype;\nvar otherRegExpGetter = Object.getOwnPropertyDescriptor(otherRegExpProto, 'unicode').get;\n\nassert.throws(TypeError, function() {\n  unicode.call(otherRegExpProto);\n}, 'cross-realm RegExp.prototype');\n\nassert.throws(other.TypeError, function() {\n  otherRegExpGetter.call(RegExp.prototype);\n}, 'cross-realm RegExp.prototype getter method against primary realm RegExp.prototype');\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--unicodeSets--breaking-change-from-u-to-v-10",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2023 Mathias Bynens. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Mathias Bynens\ndescription: >\n  Some previously valid patterns with the `u` flag are now expected to\n  throw an early SyntaxError with the `v` flag.\n  https://github.com/tc39/proposal-regexp-v-flag#how-is-the-v-flag-different-from-the-u-flag\nesid: sec-parsepattern\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [regexp-v-flag]\n---*/\n\n$DONOTEVALUATE();\n\n/[!!]/v;\n"
  ],
  [
    "test262-built-ins--RegExp--prototype--unicodeSets--cross-realm",
    "script",
    true,
    "standards",
    "// Copyright (C) 2022 Mathias Bynens, Ron Buckton, and the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-get-regexp.prototype.unicodeSets\ndescription: RegExp#unicodeSets invoked on a cross-realm object\ninfo: |\n    get RegExp.prototype.unicodeSets -> RegExpHasFlag\n\n    1. Let R be the this value.\n    2. If Type(R) is not Object, throw a TypeError exception.\n    3. If R does not have an [[OriginalFlags]] internal slot, then\n      a. If SameValue(R, %RegExpPrototype%) is true, return undefined.\n      b. Otherwise, throw a TypeError exception.\nfeatures: [regexp-v-flag, cross-realm]\n---*/\n\nvar unicodeSets = Object.getOwnPropertyDescriptor(RegExp.prototype, 'unicodeSets').get;\nvar other = $262.createRealm().global;\nvar otherRegExpProto = other.RegExp.prototype;\nvar otherRegExpGetter = Object.getOwnPropertyDescriptor(otherRegExpProto, 'unicodeSets').get;\n\nassert.throws(TypeError, function() {\n  unicodeSets.call(otherRegExpProto);\n}, 'cross-realm RegExp.prototype');\n\nassert.throws(other.TypeError, function() {\n  otherRegExpGetter.call(RegExp.prototype);\n}, 'cross-realm RegExp.prototype getter method against primary realm RegExp.prototype');\n"
  ],
  [
    "test262-built-ins--RegExp--u180e",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 Leonardo Balter. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: prod-CharacterClassEscape\ndescription: >\n  U+180E is no longer a Unicode `Space_Separator` symbol as of Unicode v6.3.0.\ninfo: |\n  21.2.2.12 CharacterClassEscape\n\n  ...\n\n  The production CharacterClassEscape::s evaluates as follows:\n\n  Return the set of characters containing the characters that are on the\n  right-hand side of the WhiteSpace or LineTerminator productions.\n\n  The production CharacterClassEscape::S evaluates as follows:\n\n  Return the set of all characters not included in the set returned by\n  CharacterClassEscape::s .\nfeatures: [u180e]\n---*/\n\nassert.sameValue(\"\\u180E\".replace(/\\s+/g, \"42\"), \"\\u180E\", \"\\\\s should not match U+180E\");\nassert.sameValue(\"\\u180E\".replace(/\\S+/g, \"42\"), \"42\", \"\\\\S matches U+180E\");\n"
  ],
  [
    "test262-language--arguments-object--10.5-1gs",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (c) 2012 Ecma International.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nes5id: 10.5-1gs\ndescription: Strict Mode - arguments cannot be assigned to in a strict function\nnegative:\n  phase: parse\n  type: SyntaxError\nflags: [onlyStrict]\n---*/\n\n$DONOTEVALUATE();\n\n\nfunction f_10_5_1_gs(){\n    arguments = 7;\n}\n"
  ],
  [
    "test262-language--arguments-object--async-gen-meth-args-trailing-comma-spread-operator",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/arguments/args-trailing-comma-spread-operator.case\n// - src/arguments/default/async-gen-meth.template\n/*---\ndescription: A trailing comma should not increase the arguments.length, using spread args (async generator method)\nesid: sec-asyncgenerator-definitions-propertydefinitionevaluation\nfeatures: [async-iteration]\nflags: [generated, async]\ninfo: |\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n\n    Trailing comma in the arguments list\n\n    Left-Hand-Side Expressions\n\n    Arguments :\n        ( )\n        ( ArgumentList )\n        ( ArgumentList , )\n\n    ArgumentList :\n        AssignmentExpression\n        ... AssignmentExpression\n        ArgumentList , AssignmentExpression\n        ArgumentList , ... AssignmentExpression\n---*/\nvar arr = [2, 3];\n\n\nvar callCount = 0;\nvar obj = {\n  async *method() {\n    assert.sameValue(arguments.length, 4);\n    assert.sameValue(arguments[0], 42);\n    assert.sameValue(arguments[1], 1);\n    assert.sameValue(arguments[2], 2);\n    assert.sameValue(arguments[3], 3);\n    callCount = callCount + 1;\n  }\n};\n\n// Stores a reference `ref` for case evaluation\nvar ref = obj.method;\n\nref(42, ...[1], ...arr,).next().then(() => {\n    assert.sameValue(callCount, 1, 'generator method invoked exactly once');\n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--arguments-object--cls-expr-gen-meth-args-trailing-comma-multiple",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/arguments/args-trailing-comma-multiple.case\n// - src/arguments/default/cls-expr-gen-meth.template\n/*---\ndescription: A trailing comma should not increase the arguments.length, using multiple args (class expression generator method)\nesid: sec-arguments-exotic-objects\nfeatures: [generators]\nflags: [generated]\ninfo: |\n    9.4.4 Arguments Exotic Objects\n\n    Most ECMAScript functions make an arguments object available to their code. Depending upon the\n    characteristics of the function definition, its arguments object is either an ordinary object\n    or an arguments exotic object.\n\n\n    Trailing comma in the arguments list\n\n    Left-Hand-Side Expressions\n\n    Arguments :\n        ( )\n        ( ArgumentList )\n        ( ArgumentList , )\n\n    ArgumentList :\n        AssignmentExpression\n        ... AssignmentExpression\n        ArgumentList , AssignmentExpression\n        ArgumentList , ... AssignmentExpression\n---*/\n\n\nvar callCount = 0;\nvar C = class {\n  *method() {\n    assert.sameValue(arguments.length, 2);\n    assert.sameValue(arguments[0], 42);\n    assert.sameValue(arguments[1], 'TC39');\n    callCount = callCount + 1;\n  }\n};\n\nC.prototype.method(42, 'TC39',).next();\n\n// Stores a reference `ref` for case evaluation\nvar ref = C.prototype.method;\n\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--asi--S7.9_A10_T6",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: Check {} for automatic semicolon insertion\nes5id: 7.9_A10_T6\ndescription: Checking if execution of \"{} \\n * 1\" fails\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n//CHECK#1\n{}\n * 1\n"
  ],
  [
    "test262-language--block-scope--syntax--redeclaration--async-function-name-redeclaration-attempt-with-generator",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/declarations/generator.case\n// - src/declarations/redeclare/block-attempt-to-redeclare-async-function-declaration.template\n/*---\ndescription: redeclaration with GeneratorDeclaration (AsyncFunctionDeclaration in BlockStatement)\nesid: sec-block-static-semantics-early-errors\nfeatures: [generators, async-functions]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Block : { StatementList }\n\n    It is a Syntax Error if the LexicallyDeclaredNames of StatementList contains\n    any duplicate entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\n{ async function f() {} function* f() {} }\n"
  ],
  [
    "test262-language--block-scope--syntax--redeclaration--async-function-name-redeclaration-attempt-with-let",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/declarations/let.case\n// - src/declarations/redeclare/block-attempt-to-redeclare-async-function-declaration.template\n/*---\ndescription: redeclaration with let-LexicalDeclaration (AsyncFunctionDeclaration in BlockStatement)\nesid: sec-block-static-semantics-early-errors\nfeatures: [async-functions]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Block : { StatementList }\n\n    It is a Syntax Error if the LexicallyDeclaredNames of StatementList contains\n    any duplicate entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\n{ async function f() {} let f }\n"
  ],
  [
    "test262-language--block-scope--syntax--redeclaration--async-generator-name-redeclaration-attempt-with-async-function",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/declarations/async-function.case\n// - src/declarations/redeclare/block-attempt-to-redeclare-async-generator-declaration.template\n/*---\ndescription: redeclaration with AsyncFunctionDeclaration (AsyncGeneratorDeclaration in BlockStatement)\nesid: sec-block-static-semantics-early-errors\nfeatures: [async-functions, async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Block : { StatementList }\n\n    It is a Syntax Error if the LexicallyDeclaredNames of StatementList contains\n    any duplicate entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\n{ async function* f() {} async function f() {} }\n"
  ],
  [
    "test262-language--block-scope--syntax--redeclaration--inner-block-var-name-redeclaration-attempt-with-generator",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/declarations/generator.case\n// - src/declarations/redeclare/block-attempt-to-redeclare-inner-block-var-declaration.template\n/*---\ndescription: redeclaration with GeneratorDeclaration (VariableDeclaration in a BlockStatement inside a BlockStatement)\nesid: sec-block-static-semantics-early-errors\nfeatures: [generators]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Block : { StatementList }\n\n    It is a Syntax Error if any element of the LexicallyDeclaredNames of\n    StatementList also occurs in the VarDeclaredNames of StatementList.\n\n    Static Semantics: VarDeclaredNames\n\n    Block : { }\n\n    1. Return a new empty List.\n\n    StatementList : StatementList StatementListItem\n\n    1. Let names be VarDeclaredNames of StatementList.\n    2. Append to names the elements of the VarDeclaredNames of StatementListItem.\n    3. Return names.\n\n    StatementListItem : Declaration\n\n    1. Return a new empty List.\n\n---*/\n\n\n$DONOTEVALUATE();\n\n{ { var f; } function* f() {}; }\n"
  ],
  [
    "test262-language--block-scope--syntax--redeclaration--var-redeclaration-attempt-after-async-generator",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/declarations/async-generator.case\n// - src/declarations/redeclare/block-attempt-to-redeclare-var-declaration-after.template\n/*---\ndescription: redeclaration with AsyncGeneratorDeclaration (VariableDeclaration in BlockStatement)\nesid: sec-block-static-semantics-early-errors\nfeatures: [async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Block : { StatementList }\n\n    It is a Syntax Error if any element of the LexicallyDeclaredNames of\n    StatementList also occurs in the VarDeclaredNames of StatementList.\n\n---*/\n\n\n$DONOTEVALUATE();\n\n{ async function* f() {}; var f; }\n"
  ],
  [
    "test262-language--comments--S7.4_A4_T4",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: Single and Multi line comments are used together\nes5id: 7.4_A4_T4\ndescription: Try to open Multi line comment at the end of Single comment\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n/*CHECK#1*/\n\n// var /*\nx*/\n"
  ],
  [
    "test262-language--comments--hashbang--function-body",
    "script",
    false,
    "standards",
    "// Copyright (C) 2019 Leo Balter. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: pending\ndescription: >\n    Hashbang comments should only be allowed at the start of source texts and should not be allowed within function bodies.\ninfo: |\n    HashbangComment::\n      #! SingleLineCommentChars[opt]\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [hashbang]\n---*/\n\n$DONOTEVALUATE();\n\nfunction fn() {#!\n}\n"
  ],
  [
    "test262-language--comments--hashbang--line-terminator-line-separator",
    "script",
    true,
    "standards",
    "#! this comment ends with a Line Separator (U+2028) {\n}\n\n// Copyright (C) 2019 Mike Pennisi. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: pending\ndescription: >\n    Hashbang comments are terminated by the first LineTerminator: Line Separator\ninfo: |\n    HashbangComment::\n      #! SingleLineCommentChars[opt]\n\n    SingleLineCommentChars::\n      SingleLineCommentChar SingleLineCommentChars[opt]\n\n    SingleLineCommentChar::\n      SourceCharacter but not LineTerminator\n\n    LineTerminator::\n      <LF>\n      <CR>\n      <LS>\n      <PS>\nflags: [raw]\nfeatures: [hashbang]\n---*/\n"
  ],
  [
    "test262-language--comments--multi-line-asi-carriage-return",
    "script",
    true,
    "standards",
    "// Copyright (c) 2018 Mike Pennisi.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nes5id: 7.4\nesid: sec-comments\ndescription: >\n  A multi-line comment containing a carriage return should be considered a\n  LineTerminator\ninfo: >\n  Comments behave like white space and are discarded except that, if a\n  MultiLineComment contains a line terminator code point, then the entire\n  comment is considered to be a LineTerminator for purposes of parsing by the\n  syntactic grammar.\n---*/\n\n''/*\r*/''\n"
  ],
  [
    "test262-language--computed-property-names--basics--symbol",
    "script",
    true,
    "standards",
    "// Copyright (C) 2014 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 12.2.5\ndescription: >\n    computed property names can be a symbol\nincludes: [compareArray.js]\nfeatures: [Symbol]\n---*/\n\nfunction ID(x) {\n  return x;\n}\n\nvar sym1 = Symbol();\nvar sym2 = Symbol();\nvar object = {\n  a: 'A',\n  [sym1]: 'B',\n  c: 'C',\n  [ID(sym2)]: 'D',\n};\nassert.sameValue(object.a, 'A', \"The value of `object.a` is `'A'`. Defined in `object` as `a: 'A'`\");\nassert.sameValue(object[sym1], 'B', \"The value of `object[sym1]` is `'B'`. Defined in `object` as `[sym1]: 'B'`\");\nassert.sameValue(object.c, 'C', \"The value of `object.c` is `'C'`. Defined in `object` as `c: 'C'`\");\nassert.sameValue(object[sym2], 'D', \"The value of `object[sym2]` is `'D'`. Defined in `object` as `[ID(sym2)]: 'D'`\");\nassert.compareArray(\n  Object.getOwnPropertyNames(object),\n  ['a', 'c']\n);\nassert.compareArray(\n  Object.getOwnPropertySymbols(object),\n  [sym1, sym2]\n);\n"
  ],
  [
    "test262-language--computed-property-names--class--method--symbol",
    "script",
    true,
    "standards",
    "// Copyright (C) 2014 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 12.2.5\ndescription: >\n    computed property class method names can be a symbol\nincludes: [compareArray.js]\nfeatures: [Symbol]\n---*/\n\nfunction ID(x) {\n  return x;\n}\n\nvar sym1 = Symbol();\nvar sym2 = Symbol();\nclass C {\n  a() { return 'A'; }\n  [sym1]() { return 'B'; }\n  c() { return 'C'; }\n  [ID(sym2)]() { return 'D'; }\n}\nassert.sameValue(new C().a(), 'A', \"`new C().a()` returns `'A'`. Defined as `a() { return 'A'; }`\");\nassert.sameValue(new C()[sym1](), 'B', \"`new C()[sym1]()` returns `'B'`. Defined as `[sym1]() { return 'B'; }`\");\nassert.sameValue(new C().c(), 'C', \"`new C().c()` returns `'C'`. Defined as `c() { return 'C'; }`\");\nassert.sameValue(new C()[sym2](), 'D', \"`new C()[sym2]()` returns `'D'`. Defined as `[ID(sym2)]() { return 'D'; }`\");\nassert.sameValue(Object.keys(C.prototype).length, 0, \"No enum keys from C.prototype\");\nassert.compareArray(\n  Object.getOwnPropertyNames(C.prototype),\n  ['constructor', 'a', 'c']\n);\nassert.compareArray(\n  Object.getOwnPropertySymbols(C.prototype),\n  [sym1, sym2]\n);\n"
  ],
  [
    "test262-language--directive-prologue--10.1.1-2gs",
    "script",
    false,
    "standards",
    "// Copyright (c) 2012 Ecma International.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nes5id: 10.1.1-2gs\ndescription: >\n    Strict Mode - Use Strict Directive Prologue is ''use strict''\n    which lost the last character ';'\nnegative:\n  phase: parse\n  type: SyntaxError\nflags: [raw]\n---*/\n\n\"use strict\"\nthrow \"Test262: This statement should not be evaluated.\";\nvar public = 1;\n"
  ],
  [
    "test262-language--eval-code--direct--strict-caller-global",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2020 Leo Balter. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-performeval\ndescription: Script will be script if strictCaller is true\ninfo: |\n    ...\n    10. If strictCaller is true, let strictEval be true.\n    ...\n    12. Let runningContext be the running execution context.\n    ...\nnegative:\n  phase: runtime\n  type: SyntaxError\nflags: [onlyStrict]\n---*/\n\n// Although the `try` statement is a more precise mechanism for detecting\n// runtime errors, the behavior under test is only observable for a direct eval\n// call when the call is made from the global scope. This forces the use of\n// the more coarse-grained `negative` frontmatter to assert the expected error.\n\neval('var public = 1;');\n"
  ],
  [
    "test262-language--eval-code--direct--var-env-global-lex-non-strict",
    "script",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-evaldeclarationinstantiation\ndescription: Variable collision with global lexical binding\ninfo: |\n    [...]\n    5. If strict is false, then\n       a. If varEnvRec is a global Environment Record, then\n          i. For each name in varNames, do\n             1. If varEnvRec.HasLexicalDeclaration(name) is true, throw a\n                SyntaxError exception.\n             2. NOTE: eval will not create a global var declaration that would\n                be shadowed by a global lexical declaration.\n       [...]\nnegative:\n  phase: runtime\n  type: SyntaxError\nflags: [noStrict]\nfeatures: [let]\n---*/\n\nlet x;\n\n// Although the `try` statement is a more precise mechanism for detecting\n// runtime errors, the behavior under test is only observable for a direct eval\n// call when the call is made from the global scope. This forces the use of\n// the more coarse-grained `negative` frontmatter to assert the expected error.\n\neval('var x;');\n"
  ],
  [
    "test262-language--expressions--array--spread-err-mult-err-expr-throws",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/spread/mult-err-expr-throws.case\n// - src/spread/error/array.template\n/*---\ndescription: Spread operator following other arguments when evaluation throws (Array initializer)\nesid: sec-runtime-semantics-arrayaccumulation\nfeatures: [generators]\nflags: [generated]\ninfo: |\n    SpreadElement : ...AssignmentExpression\n\n    1. Let spreadRef be the result of evaluating AssignmentExpression.\n    2. Let spreadObj be ? GetValue(spreadRef).\n    3. Let iterator be ? GetIterator(spreadObj).\n    4. Repeat\n       a. Let next be ? IteratorStep(iterator).\n       b. If next is false, return nextIndex.\n       c. Let nextValue be ? IteratorValue(next).\n       d. Let status be CreateDataProperty(array, ToString(ToUint32(nextIndex)),\n          nextValue).\n       e. Assert: status is true.\n       f. Let nextIndex be nextIndex + 1.\n\n    12.3.6.1 Runtime Semantics: ArgumentListEvaluation\n\n    ArgumentList : ArgumentList , ... AssignmentExpression\n\n    1. Let precedingArgs be the result of evaluating ArgumentList.\n    2. Let spreadRef be the result of evaluating AssignmentExpression.\n    3. Let iterator be GetIterator(GetValue(spreadRef) ).\n    4. ReturnIfAbrupt(iterator).\n\n---*/\n\nassert.throws(Test262Error, function() {\n  [0, ...function*() { throw new Test262Error(); }()];\n});\n"
  ],
  [
    "test262-language--expressions--array--spread-obj-getter-init",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/spread/obj-getter-init.case\n// - src/spread/default/array.template\n/*---\ndescription: Getter in object literal is not evaluated (Array initializer)\nesid: sec-runtime-semantics-arrayaccumulation\nfeatures: [object-spread]\nflags: [generated]\ninfo: |\n    SpreadElement : ...AssignmentExpression\n\n    1. Let spreadRef be the result of evaluating AssignmentExpression.\n    2. Let spreadObj be ? GetValue(spreadRef).\n    3. Let iterator be ? GetIterator(spreadObj).\n    4. Repeat\n       a. Let next be ? IteratorStep(iterator).\n       b. If next is false, return nextIndex.\n       c. Let nextValue be ? IteratorValue(next).\n       d. Let status be CreateDataProperty(array, ToString(ToUint32(nextIndex)),\n          nextValue).\n       e. Assert: status is true.\n       f. Let nextIndex be nextIndex + 1.\n---*/\n\nlet o = {a: 2, b: 3};\nlet executedGetter = false;\n\n\nvar callCount = 0;\n\n(function(obj) {\n  assert.sameValue(obj.a, 2);\n  assert.sameValue(obj.b, 3);\n  assert.sameValue(executedGetter, false)\n  assert.sameValue(Object.keys(obj).length, 3);\n  callCount += 1;\n}.apply(null, [{...o, get c() { executedGetter = true; }}]));\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--arrow-function--dstr--ary-ptrn-rest-init-id",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-init-id.case\n// - src/dstr-binding/default/arrow-function.template\n/*---\ndescription: Rest element (identifier) does not support initializer (arrow function expression)\nesid: sec-arrow-function-definitions-runtime-semantics-evaluation\nfeatures: [destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    [...]\n    4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict).\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nvar f;\nf = ([...x = []]) => {\n  \n  callCount = callCount + 1;\n};\n\nf([]);\nassert.sameValue(callCount, 1, 'arrow function invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--arrow-function--dstr--obj-ptrn-prop-id-init-unresolvable",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-prop-id-init-unresolvable.case\n// - src/dstr-binding/error/arrow-function.template\n/*---\ndescription: Destructuring initializer is an unresolvable reference (arrow function expression)\nesid: sec-arrow-function-definitions-runtime-semantics-evaluation\nfeatures: [destructuring-binding]\nflags: [generated]\ninfo: |\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    [...]\n    4. Let closure be FunctionCreate(Arrow, parameters, ConciseBody, scope, strict).\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.7 Runtime Semantics: KeyedBindingInitialization\n\n    BindingElement : BindingPattern Initializeropt\n\n    [...]\n    3. If Initializer is present and v is undefined, then\n       a. Let defaultValue be the result of evaluating Initializer.\n       b. Let v be GetValue(defaultValue).\n       c. ReturnIfAbrupt(v).\n\n    6.2.3.1 GetValue (V)\n\n    1. ReturnIfAbrupt(V).\n    2. If Type(V) is not Reference, return V.\n    3. Let base be GetBase(V).\n    4. If IsUnresolvableReference(V), throw a ReferenceError exception.\n---*/\n\nvar f = ({ x: y = unresolvableReference }) => {};\n\nassert.throws(ReferenceError, function() {\n  f({});\n});\n"
  ],
  [
    "test262-language--expressions--arrow-function--dstr--syntax-error-ident-ref-return-escaped",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/identifier-names/return-escaped.case\n// - src/identifier-names/default/arrow-fn-assignment-identifier.template\n/*---\ndescription: return is a valid identifier name, using escape (IdentifierReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)\nesid: prod-AssignmentPattern\nfeatures: [arrow-function, destructuring-assignment]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    AssignmentPattern:\n      ObjectAssignmentPattern\n\n    ObjectAssignmentPattern:\n      { AssignmentPropertyList }\n\n    AssignmentPropertyList:\n      AssignmentProperty\n      AssignmentPropertyList , AssignmentProperty\n\n    AssignmentProperty:\n      IdentifierReference Initializer_opt\n      PropertyName : AssignmentElement\n\n    IdentifierReference:\n      Identifier\n      [~Yield]yield\n      [~Await]await\n\n    Identifier:\n      IdentifierName but not ReservedWord\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar x = ({ r\\u0065turn }) => {};\n"
  ],
  [
    "test262-language--expressions--arrow-function--params-duplicate",
    "script",
    false,
    "standards",
    "// Copyright 2019 Mike Pennisi. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-arrow-function-definitions\ndescription: Formal parameters may not contain duplicates\ninfo: |\n  # 14.2 Arrow Function Definitions\n\n  When the production\n\n    ArrowParameters:CoverParenthesizedExpressionAndArrowParameterList\n\n  is recognized the following grammar is used to refine the interpretation\n  of CoverParenthesizedExpressionAndArrowParameterList:\n\n    ArrowFormalParameters[Yield, Await]:\n      (UniqueFormalParameters[?Yield, ?Await])\n\n  # 14.1.2 Static Semantics: Early Errors\n\n  UniqueFormalParameters:FormalParameters\n\n  - It is a Syntax Error if BoundNames of FormalParameters contains any\n    duplicate elements.\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n0, (a, a) => { };\n"
  ],
  [
    "test262-language--expressions--arrow-function--syntax--arrowparameters-cover-formalparameters-yield",
    "script",
    true,
    "standards",
    "// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 14.2.1\ndescription: >\n    ArrowParameters[Yield] :\n      ...\n      CoverParenthesizedExpressionAndArrowParameterList[?Yield]\n\n    Parameter named \"yield\", non-strict\n\nflags: [noStrict]\n---*/\nvar af = (yield) => 1;\n\nassert.sameValue(typeof af, \"function\");\nassert.sameValue(af(1), 1);\n"
  ],
  [
    "test262-language--expressions--arrow-function--syntax--early-errors--arrowparameters-cover-no-duplicates-binding-object-1",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 14.2.1\ndescription: >\n    ArrowParameters[Yield] :\n      ...\n      CoverParenthesizedExpressionAndArrowParameterList[?Yield]\n\n    CoverParenthesizedExpressionAndArrowParameterList, refined by:\n\n    ArrowFormalParameters[Yield, GeneratorParameter] :\n      ( StrictFormalParameters[?Yield, ?GeneratorParameter] )\n\n    ObjectBindingPattern\n\n    No duplicates\n\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\nvar af = (x, {x}) => 1;\n"
  ],
  [
    "test262-language--expressions--assignment--destructuring--keyed-destructuring-property-reference-target-evaluation-order",
    "script",
    true,
    "standards",
    "// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-runtime-semantics-keyeddestructuringassignmentevaluation\ndescription: >\n    Ensure correct evaluation order when destructuring target is property reference.\ninfo: |\n    12.15.5.2 Runtime Semantics: DestructuringAssignmentEvaluation\n\n    AssignmentProperty : PropertyName : AssignmentElement\n\n    1. Let name be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(name).\n    3. Return the result of performing KeyedDestructuringAssignmentEvaluation of\n       AssignmentElement with value and name as the arguments. \n\n    12.15.5.4 Runtime Semantics: KeyedDestructuringAssignmentEvaluation\n\n    1. If DestructuringAssignmentTarget is neither an ObjectLiteral nor an ArrayLiteral, then\n        a. Let lref be the result of evaluating DestructuringAssignmentTarget.\n        b. ReturnIfAbrupt(lref).\n    2. Let v be ? GetV(value, propertyName).\n    ...\n    4. Else, let rhsValue be v.\n    ...\n    7. Return ? PutValue(lref, rhsValue).\nincludes: [compareArray.js]\n---*/\n\n\nvar log = [];\n\nfunction source() {\n    log.push(\"source\");\n    return {\n        get p() {\n            log.push(\"get\");\n        }\n    };\n}\nfunction target() {\n    log.push(\"target\");\n    return {\n        set q(v) {\n            log.push(\"set\");\n        }\n    };\n}\nfunction sourceKey() {\n    log.push(\"source-key\");\n    return {\n        toString: function() {\n            log.push(\"source-key-tostring\");\n            return \"p\";\n        }\n    };\n}\nfunction targetKey() {\n    log.push(\"target-key\");\n    return {\n        toString: function() {\n            log.push(\"target-key-tostring\");\n            return \"q\";\n        }\n    };\n}\n\n({[sourceKey()]: target()[targetKey()]} = source());\n\nassert.compareArray(log, [\n    \"source\", \"source-key\", \"source-key-tostring\",\n    \"target\", \"target-key\",\n    \"get\", \"target-key-tostring\", \"set\",\n]);\n"
  ],
  [
    "test262-language--expressions--assignment--destructuring--keyed-destructuring-property-reference-target-evaluation-order-with-bindings",
    "script",
    true,
    "standards",
    "// Copyright (C) 2024 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-runtime-semantics-propertydestructuringassignmentevaluation\ndescription: >\n  Ensure correct evaluation order for binding lookups when destructuring target is var-binding.\ninfo: |\n  13.15.5.3 Runtime Semantics: PropertyDestructuringAssignmentEvaluation\n\n    AssignmentProperty : PropertyName : AssignmentElement\n\n    1. Let name be ? Evaluation of PropertyName.\n    2. Perform ? KeyedDestructuringAssignmentEvaluation of AssignmentElement with arguments value and name.\n    ...\n\n  13.15.5.6 Runtime Semantics: KeyedDestructuringAssignmentEvaluation\n\n    AssignmentElement : DestructuringAssignmentTarget Initializer_opt\n\n    1. If DestructuringAssignmentTarget is neither an ObjectLiteral nor an ArrayLiteral, then\n      a. Let lRef be ? Evaluation of DestructuringAssignmentTarget.\n    2. Let v be ? GetV(value, propertyName).\n    3. If Initializer is present and v is undefined, then\n      ...\n      b. Else,\n        i. Let defaultValue be ? Evaluation of Initializer.\n        ii. Let rhsValue be ? GetValue(defaultValue).\n    ...\n    6. Return ? PutValue(lRef, rhsValue).\n\nincludes: [compareArray.js]\nfeatures: [Proxy]\nflags: [noStrict]\n---*/\n\nvar log = [];\n\nvar targetKey = {\n  toString: () => {\n    log.push(\"targetKey\");\n    return \"q\";\n  }\n};\n\nvar sourceKey = {\n  toString: () => {\n    log.push(\"sourceKey\");\n    return \"p\";\n  }\n};\n\nvar source = {\n  get p() {\n    log.push(\"get source\");\n    return undefined;\n  }\n};\n\nvar target = {\n  set q(v) {\n    log.push(\"set target\");\n  },\n};\n\nvar env = new Proxy({}, {\n  has(t, pk) {\n    log.push(\"binding::\" + pk);\n  }\n});\n\nvar defaultValue = 0;\n\nwith (env) {\n  ({\n    [sourceKey]: target[targetKey] = defaultValue\n  } = source);\n}\n\nassert.compareArray(log, [\n  \"binding::source\",\n  \"binding::sourceKey\",\n  \"sourceKey\",\n  \"binding::target\",\n  \"binding::targetKey\",\n  \"get source\",\n  \"binding::defaultValue\",\n  \"targetKey\",\n  \"set target\",\n]);\n"
  ],
  [
    "test262-language--expressions--assignment--dstr--array-elem-put-const",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-assignment/array-elem-put-const.case\n// - src/dstr-assignment/error/assignment-expr.template\n/*---\ndescription: The assignment target should obey `const` semantics. (AssignmentExpression)\nesid: sec-variable-statement-runtime-semantics-evaluation\nfeatures: [const, destructuring-binding]\nflags: [generated]\ninfo: |\n    VariableDeclaration : BindingPattern Initializer\n\n    1. Let rhs be the result of evaluating Initializer.\n    2. Let rval be GetValue(rhs).\n    3. ReturnIfAbrupt(rval).\n    4. Return the result of performing BindingInitialization for\n       BindingPattern passing rval and undefined as arguments.\n---*/\nconst c = null;\n\nassert.throws(TypeError, function() {\n  0, [ c ] = [1];\n});\n"
  ],
  [
    "test262-language--expressions--assignment--dstr--array-rest-nested-array-yield-expr",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-assignment/array-rest-nested-array-yield-expr.case\n// - src/dstr-assignment/default/assignment-expr.template\n/*---\ndescription: When a `yield` token appears within the DestructuringAssignmentTarget of a nested destructuring assignment and within a generator function body, it should behave as a YieldExpression. (AssignmentExpression)\nesid: sec-variable-statement-runtime-semantics-evaluation\nfeatures: [generators, destructuring-binding]\nflags: [generated]\ninfo: |\n    VariableDeclaration : BindingPattern Initializer\n\n    1. Let rhs be the result of evaluating Initializer.\n    2. Let rval be GetValue(rhs).\n    3. ReturnIfAbrupt(rval).\n    4. Return the result of performing BindingInitialization for\n       BindingPattern passing rval and undefined as arguments.\n---*/\nvar value = [86];\nvar x = {};\nvar iterationResult, iter;\n\niter = (function*() {\n\nvar result;\nvar vals = [86];\n\nresult = [...[x[yield]]] = vals;\n\n\n\nassert.sameValue(result, vals);\n\n}());\n\niterationResult = iter.next();\n\nassert.sameValue(iterationResult.value, undefined);\nassert.sameValue(iterationResult.done, false);\nassert.sameValue(x.prop, undefined);\n\niterationResult = iter.next('prop');\n\nassert.sameValue(iterationResult.value, undefined);\nassert.sameValue(iterationResult.done, true);\nassert.sameValue(x.prop, 86);\n"
  ],
  [
    "test262-language--expressions--assignment--dstr--obj-id-identifier-yield-expr",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-assignment/obj-id-identifier-yield-expr.case\n// - src/dstr-assignment/syntax/assignment-expr.template\n/*---\ndescription: yield is not a valid IdentifierReference in an AssignmentProperty within generator function bodies. (AssignmentExpression)\nesid: sec-variable-statement-runtime-semantics-evaluation\nfeatures: [generators, destructuring-binding]\nflags: [generated, noStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    VariableDeclaration : BindingPattern Initializer\n\n    1. Let rhs be the result of evaluating Initializer.\n    2. Let rval be GetValue(rhs).\n    3. ReturnIfAbrupt(rval).\n    4. Return the result of performing BindingInitialization for\n       BindingPattern passing rval and undefined as arguments.\n---*/\n$DONOTEVALUATE();\n(function*() {\n\n0, { yield } = {};\n\n});\n"
  ],
  [
    "test262-language--expressions--assignment--dstr--obj-rest-symbol-val",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-assignment/obj-rest-symbol-val.case\n// - src/dstr-assignment/default/assignment-expr.template\n/*---\ndescription: RestBindingInitialization creates a new object if lhs is a Symbol (AssignmentExpression)\nesid: sec-variable-statement-runtime-semantics-evaluation\nfeatures: [Symbol, object-rest, destructuring-binding]\nflags: [generated]\ninfo: |\n    VariableDeclaration : BindingPattern Initializer\n\n    1. Let rhs be the result of evaluating Initializer.\n    2. Let rval be GetValue(rhs).\n    3. ReturnIfAbrupt(rval).\n    4. Return the result of performing BindingInitialization for\n       BindingPattern passing rval and undefined as arguments.\n---*/\nvar rest;\n\n\nvar result;\nvar vals = Symbol(\"foo\");\n\nresult = {...rest} = vals;\n\nassert.notSameValue(rest, undefined);\nassert.notSameValue(rest, null);\nassert(rest instanceof Object);\n\n\nassert.sameValue(result, vals);\n"
  ],
  [
    "test262-language--expressions--assignment--target-assignment-inside-function",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2020 Rick Waldron. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-assignment-operators-static-semantics-early-errors\ndescription: Applied to assignment\ninfo: |\n  AssignmentExpression : LeftHandSideExpression = AssignmentExpression\n\n  - It is an early Syntax Error if LeftHandSideExpression is neither an\n    ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of\n    LeftHandSideExpression is invalid or strict.\n\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nfunction f() {\n  var a, b = 2;\n  (a = b) = 1;\n}\n"
  ],
  [
    "test262-language--expressions--assignmenttargettype--direct-optionalexpression",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/assignment-target-type/optionalexpression.case\n// - src/assignment-target-type/invalid/direct.template\n/*---\ndescription: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)\nfeatures: [optional-chaining]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Direct assignment\n\n    OptionalExpression\n    Static Semantics AssignmentTargetType, Return invalid.\n\n---*/\n\n$DONOTEVALUATE();\n\nx?.y = 1;\n"
  ],
  [
    "test262-language--expressions--assignmenttargettype--parenthesized-updateexpression-star-star-exponentiationexpression-1",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/assignment-target-type/updateexpression-star-star-exponentiationexpression-1.case\n// - src/assignment-target-type/invalid/parenthesized.template\n/*---\ndescription: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression)\nesid: sec-grouping-operator-static-semantics-assignmenttargettype\nfeatures: [exponentiation]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ParenthesizedExpression: (Expression)\n\n    Return AssignmentTargetType of Expression.\n\n    UpdateExpression ** ExponentiationExpression\n    Static Semantics AssignmentTargetType, Return invalid.\n\n---*/\n\n$DONOTEVALUATE();\n\n(1 ** 2) = 1;\n"
  ],
  [
    "test262-language--expressions--async-arrow-function--async-lineterminator-identifier-throws",
    "script",
    true,
    "standards",
    "// Copyright (C) 2017 Mozilla Corporation. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: prod-AsyncArrowFunction\ndescription: >\n  async arrows cannot have a line terminator between \"async\" and the AsyncArrowBindingIdentifier\ninfo: |\n  14.7 Async Arrow Function Definitions\n\n  AsyncArrowFunction:\n    async [no LineTerminator here] AsyncArrowBindingIdentifier [no LineTerminator here] => AsyncConciseBody\n    [...]\n---*/\n\nassert.throws(ReferenceError, function() {\n  async\n  identifier => {}\n});\n"
  ],
  [
    "test262-language--expressions--async-arrow-function--dflt-params-duplicates",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-duplicates.case\n// - src/function-forms/syntax/async-arrow-function.template\n/*---\ndescription: It is a Syntax Error if BoundNames of FormalParameters contains any duplicate elements. (async arrow function expression)\nesid: sec-async-arrow-function-definitions\nfeatures: [default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    14.7 Async Arrow Function Definitions\n\n    AsyncArrowFunction :\n      ...\n      CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    AsyncConciseBody :\n      { AsyncFunctionBody }\n\n    ...\n\n    Supplemental Syntax\n\n    When processing an instance of the production AsyncArrowFunction :\n    CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody the interpretation of\n    CoverCallExpressionAndAsyncArrowHead is refined using the following grammar:\n\n    AsyncArrowHead :\n      async ArrowFormalParameters\n\n    14.1.2 Static Semantics: Early Errors\n\n    StrictFormalParameters : FormalParameters\n\n    - It is a Syntax Error if BoundNames of FormalParameters contains any\n      duplicate elements.\n\n    FormalParameters : FormalParameterList\n\n    - It is a Syntax Error if IsSimpleParameterList of FormalParameterList is\n      false and BoundNames of FormalParameterList contains any duplicate\n      elements.\n\n---*/\n$DONOTEVALUATE();\n\n\n(async (x = 0, x) => {\n  \n});\n"
  ],
  [
    "test262-language--expressions--async-arrow-function--dflt-params-trailing-comma",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-trailing-comma.case\n// - src/function-forms/default/async-arrow-function.template\n/*---\ndescription: A trailing comma should not increase the respective length, using default parameters (async arrow function expression)\nesid: sec-async-arrow-function-definitions\nfeatures: [async-functions]\nflags: [generated, async]\ninfo: |\n    14.7 Async Arrow Function Definitions\n\n    AsyncArrowFunction :\n      ...\n      CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    AsyncConciseBody :\n      { AsyncFunctionBody }\n\n    ...\n\n    Supplemental Syntax\n\n    When processing an instance of the production AsyncArrowFunction :\n    CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody the interpretation of\n    CoverCallExpressionAndAsyncArrowHead is refined using the following grammar:\n\n    AsyncArrowHead :\n      async ArrowFormalParameters\n\n\n    Trailing comma in the parameters list\n\n    14.1 Function Definitions\n\n    FormalParameters[Yield, Await] : FormalParameterList[?Yield, ?Await] ,\n---*/\n\n\nvar callCount = 0;\n\n// Stores a reference `ref` for case evaluation\nvar ref = async (a, b = 39,) => {\n  assert.sameValue(a, 42);\n  assert.sameValue(b, 39);\n  callCount = callCount + 1;\n};\n\nref(42, undefined, 1).then(() => {\n  assert.sameValue(callCount, 1, 'async arrow function invoked exactly once')\n}).then($DONE, $DONE);\n\nassert.sameValue(ref.length, 1, 'length is properly set');\n"
  ],
  [
    "test262-language--expressions--async-arrow-function--early-errors-arrow-duplicate-parameters",
    "script",
    false,
    "standards",
    "// Copyright 2016 Microsoft, Inc. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Brian Terlson <brian.terlson@microsoft.com>\nesid: sec-async-arrow-function-definitions\ndescription: Formal parameters may not contain duplicates\ninfo: |\n  # 14.2 Arrow Function Definitions\n\n  When the production\n\n    ArrowParameters:CoverParenthesizedExpressionAndArrowParameterList\n\n  is recognized the following grammar is used to refine the interpretation\n  of CoverParenthesizedExpressionAndArrowParameterList:\n\n    ArrowFormalParameters[Yield, Await]:\n      (UniqueFormalParameters[?Yield, ?Await])\n\n  # 14.1.2 Static Semantics: Early Errors\n\n  UniqueFormalParameters:FormalParameters\n\n  - It is a Syntax Error if BoundNames of FormalParameters contains any\n    duplicate elements.\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [async-functions]\n---*/\n\n$DONOTEVALUATE();\n\nasync(a, a) => { }\n"
  ],
  [
    "test262-language--expressions--async-arrow-function--early-errors-arrow-formals-lineterminator",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 Mozilla Corporation. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: prod-AsyncArrowHead\ndescription: async arrows cannot have a line terminator between \"async\" and the formals\ninfo: |\n  14.7 Async Arrow Function Definitions\n\n  AsyncArrowFunction:\n    [...]\n    CoverCallExpressionAndAsyncArrowHead [no LineTerminator here] => AsyncConciseBody\n\n  Supplemental Syntax\n\n  When processing an instance of the production\n\n  AsyncArrowFunction:\n    CoverCallExpressionAndAsyncArrowHead [no LineTerminator here] => AsyncConciseBody\n\n  the interpretation of CoverCallExpressionAndAsyncArrowHead is refined using the following grammar:\n\n  AsyncArrowHead:\n    async [no LineTerminator here] ArrowFormalParameters\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nasync\n(foo) => { }\n"
  ],
  [
    "test262-language--expressions--async-function--forbidden-ext--b1--async-func-expr-nameless-forbidden-ext-direct-access-prop-caller",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-direct-access-prop-caller.case\n// - src/function-forms/forbidden-extensions/bullet-one/async-func-expr-nameless.template\n/*---\ndescription: Forbidden extension, o.caller (async function nameless expression)\nesid: sec-async-function-definitions\nfeatures: [arrow-function, async-functions]\nflags: [generated, noStrict, async]\ninfo: |\n    AsyncFunctionExpression :\n      async function ( FormalParameters ) { AsyncFunctionBody }\n\n\n    ECMAScript function objects defined using syntactic constructors in strict mode code must\n    not be created with own properties named \"caller\" or \"arguments\". Such own properties also\n    must not be created for function objects defined using an ArrowFunction, MethodDefinition,\n    GeneratorDeclaration, GeneratorExpression, AsyncGeneratorDeclaration, AsyncGeneratorExpression,\n    ClassDeclaration, ClassExpression, AsyncFunctionDeclaration, AsyncFunctionExpression, or\n    AsyncArrowFunction regardless of whether the definition is contained in strict mode code.\n    Built-in functions, strict functions created using the Function constructor, generator functions\n    created using the Generator constructor, async functions created using the AsyncFunction\n    constructor, and functions created using the bind method also must not be created with such own\n    properties.\n\n---*/\n\n\nvar callCount = 0;\nvar f = async function() {\n  assert.sameValue(f.hasOwnProperty(\"caller\"), false);\n  callCount++;\n}\n\nf()\n  .then(() => {\n    assert.sameValue(callCount, 1, 'function body evaluated');\n  }, $DONE).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--async-function--forbidden-ext--b2--async-func-expr-named-forbidden-ext-indirect-access-prop-caller",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-indirect-access-prop-caller.case\n// - src/function-forms/forbidden-extensions/bullet-two/async-func-expr-named.template\n/*---\ndescription: Forbidden extension, o.caller (async function named expression)\nesid: sec-async-definitions\nfeatures: [arrow-function, async-functions]\nflags: [generated, noStrict, async]\ninfo: |\n    AsyncFunctionExpression :\n      async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n\n    If an implementation extends any function object with an own property named \"caller\" the value of\n    that property, as observed using [[Get]] or [[GetOwnProperty]], must not be a strict function\n    object. If it is an accessor property, the function that is the value of the property's [[Get]]\n    attribute must never return a strict function when called.\n\n---*/\nvar CALLER_OWN_PROPERTY_DOES_NOT_EXIST = Symbol();\nfunction inner() {\n  // This property may exist, but is forbidden from having a value that is a strict function object\n  return inner.hasOwnProperty(\"caller\")\n    ? inner.caller\n    : CALLER_OWN_PROPERTY_DOES_NOT_EXIST;\n}\n\n\nvar callCount = 0;\nvar f;\nf = async function f() {\n  \"use strict\";\n  // This and the following conditional value is set in the test's .case file.\n  // For every test that has a \"true\" value here, there is a\n  // corresponding test that has a \"false\" value here.\n  // They are generated from two different case files, which use\n  // the same templates.\n  let descriptor = Object.getOwnPropertyDescriptor(inner, \"caller\");\n  if (descriptor && descriptor.configurable && false) {\n    Object.defineProperty(inner, \"caller\", {});\n  }\n  var result = inner();\n  if (descriptor && descriptor.configurable && false) {\n    assert.sameValue(result, 1, 'If this test defined an own \"caller\" property on the inner function, then it should be accessible and should return the value it was set to.');\n  }\n  // \"CALLER_OWN_PROPERTY_DOES_NOT_EXIST\" is from\n  // forbidden-ext-indirect-access-prop-caller.case\n  //\n  // If the function object \"inner\" has an own property\n  // named \"caller\", then its value will be returned.\n  //\n  // If the function object \"inner\" DOES NOT have an\n  // own property named \"caller\", then the symbol\n  // CALLER_OWN_PROPERTY_DOES_NOT_EXIST will be returned.\n  if (result !== CALLER_OWN_PROPERTY_DOES_NOT_EXIST) {\n    assert.notSameValue(result, f);\n  }\n  callCount++;\n}\n\nf()\n  .then(() => {\n    assert.sameValue(callCount, 1, 'function body evaluated');\n  }, $DONE).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--async-function--named-await-as-binding-identifier",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-functions/await-as-binding-identifier.case\n// - src/async-functions/syntax/async-expression-named.template\n/*---\ndescription: await is a reserved keyword within generator function bodies and may not be used as a binding identifier. (Named async function expression)\nesid: prod-AsyncFunctionExpression\nfeatures: [async-functions]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Async Function Definitions\n\n    AsyncFunctionExpression :\n      async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n\n    BindingIdentifier : Identifier\n\n    It is a Syntax Error if this production has a [Await] parameter and\n    StringValue of Identifier is \"await\".\n\n---*/\n$DONOTEVALUATE();\n\n\nvar asyncFn = async function asyncFn() {\n  var await;\n};\n"
  ],
  [
    "test262-language--expressions--async-generator--default-proto",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2019 Alexey Shvayka. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-asyncgenerator-definitions-evaluatebody\ndescription: >\n  Default [[Prototype]] value derived from realm of the async generator function.\ninfo: |\n  Runtime Semantics: EvaluateBody\n\n  ...\n  2. Let generator be ? OrdinaryCreateFromConstructor(functionObject, \"%AsyncGeneratorPrototype%\", « ... »).\n  3. Perform ! AsyncGeneratorStart(generator, FunctionBody).\n  4. Return Completion { [[Type]]: return, [[Value]]: generator, [[Target]]: empty }.\n\n  OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ , internalSlotsList ] )\n\n  ...\n  2. Let proto be ? GetPrototypeFromConstructor(constructor, intrinsicDefaultProto).\n  3. Return ObjectCreate(proto, internalSlotsList).\n\n  GetPrototypeFromConstructor ( constructor, intrinsicDefaultProto )\n\n  ...\n  3. Let proto be ? Get(constructor, 'prototype').\n  4. If Type(proto) is not Object, then\n    a. Let realm be ? GetFunctionRealm(constructor).\n    b. Set proto to realm's intrinsic object named intrinsicDefaultProto.\n  5. Return proto.\nfeatures: [async-iteration, Symbol]\n---*/\n\nvar fn = async function* () {};\nvar AsyncGeneratorPrototype = Object.getPrototypeOf(fn.prototype);\n\nfn.prototype = undefined;\nassert.sameValue(Object.getPrototypeOf(fn()), AsyncGeneratorPrototype, 'fn.prototype is undefined');\n\nfn.prototype = null;\nassert.sameValue(Object.getPrototypeOf(fn()), AsyncGeneratorPrototype, 'fn.prototype is null');\n\nfn.prototype = false;\nassert.sameValue(Object.getPrototypeOf(fn()), AsyncGeneratorPrototype, 'fn.prototype is a Boolean');\n\nfn.prototype = '';\nassert.sameValue(Object.getPrototypeOf(fn()), AsyncGeneratorPrototype, 'fn.prototype is a String');\n\nfn.prototype = Symbol();\nassert.sameValue(Object.getPrototypeOf(fn()), AsyncGeneratorPrototype, 'fn.prototype is a Symbol');\n\nfn.prototype = 1;\nassert.sameValue(Object.getPrototypeOf(fn()), AsyncGeneratorPrototype, 'fn.prototype is a Number');\n"
  ],
  [
    "test262-language--expressions--async-generator--dflt-params-duplicates",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-duplicates.case\n// - src/function-forms/syntax/async-gen-func-expr.template\n/*---\ndescription: It is a Syntax Error if BoundNames of FormalParameters contains any duplicate elements. (async generator function expression)\nesid: sec-asyncgenerator-definitions-evaluation\nfeatures: [default-parameters, async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    AsyncGeneratorExpression : async [no LineTerminator here] function * ( FormalParameters ) {\n        AsyncGeneratorBody }\n\n        [...]\n        3. Let closure be ! AsyncGeneratorFunctionCreate(Normal, FormalParameters,\n           AsyncGeneratorBody, scope, strict).\n        [...]\n\n\n    14.1.2 Static Semantics: Early Errors\n\n    StrictFormalParameters : FormalParameters\n\n    - It is a Syntax Error if BoundNames of FormalParameters contains any\n      duplicate elements.\n\n    FormalParameters : FormalParameterList\n\n    - It is a Syntax Error if IsSimpleParameterList of FormalParameterList is\n      false and BoundNames of FormalParameterList contains any duplicate\n      elements.\n\n---*/\n$DONOTEVALUATE();\n\n\n0, async function*(x = 0, x) {\n  \n};\n"
  ],
  [
    "test262-language--expressions--async-generator--named-await-as-binding-identifier",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-generators/await-as-binding-identifier.case\n// - src/async-generators/syntax/async-expression-named.template\n/*---\ndescription: await is a reserved keyword within generator function bodies and may not be used as a binding identifier. (Named async generator expression)\nesid: prod-AsyncGeneratorExpression\nfeatures: [async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Async Generator Function Definitions\n\n    AsyncGeneratorExpression :\n      async [no LineTerminator here] function * BindingIdentifier ( FormalParameters ) {\n        AsyncGeneratorBody }\n\n\n    BindingIdentifier : Identifier\n\n    It is a Syntax Error if this production has a [Await] parameter and\n    StringValue of Identifier is \"await\".\n\n---*/\n$DONOTEVALUATE();\n\n\nvar gen = async function *g() {\n  var await;\n};\n"
  ],
  [
    "test262-language--expressions--async-generator--named-yield-identifier-spread-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-identifier-spread-strict.case\n// - src/async-generators/default/async-expression-named.template\n/*---\ndescription: It's an early error if the AssignmentExpression is a function body with yield as an identifier in strict mode. (Named async generator expression)\nesid: prod-AsyncGeneratorExpression\nfeatures: [object-spread, async-iteration]\nflags: [generated, onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Async Generator Function Definitions\n\n    AsyncGeneratorExpression :\n      async [no LineTerminator here] function * BindingIdentifier ( FormalParameters ) {\n        AsyncGeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n$DONOTEVALUATE();\n\n\nvar callCount = 0;\n\nvar gen = async function *g() {\n  callCount += 1;\n  return {\n       ...(function() {\n          var yield;\n          throw new Test262Error();\n       }()),\n    }\n};\n\nvar iter = gen();\n\n\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--async-generator--named-yield-spread-obj",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-spread-obj.case\n// - src/async-generators/default/async-expression-named.template\n/*---\ndescription: Use yield value in a object spread position (Named async generator expression)\nesid: prod-AsyncGeneratorExpression\nfeatures: [object-spread, async-iteration]\nflags: [generated, async]\ninfo: |\n    Async Generator Function Definitions\n\n    AsyncGeneratorExpression :\n      async [no LineTerminator here] function * BindingIdentifier ( FormalParameters ) {\n        AsyncGeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n\n\nvar callCount = 0;\n\nvar gen = async function *g() {\n  callCount += 1;\n  yield {\n      ...yield,\n      y: 1,\n      ...yield yield,\n    };\n};\n\nvar iter = gen();\n\niter.next();\niter.next({ x: 42 });\niter.next({ x: 'lol' });\nvar item = iter.next({ y: 39 });\n\nitem.then(({ done, value }) => {\n  assert.sameValue(value.x, 42);\n  assert.sameValue(value.y, 39);\n  assert.sameValue(Object.keys(value).length, 2);\n  assert.sameValue(done, false);\n}).then($DONE, $DONE);\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--async-generator--yield-star-getiter-async-throw-method-is-null",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2020 Alexey Shvayka. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-generator-function-definitions-runtime-semantics-evaluation\ndescription: >\n  If iterator's \"throw\" method is `null`,\n  AsyncIteratorClose is called before rising TypeError.\ninfo: |\n  YieldExpression : yield * AssignmentExpression\n\n  [...]\n  7. Repeat,\n    [...]\n    b. Else if received.[[Type]] is throw, then\n      i. Let throw be ? GetMethod(iterator, \"throw\").\n      ii. If throw is not undefined, then\n        [...]\n      iii. Else,\n        [...]\n        3. If generatorKind is async, perform ? AsyncIteratorClose(iteratorRecord, closeCompletion).\n        [...]\n        6. Throw a TypeError exception.\n\n  GetMethod ( V, P )\n\n  [...]\n  2. Let func be ? GetV(V, P).\n  3. If func is either undefined or null, return undefined.\n\n  AsyncIteratorClose ( iteratorRecord, completion )\n\n  [...]\n  4. Let innerResult be GetMethod(iterator, \"return\").\n  5. If innerResult.[[Type]] is normal, then\n    a. Let return be innerResult.[[Value]].\n    b. If return is undefined, return Completion(completion).\nfeatures: [Symbol.asyncIterator, async-iteration]\nflags: [async]\n---*/\n\nvar throwGets = 0;\nvar returnGets = 0;\nvar asyncIterable = {\n  [Symbol.asyncIterator]: function() {\n    return this;\n  },\n  next: function() {\n    return {value: 1, done: false};\n  },\n  get throw() {\n    throwGets += 1;\n    return null;\n  },\n  get return() {\n    returnGets += 1;\n  },\n};\n\nasync function* asyncGenerator() {\n  yield* asyncIterable;\n}\n\nvar asyncIterator = asyncGenerator();\nasyncIterator.next().then(function() {\n  return asyncIterator.throw();\n}).then(function(result) {\n  throw new Test262Error(\"Promise should be rejected, got: \" + result.value);\n}, function(err) {\n  assert.sameValue(err.constructor, TypeError);\n  assert.sameValue(throwGets, 1);\n  assert.sameValue(returnGets, 1);\n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--await--async-generator-interleaved",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright 2018 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Maya Lekova <mslekova@chromium.org>\nesid: await\ndescription: >\n  Await on async generator functions and builtin Promises are properly\n  interleaved, meaning await takes only 1 tick on the microtask queue.\nflags: [async]\nfeatures: [async-functions, async-iteration]\nincludes: [compareArray.js]\n---*/\n\nconst actual = [];\nconst expected = [ 'await', 1, 'await', 2 ];\nconst iterations = 2;\n\nasync function pushAwait() {\n  actual.push('await');\n}\n\nasync function* callAsync() {\n  for (let i = 0; i < iterations; i++) {\n    await pushAwait();\n  }\n  return 0;\n}\n\nfunction checkAssertions() {\n  assert.compareArray(actual, expected,\n    'Async/await and promises should be interleaved');\n}\n\ncallAsync().next();\n\nnew Promise(function (resolve) {\n  actual.push(1);\n  resolve();\n}).then(function () {\n  actual.push(2);\n}).then(checkAssertions).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--await--await-BindingIdentifier-nested",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2016 Microsoft, Inc. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Brian Terlson <brian.terlson@microsoft.com>\nesid: pending\ndescription: >\n  Await is not allowed as an identifier in functions nested in async functions\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nasync function foo() {\n  function await() {\n  }\n}\n"
  ],
  [
    "test262-language--expressions--await--await-awaits-thenables-that-throw",
    "script",
    true,
    "standards",
    "// Copyright 2016 Microsoft, Inc. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Brian Terlson <brian.terlson@microsoft.com>\nesid: pending\ndescription: >\n  Await can await any thenable.\nflags: [async]\nincludes: [asyncHelpers.js]\n---*/\n\nvar error = {};\nvar thenable = {\n  then: function (resolve, reject) {\n    throw error;\n  }\n}\nasync function foo() {\n  var caught = false;\n  try {\n    await thenable;\n  } catch(e) {\n    caught = true;\n    assert.sameValue(e, error);\n  }\n\n  assert(caught);\n}\n\nasyncTest(foo);\n\n"
  ],
  [
    "test262-language--expressions--await--for-await-of-interleaved",
    "script",
    true,
    "standards",
    "// Copyright 2018 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Maya Lekova <mslekova@chromium.org>\nesid: await\ndescription: >\n  for-await-of iteration and builtin Promises are properly interleaved,\n  meaning await in for-of loop takes only 1 tick on the microtask queue.\nflags: [async]\nfeatures: [async-functions, async-iteration, generators]\nincludes: [compareArray.js]\n---*/\n\nconst actual = [];\nconst expected = [\n  'Promise: 6',\n  'Promise: 5',\n  'Await: 3',\n  'Promise: 4',\n  'Promise: 3',\n  'Await: 2',\n  'Promise: 2',\n  'Promise: 1',\n  'Await: 1',\n  'Promise: 0'\n];\nconst iterations = 3;\n\nasync function* naturalNumbers(start) {\n  let current = start;\n  while (current > 0) {\n    yield Promise.resolve(current--);\n  }\n}\n\nasync function trigger() {\n  for await (const num of naturalNumbers(iterations)) {\n    actual.push('Await: ' + num);\n  }\n}\n\nasync function checkAssertions() {\n  assert.compareArray(actual, expected,\n    'Async/await and promises should be interleaved');\n}\n\nfunction countdown(counter) {\n  actual.push('Promise: ' + counter);\n  if (counter > 0) {\n    return Promise.resolve(counter - 1).then(countdown);\n  } else {\n    checkAssertions().then($DONE, $DONE);\n  }\n}\n\ntrigger();\ncountdown(iterations * 2);\n"
  ],
  [
    "test262-language--expressions--bitwise-and--S11.10.1_A3_T2.6",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: Operator x & y returns ToNumber(x) & ToNumber(y)\nes5id: 11.10.1_A3_T2.6\ndescription: >\n    Type(x) is different from Type(y) and both types vary between\n    String (primitive or object) and Undefined\n---*/\n\n//CHECK#1\nif ((\"1\" & undefined) !== 0) {\n  throw new Test262Error('#1: (\"1\" & undefined) === 0. Actual: ' + ((\"1\" & undefined)));\n}\n\n//CHECK#2\nif ((undefined & \"1\") !== 0) {\n  throw new Test262Error('#2: (undefined & \"1\") === 0. Actual: ' + ((undefined & \"1\")));\n}\n\n//CHECK#3\nif ((new String(\"1\") & undefined) !== 0) {\n  throw new Test262Error('#3: (new String(\"1\") & undefined) === 0. Actual: ' + ((new String(\"1\") & undefined)));\n}\n\n//CHECK#4\nif ((undefined & new String(\"1\")) !== 0) {\n  throw new Test262Error('#4: (undefined & new String(\"1\")) === 0. Actual: ' + ((undefined & new String(\"1\"))));\n}\n"
  ],
  [
    "test262-language--expressions--bitwise-not--bigint",
    "script",
    true,
    "standards",
    "// Copyright (C) 2017 Josh Wolfe. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: Bitwise NOT for BigInt values\nesid: sec-numeric-types-bigint-bitwiseNOT\ninfo: |\n  BigInt::bitwiseNOT (x)\n\n  The abstract operation BigInt::bitwiseNOT with an argument x of BigInt type returns the one's complement of x; that is, -x - 1.\n\nfeatures: [BigInt]\n---*/\n\nassert.sameValue(~0n, -1n, \"~0n === -1n\");\nassert.sameValue(~(0n), -1n, \"~(0n) === -1n\");\nassert.sameValue(~1n, -2n, \"~1n === -2n\");\nassert.sameValue(~-1n, 0n, \"~-1n === 0n\");\nassert.sameValue(~(-1n), 0n, \"~(-1n) === 0n\");\nassert.sameValue(~~1n, 1n, \"~~1n === 1n\");\nassert.sameValue(~0x5an, -0x5bn, \"~0x5an === -0x5bn\");\nassert.sameValue(~-0x5an, 0x59n, \"~-0x5an === 0x59n\");\nassert.sameValue(~0xffn, -0x100n, \"~0xffn === -0x100n\");\nassert.sameValue(~-0xffn, 0xfen, \"~-0xffn === 0xfen\");\nassert.sameValue(~0xffffn, -0x10000n, \"~0xffffn === -0x10000n\");\nassert.sameValue(~-0xffffn, 0xfffen, \"~-0xffffn === 0xfffen\");\nassert.sameValue(~0xffffffffn, -0x100000000n, \"~0xffffffffn === -0x100000000n\");\nassert.sameValue(~-0xffffffffn, 0xfffffffen, \"~-0xffffffffn === 0xfffffffen\");\nassert.sameValue(\n  ~0xffffffffffffffffn, -0x10000000000000000n,\n  \"~0xffffffffffffffffn === -0x10000000000000000n\");\nassert.sameValue(\n  ~-0xffffffffffffffffn, 0xfffffffffffffffen,\n  \"~-0xffffffffffffffffn === 0xfffffffffffffffen\");\nassert.sameValue(\n  ~0x123456789abcdef0fedcba9876543210n, -0x123456789abcdef0fedcba9876543211n,\n  \"~0x123456789abcdef0fedcba9876543210n === -0x123456789abcdef0fedcba9876543211n\");\n"
  ],
  [
    "test262-language--expressions--bitwise-or--S11.10.3_A3_T2.9",
    "script",
    true,
    "standards",
    "// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: Operator x | y returns ToNumber(x) | ToNumber(y)\nes5id: 11.10.3_A3_T2.9\ndescription: >\n    Type(x) is different from Type(y) and both types vary between\n    Boolean (primitive or object) and Null\n---*/\n\n//CHECK#1\nif ((true | null) !== 1) {\n  throw new Test262Error('#1: (true | null) === 1. Actual: ' + ((true | null)));\n}\n\n//CHECK#2\nif ((null | true) !== 1) {\n  throw new Test262Error('#2: (null | true) === 1. Actual: ' + ((null | true)));\n}\n\n//CHECK#3\nif ((new Boolean(true) | null) !== 1) {\n  throw new Test262Error('#3: (new Boolean(true) | null) === 1. Actual: ' + ((new Boolean(true) | null)));\n}\n\n//CHECK#4\nif ((null | new Boolean(true)) !== 1) {\n  throw new Test262Error('#4: (null | new Boolean(true)) === 1. Actual: ' + ((null | new Boolean(true))));\n}\n"
  ],
  [
    "test262-language--expressions--bitwise-xor--bigint-errors",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 Josh Wolfe. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: bitwise-xor operator ToNumeric with BigInt operands\nesid: sec-binary-bitwise-operators-runtime-semantics-evaluation\nfeatures: [BigInt, Symbol, Symbol.toPrimitive, computed-property-names]\n---*/\nassert.throws(TypeError, function() {\n  Symbol('1') ^ 0n;\n}, 'Symbol(\"1\") ^ 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n ^ Symbol('1');\n}, '0n ^ Symbol(\"1\") throws TypeError');\n\nassert.throws(TypeError, function() {\n  Object(Symbol('1')) ^ 0n;\n}, 'Object(Symbol(\"1\")) ^ 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n ^ Object(Symbol('1'));\n}, '0n ^ Object(Symbol(\"1\")) throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    [Symbol.toPrimitive]: function() {\n      return Symbol('1');\n    }\n  }) ^ 0n;\n}, '({[Symbol.toPrimitive]: function() {return Symbol(\"1\");}}) ^ 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n ^ {\n    [Symbol.toPrimitive]: function() {\n      return Symbol('1');\n    }\n  };\n}, '0n ^ {[Symbol.toPrimitive]: function() {return Symbol(\"1\");}} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    valueOf: function() {\n      return Symbol('1');\n    }\n  }) ^ 0n;\n}, '({valueOf: function() {return Symbol(\"1\");}}) ^ 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n ^ {\n    valueOf: function() {\n      return Symbol('1');\n    }\n  };\n}, '0n ^ {valueOf: function() {return Symbol(\"1\");}} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    toString: function() {\n      return Symbol('1');\n    }\n  }) ^ 0n;\n}, '({toString: function() {return Symbol(\"1\");}}) ^ 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n ^ {\n    toString: function() {\n      return Symbol('1');\n    }\n  };\n}, '0n ^ {toString: function() {return Symbol(\"1\");}} throws TypeError');\n"
  ],
  [
    "test262-language--expressions--bitwise-xor--bigint-wrapped-values",
    "script",
    true,
    "standards",
    "// Copyright (C) 2017 Josh Wolfe. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: bitwise-xor operator ToNumeric with BigInt operands\nesid: sec-binary-bitwise-operators-runtime-semantics-evaluation\nfeatures: [BigInt, Symbol.toPrimitive, computed-property-names]\n---*/\nassert.sameValue(Object(2n) ^ 3n, 1n, 'The result of (Object(2n) ^ 3n) is 1n');\nassert.sameValue(3n ^ Object(2n), 1n, 'The result of (3n ^ Object(2n)) is 1n');\n\nassert.sameValue({\n  [Symbol.toPrimitive]: function() {\n    return 2n;\n  }\n} ^ 3n, 1n, 'The result of (({[Symbol.toPrimitive]: function() {return 2n;}}) ^ 3n) is 1n');\n\nassert.sameValue(3n ^ {\n  [Symbol.toPrimitive]: function() {\n    return 2n;\n  }\n}, 1n, 'The result of (3n ^ {[Symbol.toPrimitive]: function() {return 2n;}}) is 1n');\n\nassert.sameValue({\n  valueOf: function() {\n    return 2n;\n  }\n} ^ 3n, 1n, 'The result of (({valueOf: function() {return 2n;}}) ^ 3n) is 1n');\n\nassert.sameValue(3n ^ {\n  valueOf: function() {\n    return 2n;\n  }\n}, 1n, 'The result of (3n ^ {valueOf: function() {return 2n;}}) is 1n');\n\nassert.sameValue({\n  toString: function() {\n    return 2n;\n  }\n} ^ 3n, 1n, 'The result of (({toString: function() {return 2n;}}) ^ 3n) is 1n');\n\nassert.sameValue(3n ^ {\n  toString: function() {\n    return 2n;\n  }\n}, 1n, 'The result of (3n ^ {toString: function() {return 2n;}}) is 1n');\n"
  ],
  [
    "test262-language--expressions--call--S11.2.4_A1.3_T1",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: |\n    Arguments : (ArgumentList : ArgumentList,, AssignmentExpression) is a bad\n    syntax\nes5id: 11.2.4_A1.3_T1\ndescription: incorrect syntax\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nfunction f_arg() {\n}\n\nf_arg(1,,2);\n"
  ],
  [
    "test262-language--expressions--call--spread-err-sngl-err-expr-throws",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/spread/sngl-err-expr-throws.case\n// - src/spread/error/call-expr.template\n/*---\ndescription: Spread operator applied to the only argument when evaluation throws (CallExpression)\nesid: sec-function-calls-runtime-semantics-evaluation\nfeatures: [generators]\nflags: [generated]\ninfo: |\n    CallExpression : MemberExpression Arguments\n\n    [...]\n    9. Return EvaluateDirectCall(func, thisValue, Arguments, tailCall).\n\n    12.3.4.3 Runtime Semantics: EvaluateDirectCall\n\n    1. Let argList be ArgumentListEvaluation(arguments).\n    [...]\n    6. Let result be Call(func, thisValue, argList).\n    [...]\n\n    12.3.6.1 Runtime Semantics: ArgumentListEvaluation\n\n    ArgumentList : ... AssignmentExpression\n\n    1. Let list be an empty List.\n    2. Let spreadRef be the result of evaluating AssignmentExpression.\n    3. Let spreadObj be GetValue(spreadRef).\n    4. Let iterator be GetIterator(spreadObj).\n    5. ReturnIfAbrupt(iterator).\n---*/\n\nassert.throws(Test262Error, function() {\n  (function() {}(...function*() { throw new Test262Error(); }()));\n});\n"
  ],
  [
    "test262-language--expressions--call--spread-obj-overrides-prev-properties",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/spread/obj-overrides-prev-properties.case\n// - src/spread/default/call-expr.template\n/*---\ndescription: Object Spread properties overrides previous definitions (CallExpression)\nesid: sec-function-calls-runtime-semantics-evaluation\nfeatures: [object-spread]\nflags: [generated]\ninfo: |\n    CallExpression : MemberExpression Arguments\n\n    [...]\n    9. Return EvaluateDirectCall(func, thisValue, Arguments, tailCall).\n\n    12.3.4.3 Runtime Semantics: EvaluateDirectCall\n\n    1. Let argList be ArgumentListEvaluation(arguments).\n    [...]\n    6. Let result be Call(func, thisValue, argList).\n    [...]\n\n    Pending Runtime Semantics: PropertyDefinitionEvaluation\n\n    PropertyDefinition:...AssignmentExpression\n\n    1. Let exprValue be the result of evaluating AssignmentExpression.\n    2. Let fromValue be GetValue(exprValue).\n    3. ReturnIfAbrupt(fromValue).\n    4. Let excludedNames be a new empty List.\n    5. Return CopyDataProperties(object, fromValue, excludedNames).\n\n---*/\nlet o = {a: 2, b: 3};\n\n\nvar callCount = 0;\n\n(function(obj) {\n  assert.sameValue(obj.a, 2);\n  assert.sameValue(obj.b, 3);\n  assert.sameValue(Object.keys(obj).length, 2);\n  assert.sameValue(o.a, 2);\n  assert.sameValue(o.b, 3);\n  callCount += 1;\n}({a: 1, b: 7, ...o}));\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--class--async-gen-method--array-destructuring-param-strict-body",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/array-destructuring-param-strict-body.case\n// - src/function-forms/syntax/cls-expr-async-gen-meth.template\n/*---\ndescription: ArrayBindingPattern and Use Strict Directive are not allowed to coexist for the same function. (class expression async generator method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [rest-parameters, async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n\n    13.3.3.4 Static Semantics: IsSimpleParameterList\n\n    BindingElement : BindingPattern\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\n0, class {\n  async *method([element]) {\n    \"use strict\";\n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--async-gen-method--dflt-params-duplicates",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-duplicates.case\n// - src/function-forms/syntax/cls-expr-async-gen-meth.template\n/*---\ndescription: It is a Syntax Error if BoundNames of FormalParameters contains any duplicate elements. (class expression async generator method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [default-parameters, async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n\n    14.1.2 Static Semantics: Early Errors\n\n    StrictFormalParameters : FormalParameters\n\n    - It is a Syntax Error if BoundNames of FormalParameters contains any\n      duplicate elements.\n\n    FormalParameters : FormalParameterList\n\n    - It is a Syntax Error if IsSimpleParameterList of FormalParameterList is\n      false and BoundNames of FormalParameterList contains any duplicate\n      elements.\n\n---*/\n$DONOTEVALUATE();\n\n0, class {\n  async *method(x = 0, x) {\n    \n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--async-gen-method--forbidden-ext--b1--cls-expr-async-gen-meth-forbidden-ext-direct-access-prop-arguments",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-direct-access-prop-arguments.case\n// - src/function-forms/forbidden-extensions/bullet-one/cls-expr-async-gen-meth.template\n/*---\ndescription: Forbidden extension, f.arguments (class expression async generator method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [arrow-function, async-functions, async-iteration, class]\nflags: [generated, noStrict, async]\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n\n    ECMAScript function objects defined using syntactic constructors in strict mode code must\n    not be created with own properties named \"caller\" or \"arguments\". Such own properties also\n    must not be created for function objects defined using an ArrowFunction, MethodDefinition,\n    GeneratorDeclaration, GeneratorExpression, AsyncGeneratorDeclaration, AsyncGeneratorExpression,\n    ClassDeclaration, ClassExpression, AsyncFunctionDeclaration, AsyncFunctionExpression, or\n    AsyncArrowFunction regardless of whether the definition is contained in strict mode code.\n    Built-in functions, strict functions created using the Function constructor, generator functions\n    created using the Generator constructor, async functions created using the AsyncFunction\n    constructor, and functions created using the bind method also must not be created with such own\n    properties.\n\n---*/\n\nvar callCount = 0;\nvar C = class {\n  async *method() {\n    assert.sameValue(this.method.hasOwnProperty(\"arguments\"), false);\n    callCount++;\n  }\n};\n\nC.prototype.method().next()\n  .then(() => {\n    assert.sameValue(callCount, 1, 'function body evaluated');\n  }, $DONE).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--class--async-gen-method--yield-star-async-return",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-star-async-return.case\n// - src/async-generators/default/async-class-expr-method.template\n/*---\ndescription: execution order for yield* with async iterator and return() (Async generator method as a ClassExpression element)\nesid: prod-AsyncGeneratorMethod\nfeatures: [async-iteration, Symbol.asyncIterator]\nflags: [generated, async]\ninfo: |\n    ClassElement :\n      MethodDefinition\n\n    MethodDefinition :\n      AsyncGeneratorMethod\n\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    YieldExpression: yield * AssignmentExpression\n\n    ...\n    6. Repeat\n      ...\n      c. Else,\n        i. Assert: received.[[Type]] is return.\n        ii. Let return be ? GetMethod(iterator, \"return\").\n        iii. If return is undefined, return Completion(received).\n        iv. Let innerReturnResult be ? Call(return, iterator, « received.[[Value]] »).\n        v. If generatorKind is async, then set innerReturnResult to ? Await(innerReturnResult).\n        ...\n        vii. Let done be ? IteratorComplete(innerReturnResult).\n        viii. If done is true, then\n             1. Let value be ? IteratorValue(innerReturnResult).\n             2. If generatorKind is async, then set value to ? Await(value).\n             3. Return Completion{[[Type]]: return, [[Value]]: value, [[Target]]: empty}.\n        ix. If generatorKind is async, then let received be AsyncGeneratorYield(? IteratorValue(innerResult)).\n        ...\n\n    AsyncGeneratorYield ( value )\n    ...\n    8. Return ! AsyncGeneratorResolve(generator, value, false).\n    ...\n\n---*/\nvar log = [];\nvar obj = {\n  [Symbol.asyncIterator]() {\n    var returnCount = 0;\n    return {\n      name: 'asyncIterator',\n      get next() {\n        log.push({ name: \"get next\" });\n        return function() {\n          return {\n            value: \"next-value-1\",\n            done: false\n          };\n        };\n      },\n      get return() {\n        log.push({\n          name: \"get return\",\n          thisValue: this\n        });\n        return function() {\n          log.push({\n            name: \"call return\",\n            thisValue: this,\n            args: [...arguments]\n          });\n\n          returnCount++;\n          if (returnCount == 1) {\n            return {\n              name: \"return-promise-1\",\n              get then() {\n                log.push({\n                  name: \"get return then (1)\",\n                  thisValue: this\n                });\n                return function(resolve) {\n                  log.push({\n                    name: \"call return then (1)\",\n                    thisValue: this,\n                    args: [...arguments]\n                  });\n\n                  resolve({\n                    name: \"return-result-1\",\n                    get value() {\n                      log.push({\n                        name: \"get return value (1)\",\n                        thisValue: this\n                      });\n                      return \"return-value-1\";\n                    },\n                    get done() {\n                      log.push({\n                        name: \"get return done (1)\",\n                        thisValue: this\n                      });\n                      return false;\n                    }\n                  });\n                };\n              }\n            };\n          }\n\n          return {\n            name: \"return-promise-2\",\n            get then() {\n              log.push({\n                name: \"get return then (2)\",\n                thisValue: this\n              });\n              return function(resolve) {\n                log.push({\n                  name: \"call return then (2)\",\n                  thisValue: this,\n                  args: [...arguments]\n                });\n\n                resolve({\n                  name: \"return-result-2\",\n                  get value() {\n                    log.push({\n                      name: \"get return value (2)\",\n                      thisValue: this\n                    });\n                    return \"return-value-2\";\n                  },\n                  get done() {\n                    log.push({\n                      name: \"get return done (2)\",\n                      thisValue: this\n                    });\n                    return true;\n                  }\n                });\n              };\n            }\n          };\n        };\n      }\n    };\n  }\n};\n\n\n\nvar callCount = 0;\n\nvar C = class { async *gen() {\n    callCount += 1;\n    log.push({ name: \"before yield*\" });\n      yield* obj;\n\n}}\n\nvar gen = C.prototype.gen;\n\nvar iter = gen();\n\nassert.sameValue(log.length, 0, \"log.length\");\n\niter.next().then(v => {\n  assert.sameValue(log[0].name, \"before yield*\");\n\n  assert.sameValue(log[1].name, \"get next\");\n\n  assert.sameValue(v.value, \"next-value-1\");\n  assert.sameValue(v.done, false);\n\n  assert.sameValue(log.length, 2, \"log.length\");\n\n  iter.return(\"return-arg-1\").then(v => {\n    assert.sameValue(log[2].name, \"get return\");\n    assert.sameValue(log[2].thisValue.name, \"asyncIterator\", \"get return thisValue\");\n\n    assert.sameValue(log[3].name, \"call return\");\n    assert.sameValue(log[3].thisValue.name, \"asyncIterator\", \"return thisValue\");\n    assert.sameValue(log[3].args.length, 1, \"return args.length\");\n    assert.sameValue(log[3].args[0], \"return-arg-1\", \"return args[0]\");\n\n    assert.sameValue(log[4].name, \"get return then (1)\");\n    assert.sameValue(log[4].thisValue.name, \"return-promise-1\", \"get return then thisValue\");\n\n    assert.sameValue(log[5].name, \"call return then (1)\");\n    assert.sameValue(log[5].thisValue.name, \"return-promise-1\", \"return then thisValue\");\n    assert.sameValue(log[5].args.length, 2, \"return then args.length\");\n    assert.sameValue(typeof log[5].args[0], \"function\", \"return then args[0]\");\n    assert.sameValue(typeof log[5].args[1], \"function\", \"return then args[1]\");\n\n    assert.sameValue(log[6].name, \"get return done (1)\");\n    assert.sameValue(log[6].thisValue.name, \"return-result-1\", \"get return done thisValue\");\n\n    assert.sameValue(log[7].name, \"get return value (1)\");\n    assert.sameValue(log[7].thisValue.name, \"return-result-1\", \"get return value thisValue\");\n\n    assert.sameValue(v.value, \"return-value-1\");\n    assert.sameValue(v.done, false);\n\n    assert.sameValue(log.length, 8, \"log.length\");\n\n    iter.return(\"return-arg-2\").then(v => {\n      assert.sameValue(log[8].name, \"get return\");\n      assert.sameValue(log[8].thisValue.name, \"asyncIterator\", \"get return thisValue\");\n\n      assert.sameValue(log[9].name, \"call return\");\n      assert.sameValue(log[9].thisValue.name, \"asyncIterator\", \"return thisValue\");\n      assert.sameValue(log[9].args.length, 1, \"return args.length\");\n      assert.sameValue(log[9].args[0], \"return-arg-2\", \"return args[0]\");\n\n      assert.sameValue(log[10].name, \"get return then (2)\");\n      assert.sameValue(log[10].thisValue.name, \"return-promise-2\", \"get return then thisValue\");\n\n      assert.sameValue(log[11].name, \"call return then (2)\");\n      assert.sameValue(log[11].thisValue.name, \"return-promise-2\", \"return then thisValue\");\n      assert.sameValue(log[11].args.length, 2, \"return then args.length\");\n      assert.sameValue(typeof log[11].args[0], \"function\", \"return then args[0]\");\n      assert.sameValue(typeof log[11].args[1], \"function\", \"return then args[1]\");\n\n      assert.sameValue(log[12].name, \"get return done (2)\");\n      assert.sameValue(log[12].thisValue.name, \"return-result-2\", \"get return done thisValue\");\n\n      assert.sameValue(log[13].name, \"get return value (2)\");\n      assert.sameValue(log[13].thisValue.name, \"return-result-2\", \"get return value thisValue\");\n\n      assert.sameValue(v.value, \"return-value-2\");\n      assert.sameValue(v.done, true);\n\n      assert.sameValue(log.length, 14, \"log.length\");\n    }).then($DONE, $DONE);\n  }).catch($DONE);\n}).catch($DONE);\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--class--async-gen-method-static--yield-as-label-identifier-escaped",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-as-label-identifier-escaped.case\n// - src/async-generators/syntax/async-class-expr-static-method.template\n/*---\ndescription: yield is a reserved keyword within generator function bodies and may not be used as a label identifier. (Static async generator method as a ClassExpression element)\nesid: prod-AsyncGeneratorMethod\nfeatures: [async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      static MethodDefinition\n\n    MethodDefinition :\n      AsyncGeneratorMethod\n\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    LabelIdentifier : Identifier\n\n    It is a Syntax Error if this production has a [Yield] parameter and\n    StringValue of Identifier is \"yield\".\n\n---*/\n$DONOTEVALUATE();\n\n\nvar C = class { static async *gen() {\n    yi\\u0065ld: ;\n}};\n"
  ],
  [
    "test262-language--expressions--class--async-gen-method-static--yield-identifier-spread-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-identifier-spread-strict.case\n// - src/async-generators/default/async-class-expr-static-method.template\n/*---\ndescription: It's an early error if the AssignmentExpression is a function body with yield as an identifier in strict mode. (Static async generator method as a ClassExpression element)\nesid: prod-AsyncGeneratorMethod\nfeatures: [object-spread, async-iteration]\nflags: [generated, onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      static MethodDefinition\n\n    MethodDefinition :\n      AsyncGeneratorMethod\n\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n$DONOTEVALUATE();\n\n\nvar callCount = 0;\n\nvar C = class { static async *gen() {\n    callCount += 1;\n    return {\n         ...(function() {\n            var yield;\n            throw new Test262Error();\n         }()),\n      }\n}}\n\nvar gen = C.gen;\n\nvar iter = gen();\n\n\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--class--async-gen-method-static--yield-promise-reject-next-catch",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-promise-reject-next-catch.case\n// - src/async-generators/default/async-class-expr-static-method.template\n/*---\ndescription: yield Promise.reject(value) is treated as throw value (Static async generator method as a ClassExpression element)\nesid: prod-AsyncGeneratorMethod\nfeatures: [async-iteration]\nflags: [generated, async]\ninfo: |\n    ClassElement :\n      static MethodDefinition\n\n    MethodDefinition :\n      AsyncGeneratorMethod\n\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n---*/\nlet error = new Error();\n\n\nvar callCount = 0;\n\nvar C = class { static async *gen() {\n    callCount += 1;\n    yield Promise.reject(error);\n    yield \"unreachable\";\n}}\n\nvar gen = C.gen;\n\nvar iter = gen();\n\niter.next().then(() => {\n  throw new Test262Error(\"Promise incorrectly resolved.\");\n}).catch(rejectValue => {\n  // yield Promise.reject(error);\n  assert.sameValue(rejectValue, error);\n\n  iter.next().then(({done, value}) => {\n    // iter is closed now.\n    assert.sameValue(done, true, \"The value of IteratorResult.done is `true`\");\n    assert.sameValue(value, undefined, \"The value of IteratorResult.value is `undefined`\");\n  }).then($DONE, $DONE);\n});\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--class--async-method--array-destructuring-param-strict-body",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/array-destructuring-param-strict-body.case\n// - src/function-forms/syntax/cls-expr-async-meth.template\n/*---\ndescription: ArrayBindingPattern and Use Strict Directive are not allowed to coexist for the same function. (class expression async method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [rest-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n        with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n      a. If IsStatic of m is false, then\n        i. Let status be the result of performing\n          PropertyDefinitionEvaluation for m with arguments proto and\n          false.\n      [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncMethod is strict mode code, let strict be true. Otherwise\n       let strict be false.\n    4. Let scope be the LexicalEnvironment of the running execution context.\n    5. Let closure be ! AsyncFunctionCreate(Method, UniqueFormalParameters, AsyncFunctionBody,\n       scope, strict).\n    [...]\n\n\n    13.3.3.4 Static Semantics: IsSimpleParameterList\n\n    BindingElement : BindingPattern\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\nvar C = class {\n  static async method([element]) {\n    \"use strict\";\n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--async-method-static--await-as-label-identifier-escaped",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-functions/await-as-label-identifier-escaped.case\n// - src/async-functions/syntax/async-class-expr-static-method.template\n/*---\ndescription: await is a reserved keyword within generator function bodies and may not be used as a label identifier. (Static async method as a ClassExpression element)\nesid: prod-AsyncMethod\nfeatures: [async-functions]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      static MethodDefinition\n\n    MethodDefinition :\n      AsyncMethod\n\n    Async Function Definitions\n\n    AsyncMethod :\n      async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n\n    LabelIdentifier : Identifier\n\n    It is a Syntax Error if this production has a [Await] parameter and\n    StringValue of Identifier is \"await\".\n\n---*/\n$DONOTEVALUATE();\n\n\nvar C = class {\n  static async method() {\n    \\u0061wait: ;\n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--async-method-static--rest-param-strict-body",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/rest-param-strict-body.case\n// - src/function-forms/syntax/cls-expr-async-meth-static.template\n/*---\ndescription: RestParameter and Use Strict Directive are not allowed to coexist for the same function. (static class expression async method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [rest-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n      a. If IsStatic of m is false, then\n      b. Else,\n        Let status be the result of performing PropertyDefinitionEvaluation\n        for m with arguments F and false.\n    [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncMethod is strict mode code, let strict be true. Otherwise\n       let strict be false.\n    4. Let scope be the LexicalEnvironment of the running execution context.\n    5. Let closure be ! AsyncFunctionCreate(Method, UniqueFormalParameters, AsyncFunctionBody,\n       scope, strict).\n    [...]\n\n\n    14.1.13 Static Semantics: IsSimpleParameterList\n\n    FormalParameters : FormalParameterList , FunctionRestParameter\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\nvar C = class {\n  static async method(a,...rest) {\n    \"use strict\";\n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--async-method-static--rest-params-trailing-comma-early-error",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/rest-params-trailing-comma-early-error.case\n// - src/function-forms/syntax/cls-expr-async-meth-static.template\n/*---\ndescription: It's a syntax error if a FunctionRestParameter is followed by a trailing comma (static class expression async method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n      a. If IsStatic of m is false, then\n      b. Else,\n        Let status be the result of performing PropertyDefinitionEvaluation\n        for m with arguments F and false.\n    [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncMethod is strict mode code, let strict be true. Otherwise\n       let strict be false.\n    4. Let scope be the LexicalEnvironment of the running execution context.\n    5. Let closure be ! AsyncFunctionCreate(Method, UniqueFormalParameters, AsyncFunctionBody,\n       scope, strict).\n    [...]\n\n\n    Trailing comma in the parameters list\n\n    14.1 Function Definitions\n\n    FormalParameters[Yield, Await] :\n        [empty]\n        FunctionRestParameter[?Yield, ?Await]\n        FormalParameterList[?Yield, ?Await]\n        FormalParameterList[?Yield, ?Await] ,\n        FormalParameterList[?Yield, ?Await] , FunctionRestParameter[?Yield, ?Await]\n---*/\n$DONOTEVALUATE();\n\nvar C = class {\n  static async method(...a,) {\n    \n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--cpn-class-expr-fields-methods-computed-property-name-from-await-expression",
    "module",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/computed-property-names/computed-property-name-from-await-expression.case\n// - src/computed-property-names/evaluation/class-expression-fields-methods.template\n/*---\ndescription: Computed property name from condition expression (ComputedPropertyName in ClassExpression)\nesid: prod-ComputedPropertyName\nfeatures: [computed-property-names, top-level-await, class-fields-public, class-static-fields-public]\nflags: [generated, async, module]\ninfo: |\n    ClassExpression:\n      classBindingIdentifier opt ClassTail\n\n    ClassTail:\n      ClassHeritage opt { ClassBody opt }\n\n    ClassBody:\n      ClassElementList\n\n    ClassElementList:\n      ClassElement\n\n    ClassElement:\n      MethodDefinition\n\n    MethodDefinition:\n      PropertyName ...\n      get PropertyName ...\n      set PropertyName ...\n\n    PropertyName:\n      ComputedPropertyName\n\n    ComputedPropertyName:\n      [ AssignmentExpression ]\n---*/\ntry {\n\n\nlet C = class {\n  [await 9] = () => {\n    return 9;\n  };\n\n  static [await 9] = () => {\n    return 9;\n  };\n};\n\nlet c = new C();\n\nassert.sameValue(\n  c[await 9](),\n  9\n);\nassert.sameValue(\n  C[await 9](),\n  9\n);\nassert.sameValue(\n  c[String(await 9)](),\n  9\n);\nassert.sameValue(\n  C[String(await 9)](),\n  9\n);\n\n} catch (e) {\n  $DONE(e);\n}\n$DONE();\n"
  ],
  [
    "test262-language--expressions--class--dstr--async-gen-meth-ary-ptrn-elem-id-iter-val-array-prototype",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-elem-id-iter-val-array-prototype.case\n// - src/dstr-binding/default/cls-expr-async-gen-meth.template\n/*---\ndescription: Array destructuring uses overriden Array.prototype[Symbol.iterator] (class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [Symbol.iterator, generators, async-iteration]\nflags: [generated, async]\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n\n    Runtime Semantics: IteratorBindingInitialization\n\n    SingleNameBinding : BindingIdentifier Initializer_opt\n\n    1. Let bindingId be StringValue of BindingIdentifier.\n    2. Let lhs be ? ResolveBinding(bindingId, environment).\n    3. If iteratorRecord.[[Done]] is false, then\n        a. Let next be IteratorStep(iteratorRecord).\n        b. If next is an abrupt completion, set iteratorRecord.[[Done]] to true.\n        c. ReturnIfAbrupt(next).\n        d. If next is false, set iteratorRecord.[[Done]] to true.\n        e. Else,\n            i. Let v be IteratorValue(next).\n            ii. If v is an abrupt completion, set iteratorRecord.[[Done]] to true.\n            iii. ReturnIfAbrupt(v).\n    [...]\n    7. Return InitializeReferencedBinding(lhs, v).\n\n---*/\nArray.prototype[Symbol.iterator] = function* () {\n    if (this.length > 0) {\n        yield this[0];\n    }\n    if (this.length > 1) {\n        yield this[1];\n    }\n    if (this.length > 2) {\n        yield 42;\n    }\n};\n\n\nvar callCount = 0;\nvar C = class {\n  async *method([x, y, z]) {\n    assert.sameValue(x, 1);\n    assert.sameValue(y, 2);\n    assert.sameValue(z, 42);\n    callCount = callCount + 1;\n  }\n};\n\nnew C().method([1, 2, 3]).next().then(() => {\n    assert.sameValue(callCount, 1, 'invoked exactly once');    \n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--class--dstr--async-private-gen-meth-static-dflt-obj-ptrn-rest-getter",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-rest-getter.case\n// - src/dstr-binding/default/cls-expr-async-private-gen-meth-static-dflt.template\n/*---\ndescription: Getter is called when obj is being deconstructed to a rest Object (private static class expression async generator method (default parameter))\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [object-rest, class, class-static-methods-private, async-iteration]\nflags: [generated, async]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation\n           for m with arguments F and false.\n    [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n---*/\nvar count = 0;\n\n\nvar callCount = 0;\nvar C = class {\n  static async * #method({...x} = { get v() { count++; return 2; } }) {\n    assert.sameValue(count, 1);\n\n    verifyProperty(x, \"v\", {\n      enumerable: true,\n      writable: true,\n      configurable: true,\n      value: 2\n    });\n    callCount = callCount + 1;\n  }\n\n  static get method() {\n    return this.#method;\n  }\n};\n\nC.method().next().then(() => {\n    assert.sameValue(callCount, 1, 'invoked exactly once');    \n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--class--dstr--gen-meth-static-ary-ptrn-rest-not-final-ary",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case\n// - src/dstr-binding/default/cls-expr-gen-meth-static.template\n/*---\ndescription: Rest element (array binding pattern) may not be followed by any element (static class expression generator method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [generators, destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation\n           for m with arguments F and false.\n    [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod :\n        * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nvar C = class {\n  static *method([...[x], y]) {\n    \n    callCount = callCount + 1;\n  }\n};\n\nC.method([1, 2, 3]).next();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--class--dstr--gen-meth-static-obj-ptrn-prop-obj",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-prop-obj.case\n// - src/dstr-binding/default/cls-expr-gen-meth-static.template\n/*---\ndescription: Object binding pattern with \"nested\" object binding pattern not using initializer (static class expression generator method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [generators, destructuring-binding]\nflags: [generated]\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation\n           for m with arguments F and false.\n    [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod :\n        * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.7 Runtime Semantics: KeyedBindingInitialization\n\n    [...]\n    3. If Initializer is present and v is undefined, then\n       [...]\n    4. Return the result of performing BindingInitialization for BindingPattern\n       passing v and environment as arguments.\n---*/\n\nvar callCount = 0;\nvar C = class {\n  static *method({ w: { x, y, z } = { x: 4, y: 5, z: 6 } }) {\n    assert.sameValue(x, undefined);\n    assert.sameValue(y, undefined);\n    assert.sameValue(z, 7);\n\n    assert.throws(ReferenceError, function() {\n      w;\n    });\n    callCount = callCount + 1;\n  }\n};\n\nC.method({ w: { x: undefined, z: 7 } }).next();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--class--dstr--meth-static-dflt-ary-ptrn-rest-id-exhausted",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case\n// - src/dstr-binding/default/cls-expr-meth-static-dflt.template\n/*---\ndescription: RestElement applied to an exhausted iterator (static class expression method (default parameter))\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [Symbol.iterator, destructuring-binding, default-parameters]\nflags: [generated]\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.6 Runtime Semantics: IteratorBindingInitialization\n    BindingRestElement : ... BindingIdentifier\n    1. Let lhs be ResolveBinding(StringValue of BindingIdentifier,\n       environment).\n    2. ReturnIfAbrupt(lhs). 3. Let A be ArrayCreate(0). 4. Let n=0. 5. Repeat,\n       [...]\n       b. If iteratorRecord.[[done]] is true, then\n          i. If environment is undefined, return PutValue(lhs, A).\n          ii. Return InitializeReferencedBinding(lhs, A).\n\n---*/\n\nvar callCount = 0;\nvar C = class {\n  static method([, , ...x] = [1, 2]) {\n    assert(Array.isArray(x));\n    assert.sameValue(x.length, 0);\n    callCount = callCount + 1;\n  }\n};\n\nC.method();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--class--dstr--meth-static-dflt-ary-ptrn-rest-init-ary",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-init-ary.case\n// - src/dstr-binding/default/cls-expr-meth-static-dflt.template\n/*---\ndescription: Rest element (nested array pattern) does not support initializer (static class expression method (default parameter))\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [destructuring-binding, default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nvar C = class {\n  static method([...[ x ] = []] = []) {\n    \n    callCount = callCount + 1;\n  }\n};\n\nC.method();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--class--dstr--meth-static-obj-ptrn-rest-getter",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-rest-getter.case\n// - src/dstr-binding/default/cls-expr-meth-static.template\n/*---\ndescription: Getter is called when obj is being deconstructed to a rest Object (static class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [object-rest, destructuring-binding]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n---*/\nvar count = 0;\n\nvar callCount = 0;\nvar C = class {\n  static method({...x}) {\n    assert.sameValue(count, 1);\n\n    verifyProperty(x, \"v\", {\n      enumerable: true,\n      writable: true,\n      configurable: true,\n      value: 2\n    });\n    callCount = callCount + 1;\n  }\n};\n\nC.method({ get v() { count++; return 2; } });\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--class--dstr--private-gen-meth-dflt-ary-ptrn-rest-not-final-id",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-id.case\n// - src/dstr-binding/default/cls-expr-private-gen-meth-dflt.template\n/*---\ndescription: Rest element (identifier) may not be followed by any element (private class expression method (default parameter))\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [class, class-methods-private, generators, destructuring-binding, default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod :\n        * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nvar C = class {\n  * #method([...x, y] = [1, 2, 3]) {\n    \n    callCount = callCount + 1;\n  }\n\n  get method() {\n    return this.#method;\n  }\n};\n\nnew C().method().next();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--class--dstr--private-gen-meth-static-ary-ptrn-rest-init-obj",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-init-obj.case\n// - src/dstr-binding/default/cls-expr-private-gen-meth-static.template\n/*---\ndescription: Rest element (nested object pattern) does not support initializer (private static class expression generator method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [class, class-static-methods-private, generators, destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation\n           for m with arguments F and false.\n    [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod :\n        * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nvar C = class {\n  static * #method([...{ x } = []]) {\n    \n    callCount = callCount + 1;\n  }\n\n  static get method() {\n    return this.#method;\n  }\n};\n\nC.method([]).next();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--class--dstr--private-meth-dflt-obj-ptrn-rest-skip-non-enumerable",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case\n// - src/dstr-binding/default/cls-expr-private-meth-dflt.template\n/*---\ndescription: Rest object doesn't contain non-enumerable properties (private class expression method (default parameter))\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [object-rest, class, class-methods-private, destructuring-binding, default-parameters]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n---*/\nvar o = {a: 3, b: 4};\nObject.defineProperty(o, \"x\", { value: 4, enumerable: false });\n\nvar callCount = 0;\nvar C = class {\n  #method({...rest} = o) {\n    assert.sameValue(rest.x, undefined);\n\n    verifyProperty(rest, \"a\", {\n      enumerable: true,\n      writable: true,\n      configurable: true,\n      value: 3\n    });\n\n    verifyProperty(rest, \"b\", {\n      enumerable: true,\n      writable: true,\n      configurable: true,\n      value: 4\n    });\n    callCount = callCount + 1;\n  }\n\n  get method() {\n    return this.#method;\n  }\n};\n\nnew C().method();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--class--dstr--private-meth-static-ary-init-iter-no-close",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-init-iter-no-close.case\n// - src/dstr-binding/default/cls-expr-private-meth-static.template\n/*---\ndescription: Iterator is not closed when exhausted by pattern evaluation (private static class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [Symbol.iterator, class, class-static-methods-private, destructuring-binding]\nflags: [generated]\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.5 Runtime Semantics: BindingInitialization\n\n    BindingPattern : ArrayBindingPattern\n\n    [...]\n    4. If iteratorRecord.[[done]] is false, return ? IteratorClose(iterator,\n       result).\n    [...]\n\n---*/\nvar doneCallCount = 0;\nvar iter = {};\niter[Symbol.iterator] = function() {\n  return {\n    next: function() {\n      return { value: null, done: true };\n    },\n    return: function() {\n      doneCallCount += 1;\n      return {};\n    }\n  };\n};\n\nvar callCount = 0;\nvar C = class {\n  static #method([x]) {\n    assert.sameValue(doneCallCount, 0);\n    callCount = callCount + 1;\n  }\n\n  static get method() {\n    return this.#method;\n  }\n};\n\nC.method(iter);\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--class--dstr--private-meth-static-dflt-ary-ptrn-rest-not-final-id",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-id.case\n// - src/dstr-binding/default/cls-expr-private-meth-static-dflt.template\n/*---\ndescription: Rest element (identifier) may not be followed by any element (private static class expression method (default parameter))\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [class, class-static-methods-private, destructuring-binding, default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nvar C = class {\n  static #method([...x, y] = [1, 2, 3]) {\n    \n    callCount = callCount + 1;\n  }\n\n  static get method() {\n    return this.#method;\n  }\n};\n\nC.method();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--class--elements--after-same-line-gen-rs-field-identifier-initializer",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/rs-field-identifier-initializer.case\n// - src/class-elements/productions/cls-expr-after-same-line-gen.template\n/*---\ndescription: Valid FieldDefinition (field definitions after a generator in the same line)\nesid: prod-FieldDefinition\nfeatures: [class-fields-public, generators, class]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassElement :\n      ...\n      FieldDefinition ;\n      ;\n\n    FieldDefinition :\n      ClassElementName Initializer _opt\n\n    ClassElementName :\n      PropertyName\n\n    PropertyName :\n      LiteralPropertyName\n      ComputedPropertyName\n\n    LiteralPropertyName :\n      IdentifierName\n\n    IdentifierName ::\n      IdentifierStart\n      IdentifierName IdentifierPart\n\n    IdentifierStart ::\n      UnicodeIDStart\n      $\n      _\n      \\ UnicodeEscapeSequence\n\n    IdentifierPart::\n      UnicodeIDContinue\n      $\n      \\ UnicodeEscapeSequence\n      <ZWNJ> <ZWJ>\n\n    UnicodeIDStart::\n      any Unicode code point with the Unicode property \"ID_Start\"\n\n    UnicodeIDContinue::\n      any Unicode code point with the Unicode property \"ID_Continue\"\n\n\n    NOTE 3\n    The sets of code points with Unicode properties \"ID_Start\" and\n    \"ID_Continue\" include, respectively, the code points with Unicode\n    properties \"Other_ID_Start\" and \"Other_ID_Continue\".\n\n---*/\n\n\nvar C = class {\n  *m() { return 42; } $ = 1; _ = 1; \\u{6F} = 1; \\u2118 = 1; ZW_\\u200C_NJ = 1; ZW_\\u200D_J = 1;\n  \n}\n\nvar c = new C();\n\nassert.sameValue(c.m().next().value, 42);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"m\"),\n  \"m doesn't appear as an own property on the C instance\"\n);\nassert.sameValue(c.m, C.prototype.m);\n\nverifyProperty(C.prototype, \"m\", {\n  enumerable: false,\n  configurable: true,\n  writable: true,\n});\n\nassert.sameValue(c.$, 1);\nassert.sameValue(c._, 1);\nassert.sameValue(c.\\u{6F}, 1);\nassert.sameValue(c.\\u2118, 1);\nassert.sameValue(c.ZW_\\u200C_NJ, 1);\nassert.sameValue(c.ZW_\\u200D_J, 1);\n"
  ],
  [
    "test262-language--expressions--class--elements--async-gen-private-method--yield-star-async-return",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-star-async-return.case\n// - src/async-generators/default/async-class-expr-private-method.template\n/*---\ndescription: execution order for yield* with async iterator and return() (Async generator method as a ClassExpression element)\nesid: prod-AsyncGeneratorPrivateMethod\nfeatures: [async-iteration, Symbol.asyncIterator, class-methods-private]\nflags: [generated, async]\ninfo: |\n    ClassElement :\n      PrivateMethodDefinition\n\n    MethodDefinition :\n      AsyncGeneratorMethod\n\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    YieldExpression: yield * AssignmentExpression\n\n    ...\n    6. Repeat\n      ...\n      c. Else,\n        i. Assert: received.[[Type]] is return.\n        ii. Let return be ? GetMethod(iterator, \"return\").\n        iii. If return is undefined, return Completion(received).\n        iv. Let innerReturnResult be ? Call(return, iterator, « received.[[Value]] »).\n        v. If generatorKind is async, then set innerReturnResult to ? Await(innerReturnResult).\n        ...\n        vii. Let done be ? IteratorComplete(innerReturnResult).\n        viii. If done is true, then\n             1. Let value be ? IteratorValue(innerReturnResult).\n             2. If generatorKind is async, then set value to ? Await(value).\n             3. Return Completion{[[Type]]: return, [[Value]]: value, [[Target]]: empty}.\n        ix. If generatorKind is async, then let received be AsyncGeneratorYield(? IteratorValue(innerResult)).\n        ...\n\n    AsyncGeneratorYield ( value )\n    ...\n    8. Return ! AsyncGeneratorResolve(generator, value, false).\n    ...\n\n---*/\nvar log = [];\nvar obj = {\n  [Symbol.asyncIterator]() {\n    var returnCount = 0;\n    return {\n      name: 'asyncIterator',\n      get next() {\n        log.push({ name: \"get next\" });\n        return function() {\n          return {\n            value: \"next-value-1\",\n            done: false\n          };\n        };\n      },\n      get return() {\n        log.push({\n          name: \"get return\",\n          thisValue: this\n        });\n        return function() {\n          log.push({\n            name: \"call return\",\n            thisValue: this,\n            args: [...arguments]\n          });\n\n          returnCount++;\n          if (returnCount == 1) {\n            return {\n              name: \"return-promise-1\",\n              get then() {\n                log.push({\n                  name: \"get return then (1)\",\n                  thisValue: this\n                });\n                return function(resolve) {\n                  log.push({\n                    name: \"call return then (1)\",\n                    thisValue: this,\n                    args: [...arguments]\n                  });\n\n                  resolve({\n                    name: \"return-result-1\",\n                    get value() {\n                      log.push({\n                        name: \"get return value (1)\",\n                        thisValue: this\n                      });\n                      return \"return-value-1\";\n                    },\n                    get done() {\n                      log.push({\n                        name: \"get return done (1)\",\n                        thisValue: this\n                      });\n                      return false;\n                    }\n                  });\n                };\n              }\n            };\n          }\n\n          return {\n            name: \"return-promise-2\",\n            get then() {\n              log.push({\n                name: \"get return then (2)\",\n                thisValue: this\n              });\n              return function(resolve) {\n                log.push({\n                  name: \"call return then (2)\",\n                  thisValue: this,\n                  args: [...arguments]\n                });\n\n                resolve({\n                  name: \"return-result-2\",\n                  get value() {\n                    log.push({\n                      name: \"get return value (2)\",\n                      thisValue: this\n                    });\n                    return \"return-value-2\";\n                  },\n                  get done() {\n                    log.push({\n                      name: \"get return done (2)\",\n                      thisValue: this\n                    });\n                    return true;\n                  }\n                });\n              };\n            }\n          };\n        };\n      }\n    };\n  }\n};\n\n\n\nvar callCount = 0;\n\nvar C = class {\n    async *#gen() {\n        callCount += 1;\n        log.push({ name: \"before yield*\" });\n          yield* obj;\n\n    }\n    get gen() { return this.#gen; }\n}\n\nconst c = new C();\n\n// Test the private fields do not appear as properties before set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"#gen does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"#gen does not appear as an own property on C constructor\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"#gen\"),\n  \"#gen does not appear as an own property on C instance\"\n);\n\nvar iter = c.gen();\n\nassert.sameValue(log.length, 0, \"log.length\");\n\niter.next().then(v => {\n  assert.sameValue(log[0].name, \"before yield*\");\n\n  assert.sameValue(log[1].name, \"get next\");\n\n  assert.sameValue(v.value, \"next-value-1\");\n  assert.sameValue(v.done, false);\n\n  assert.sameValue(log.length, 2, \"log.length\");\n\n  iter.return(\"return-arg-1\").then(v => {\n    assert.sameValue(log[2].name, \"get return\");\n    assert.sameValue(log[2].thisValue.name, \"asyncIterator\", \"get return thisValue\");\n\n    assert.sameValue(log[3].name, \"call return\");\n    assert.sameValue(log[3].thisValue.name, \"asyncIterator\", \"return thisValue\");\n    assert.sameValue(log[3].args.length, 1, \"return args.length\");\n    assert.sameValue(log[3].args[0], \"return-arg-1\", \"return args[0]\");\n\n    assert.sameValue(log[4].name, \"get return then (1)\");\n    assert.sameValue(log[4].thisValue.name, \"return-promise-1\", \"get return then thisValue\");\n\n    assert.sameValue(log[5].name, \"call return then (1)\");\n    assert.sameValue(log[5].thisValue.name, \"return-promise-1\", \"return then thisValue\");\n    assert.sameValue(log[5].args.length, 2, \"return then args.length\");\n    assert.sameValue(typeof log[5].args[0], \"function\", \"return then args[0]\");\n    assert.sameValue(typeof log[5].args[1], \"function\", \"return then args[1]\");\n\n    assert.sameValue(log[6].name, \"get return done (1)\");\n    assert.sameValue(log[6].thisValue.name, \"return-result-1\", \"get return done thisValue\");\n\n    assert.sameValue(log[7].name, \"get return value (1)\");\n    assert.sameValue(log[7].thisValue.name, \"return-result-1\", \"get return value thisValue\");\n\n    assert.sameValue(v.value, \"return-value-1\");\n    assert.sameValue(v.done, false);\n\n    assert.sameValue(log.length, 8, \"log.length\");\n\n    iter.return(\"return-arg-2\").then(v => {\n      assert.sameValue(log[8].name, \"get return\");\n      assert.sameValue(log[8].thisValue.name, \"asyncIterator\", \"get return thisValue\");\n\n      assert.sameValue(log[9].name, \"call return\");\n      assert.sameValue(log[9].thisValue.name, \"asyncIterator\", \"return thisValue\");\n      assert.sameValue(log[9].args.length, 1, \"return args.length\");\n      assert.sameValue(log[9].args[0], \"return-arg-2\", \"return args[0]\");\n\n      assert.sameValue(log[10].name, \"get return then (2)\");\n      assert.sameValue(log[10].thisValue.name, \"return-promise-2\", \"get return then thisValue\");\n\n      assert.sameValue(log[11].name, \"call return then (2)\");\n      assert.sameValue(log[11].thisValue.name, \"return-promise-2\", \"return then thisValue\");\n      assert.sameValue(log[11].args.length, 2, \"return then args.length\");\n      assert.sameValue(typeof log[11].args[0], \"function\", \"return then args[0]\");\n      assert.sameValue(typeof log[11].args[1], \"function\", \"return then args[1]\");\n\n      assert.sameValue(log[12].name, \"get return done (2)\");\n      assert.sameValue(log[12].thisValue.name, \"return-result-2\", \"get return done thisValue\");\n\n      assert.sameValue(log[13].name, \"get return value (2)\");\n      assert.sameValue(log[13].thisValue.name, \"return-result-2\", \"get return value thisValue\");\n\n      assert.sameValue(v.value, \"return-value-2\");\n      assert.sameValue(v.done, true);\n\n      assert.sameValue(log.length, 14, \"log.length\");\n    }).then($DONE, $DONE);\n  }).catch($DONE);\n}).catch($DONE);\n\nassert.sameValue(callCount, 1);\n\n// Test the private fields do not appear as properties after set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"#gen does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"#gen does not appear as an own property on C constructor\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"#gen\"),\n  \"#gen does not appear as an own property on C instance\"\n);\n"
  ],
  [
    "test262-language--expressions--class--elements--async-gen-private-method-static--await-as-binding-identifier",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-generators/await-as-binding-identifier.case\n// - src/async-generators/syntax/async-class-expr-static-private-method.template\n/*---\ndescription: await is a reserved keyword within generator function bodies and may not be used as a binding identifier. (Static async generator private method as a ClassExpression element)\nesid: prod-AsyncGeneratorMethod\nfeatures: [async-iteration, class-static-methods-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      static PrivateMethodDefinition\n\n    MethodDefinition :\n      AsyncGeneratorMethod\n\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * # PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    BindingIdentifier : Identifier\n\n    It is a Syntax Error if this production has a [Await] parameter and\n    StringValue of Identifier is \"await\".\n\n---*/\n$DONOTEVALUATE();\n\n\nvar C = class { static async *#gen() {\n    var await;\n}};\n"
  ],
  [
    "test262-language--expressions--class--elements--async-gen-private-method-static--yield-identifier-spread-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-identifier-spread-strict.case\n// - src/async-generators/default/async-class-expr-static-private-method.template\n/*---\ndescription: It's an early error if the AssignmentExpression is a function body with yield as an identifier in strict mode. (Static async generator method as a ClassExpression element)\nesid: prod-AsyncGeneratorPrivateMethod\nfeatures: [object-spread, async-iteration, class-static-methods-private]\nflags: [generated, onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      static PrivateMethodDefinition\n\n    MethodDefinition :\n      AsyncGeneratorMethod\n\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n$DONOTEVALUATE();\n\n\nvar callCount = 0;\n\nvar C = class {\n    static async *#gen() {\n        callCount += 1;\n        return {\n             ...(function() {\n                var yield;\n                throw new Test262Error();\n             }()),\n          }\n    }\n    static get gen() { return this.#gen; }\n}\n\n// Test the private fields do not appear as properties before set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"#gen does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"#gen does not appear as an own property on C constructor\"\n);\n\nvar iter = C.gen();\n\n\n\nassert.sameValue(callCount, 1);\n\n// Test the private fields do not appear as properties after set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"#gen does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"#gen does not appear as an own property on C constructor\"\n);\n"
  ],
  [
    "test262-language--expressions--class--elements--async-gen-private-method-static--yield-promise-reject-next",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-promise-reject-next.case\n// - src/async-generators/default/async-class-expr-static-private-method.template\n/*---\ndescription: yield Promise.reject(value) is treated as throw value (Static async generator method as a ClassExpression element)\nesid: prod-AsyncGeneratorPrivateMethod\nfeatures: [async-iteration, class-static-methods-private]\nflags: [generated, async]\ninfo: |\n    ClassElement :\n      static PrivateMethodDefinition\n\n    MethodDefinition :\n      AsyncGeneratorMethod\n\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n---*/\nlet error = new Error();\n\n\nvar callCount = 0;\n\nvar C = class {\n    static async *#gen() {\n        callCount += 1;\n        yield Promise.reject(error);\n        yield \"unreachable\";\n    }\n    static get gen() { return this.#gen; }\n}\n\n// Test the private fields do not appear as properties before set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"#gen does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"#gen does not appear as an own property on C constructor\"\n);\n\nvar iter = C.gen();\n\niter.next().then(() => {\n  throw new Test262Error(\"Promise incorrectly resolved.\");\n}, rejectValue => {\n  // yield Promise.reject(error);\n  assert.sameValue(rejectValue, error);\n\n  iter.next().then(({done, value}) => {\n    // iter is closed now.\n    assert.sameValue(done, true, \"The value of IteratorResult.done is `true`\");\n    assert.sameValue(value, undefined, \"The value of IteratorResult.value is `undefined`\");\n  }).then($DONE, $DONE);\n}).catch($DONE);\n\nassert.sameValue(callCount, 1);\n\n// Test the private fields do not appear as properties after set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"#gen does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"#gen does not appear as an own property on C constructor\"\n);\n"
  ],
  [
    "test262-language--expressions--class--elements--async-gen-private-method-static--yield-spread-obj",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-spread-obj.case\n// - src/async-generators/default/async-class-expr-static-private-method.template\n/*---\ndescription: Use yield value in a object spread position (Static async generator method as a ClassExpression element)\nesid: prod-AsyncGeneratorPrivateMethod\nfeatures: [object-spread, async-iteration, class-static-methods-private]\nflags: [generated, async]\ninfo: |\n    ClassElement :\n      static PrivateMethodDefinition\n\n    MethodDefinition :\n      AsyncGeneratorMethod\n\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n\n\nvar callCount = 0;\n\nvar C = class {\n    static async *#gen() {\n        callCount += 1;\n        yield {\n            ...yield,\n            y: 1,\n            ...yield yield,\n          };\n    }\n    static get gen() { return this.#gen; }\n}\n\n// Test the private fields do not appear as properties before set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"#gen does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"#gen does not appear as an own property on C constructor\"\n);\n\nvar iter = C.gen();\n\niter.next();\niter.next({ x: 42 });\niter.next({ x: 'lol' });\nvar item = iter.next({ y: 39 });\n\nitem.then(({ done, value }) => {\n  assert.sameValue(value.x, 42);\n  assert.sameValue(value.y, 39);\n  assert.sameValue(Object.keys(value).length, 2);\n  assert.sameValue(done, false);\n}).then($DONE, $DONE);\n\nassert.sameValue(callCount, 1);\n\n// Test the private fields do not appear as properties after set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"#gen does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"#gen does not appear as an own property on C constructor\"\n);\n"
  ],
  [
    "test262-language--expressions--class--elements--class-name-static-initializer-default-export",
    "module",
    true,
    "standards",
    "// Copyright 2019 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-runtime-semantics-classdefinitionevaluation\ndescription: >\n    The class-name is present when executing static field initializers of default-exported classes.\ninfo: |\n    14.6.13 Runtime Semantics: ClassDefinitionEvaluation\n\n    [...]\n    17. Perform MakeClassConstructor(F).\n    18. If className is not undefined, then\n        a. Perform SetFunctionName(F, className).\n    [...]\n\nflags: [module]\nfeatures: [class-static-fields-public]\n---*/\n\nvar className;\n\nexport default class {\n    static f = (className = this.name);\n}\n\nassert.sameValue(className, \"default\");\n"
  ],
  [
    "test262-language--expressions--class--elements--evaluation-error--computed-name-toprimitive-err",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/computed-name-toprimitive-err.case\n// - src/class-elements/class-evaluation-error/cls-expr.template\n/*---\ndescription: Custom error evaluating a computed property name (field definitions in a class expression)\nesid: sec-runtime-semantics-classdefinitionevaluation\nfeatures: [class-fields-public, computed-property-names, Symbol.toPrimitive, class]\nflags: [generated]\ninfo: |\n    Runtime Semantics: ClassDefinitionEvaluation\n\n    ...\n    27. For each ClassElement e in order from elements\n      a. If IsStatic of me is false, then\n        i. Let fields be the result of performing ClassElementEvaluation for e with arguments proto and false.\n      b. Else,\n        i. Let fields be the result of performing ClassElementEvaluation for e with arguments F and false.\n      c. If fields is an abrupt completion, then\n        i. Set the running execution context's LexicalEnvironment to lex.\n        ii. Set the running execution context's PrivateNameEnvironment to outerPrivateEnvironment.\n        iii. Return Completion(status).\n    ...\n\n    Runtime Semantics: ClassElementEvaluation\n\n    ClassElement: FieldDefinition;\n      Return ClassFieldDefinitionEvaluation of FieldDefinition with parameter false and object.\n\n    Runtime Semantics: ClassFieldDefinitionEvaluation\n      With parameters isStatic and homeObject.\n\n    1. Let fieldName be the result of evaluating ClassElementName.\n    2. ReturnIfAbrupt(fieldName).\n    ...\n\n    Runtime Semantics: Evaluation\n      ComputedPropertyName: [ AssignmentExpression ]\n\n    1. Let exprValue be the result of evaluating AssignmentExpression.\n    2. Let propName be ? GetValue(exprValue).\n    3. Return ? ToPropertyKey(propName).\n\n---*/\nvar obj = {\n  [Symbol.toPrimitive]: function() {\n    throw new Test262Error();\n  }\n};\n\n\n\nfunction evaluate() {\n  var C = class {\n    [obj]\n  };\n}\n\nassert.throws(Test262Error, evaluate);\n"
  ],
  [
    "test262-language--expressions--class--elements--fields-asi-4",
    "script",
    false,
    "standards",
    "// Copyright (C) 2017 Valerie Young. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: ASI test in field declarations -- error when generator interpreted as multiplication\nesid: sec-automatic-semicolon-insertion\nfeatures: [class, class-fields-public, generators]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nvar C = class {\n  x = 42\n  *gen() {}\n}\n"
  ],
  [
    "test262-language--expressions--class--elements--fields-duplicate-privatenames",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2017 Valerie Young.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: Syntax error if the same private field defined twice\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-private]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n  Static Semantics: Early Errors\n\n    ClassBody : ClassElementList\n    It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries.\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #x;\n  #x;\n}\n"
  ],
  [
    "test262-language--expressions--class--elements--gen-private-method--yield-as-identifier-reference-escaped",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/generators/yield-as-identifier-reference-escaped.case\n// - src/generators/syntax/class-expr-private-method.template\n/*---\ndescription: yield is a reserved keyword within generator function bodies and may not be used as an identifier reference. (Generator private method as a ClassExpression element)\nesid: prod-GeneratorMethod\nfeatures: [generators, class-methods-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      PrivateMethodDefinition\n\n    MethodDefinition :\n      GeneratorMethod\n\n    14.4 Generator Function Definitions\n\n    GeneratorMethod :\n      * # PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n\n    IdentifierReference : Identifier\n\n    It is a Syntax Error if this production has a [Yield] parameter and\n    StringValue of Identifier is \"yield\".\n\n---*/\n$DONOTEVALUATE();\n\nvar C = class {*#gen() {\n    void yi\\u0065ld;\n}};\n"
  ],
  [
    "test262-language--expressions--class--elements--gen-private-method-static--yield-identifier-spread-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/generators/yield-identifier-spread-strict.case\n// - src/generators/default/class-expr-static-private-method.template\n/*---\ndescription: It's an early error if the AssignmentExpression is a function body with yield as an identifier in strict mode. (Static generator private method as a ClassExpression element)\nesid: prod-GeneratorPrivateMethod\nfeatures: [object-spread, generators, class-static-methods-private]\nflags: [generated, onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      static PrivateMethodDefinition\n\n    MethodDefinition :\n      GeneratorMethod\n\n    14.4 Generator Function Definitions\n\n    GeneratorMethod :\n      * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\n\nvar C = class {\n    static *#gen() {\n        callCount += 1;\n        return {\n             ...(function() {\n                var yield;\n                throw new Test262Error();\n             }()),\n          }\n    }\n    static get gen() { return this.#gen; }\n}\n\n// Test the private fields do not appear as properties before set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C constructor\"\n);\n\nvar iter = C.gen();\n\n\n\nassert.sameValue(callCount, 1);\n\n// Test the private fields do not appear as properties before set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C constructor\"\n);\n"
  ],
  [
    "test262-language--expressions--class--elements--nested-private-arrow-fnc-init-err-contains-super",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/init-err-contains-super.case\n// - src/class-elements/initializer-error/cls-expr-fields-private-arrow-fnc-nested.template\n/*---\ndescription: Syntax error if `super()` used in class field (private field, arrow function expression)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-public, arrow-function, class-fields-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n      FieldDefinition:\n        PropertyNameInitializeropt\n\n      - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #x = () => {\n    var t = () => super();\n  }\n}\n"
  ],
  [
    "test262-language--expressions--class--elements--nested-private-derived-cls-indirect-eval-contains-superproperty-2",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/eval-contains-superproperty-2.case\n// - src/class-elements/initializer-eval-super-property/cls-expr-private-fields-indirect-eval-nested.template\n/*---\ndescription: super['x'] in StatementList of eval (indirect eval)\nesid: sec-performeval-rules-in-initializer\nfeatures: [class, class-fields-public, class-fields-private]\nflags: [generated]\ninfo: |\n    The remaining eval rules apply as outside a constructor, inside a method, and inside a function.\n\n    Additional Early Error Rules for Eval Outside Methods\n\n      These static semantics are applied by PerformEval when a direct eval call occurs outside of a MethodDefinition.\n\n      ScriptBody : StatementList\n\n      It is a Syntax Error if StatementList Contains SuperProperty.\n\n---*/\n\n\nvar executed = false;\nvar A = class {}\nvar C = class extends A {\n  #x = (0, eval)('executed = true; super[\"x\"];');\n};\n\nassert.throws(SyntaxError, function() {\n  new C();\n});\n\nassert.sameValue(executed, false);\n"
  ],
  [
    "test262-language--expressions--class--elements--nested-static-private-init-err-contains-super",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/init-err-contains-super.case\n// - src/class-elements/initializer-error/cls-expr-fields-static-private-name-nested.template\n/*---\ndescription: Syntax error if `super()` used in class field (static PrivateName)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-public, class-static-fields-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n      FieldDefinition:\n        PropertyNameInitializeropt\n\n      - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true.\n\n---*/\n\n$DONOTEVALUATE();\n\nvar C = class {\n  static #x = () => super();\n}\n"
  ],
  [
    "test262-language--expressions--class--elements--new-no-sc-line-method-computed-symbol-names",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/computed-symbol-names.case\n// - src/class-elements/productions/cls-expr-new-no-sc-line-method.template\n/*---\ndescription: Computed property symbol names (field definitions followed by a method in a new line without a semicolon)\nesid: prod-FieldDefinition\nfeatures: [class-fields-public, Symbol, computed-property-names, class]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassElement:\n      ...\n      FieldDefinition ;\n\n    FieldDefinition:\n      ClassElementName Initializer_opt\n\n    ClassElementName:\n      PropertyName\n\n---*/\nvar x = Symbol();\nvar y = Symbol();\n\n\n\nvar C = class {\n  [x]; [y] = 42\n  m() { return 42; }\n  \n}\n\nvar c = new C();\n\nassert.sameValue(c.m(), 42);\nassert.sameValue(c.m, C.prototype.m);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"m\"),\n  \"m doesn't appear as an own property on the C instance\"\n);\n\nverifyProperty(C.prototype, \"m\", {\n  enumerable: false,\n  configurable: true,\n  writable: true,\n});\n\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, x),\n  \"Symbol x doesn't appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, x),\n  \"Symbol x doesn't appear as an own property on C constructor\"\n);\n\nverifyProperty(c, x, {\n  value: undefined,\n  enumerable: true,\n  writable: true,\n  configurable: true\n});\n\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, y),\n  \"Symbol y doesn't appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, y),\n  \"Symbol y doesn't appear as an own property on C constructor\"\n);\n\nverifyProperty(c, y, {\n  value: 42,\n  enumerable: true,\n  writable: true,\n  configurable: true\n});\n\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"x\"),\n  \"x doesn't appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"x\"),\n  \"x doesn't appear as an own property on C constructor\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"x\"),\n  \"x doesn't appear as an own property on C instance\"\n);\n\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"y\"),\n  \"y doesn't appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"y\"),\n  \"y doesn't appear as an own property on C constructor\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"y\"),\n  \"y doesn't appear as an own property on C instance\"\n);\n"
  ],
  [
    "test262-language--expressions--class--elements--new-no-sc-line-method-rs-static-privatename-identifier",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/rs-static-privatename-identifier.case\n// - src/class-elements/productions/cls-expr-new-no-sc-line-method.template\n/*---\ndescription: Valid Static PrivateName (field definitions followed by a method in a new line without a semicolon)\nesid: prod-FieldDefinition\nfeatures: [class-static-fields-private, class, class-fields-public]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassElement :\n      MethodDefinition\n      static MethodDefinition\n      FieldDefinition ;\n      static FieldDefinition ;\n      ;\n\n    FieldDefinition :\n      ClassElementName Initializer _opt\n\n    ClassElementName :\n      PropertyName\n      PrivateName\n\n    PrivateName ::\n      # IdentifierName\n\n    IdentifierName ::\n      IdentifierStart\n      IdentifierName IdentifierPart\n\n    IdentifierStart ::\n      UnicodeIDStart\n      $\n      _\n      \\ UnicodeEscapeSequence\n\n    IdentifierPart::\n      UnicodeIDContinue\n      $\n      \\ UnicodeEscapeSequence\n      <ZWNJ> <ZWJ>\n\n    UnicodeIDStart::\n      any Unicode code point with the Unicode property \"ID_Start\"\n\n    UnicodeIDContinue::\n      any Unicode code point with the Unicode property \"ID_Continue\"\n\n\n    NOTE 3\n    The sets of code points with Unicode properties \"ID_Start\" and\n    \"ID_Continue\" include, respectively, the code points with Unicode\n    properties \"Other_ID_Start\" and \"Other_ID_Continue\".\n\n---*/\n\n\nvar C = class {\n  static #$; static #_; static #\\u{6F}; static #\\u2118; static #ZW_\\u200C_NJ; static #ZW_\\u200D_J\n  m() { return 42; }\n  static $(value) {\n    this.#$ = value;\n    return this.#$;\n  }\n  static _(value) {\n    this.#_ = value;\n    return this.#_;\n  }\n  static \\u{6F}(value) {\n    this.#\\u{6F} = value;\n    return this.#\\u{6F};\n  }\n  static \\u2118(value) {\n    this.#\\u2118 = value;\n    return this.#\\u2118;\n  }\n  static ZW_\\u200C_NJ(value) {\n    this.#ZW_\\u200C_NJ = value;\n    return this.#ZW_\\u200C_NJ;\n  }\n  static ZW_\\u200D_J(value) {\n    this.#ZW_\\u200D_J = value;\n    return this.#ZW_\\u200D_J;\n  }\n}\n\nvar c = new C();\n\nassert.sameValue(c.m(), 42);\nassert.sameValue(c.m, C.prototype.m);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"m\"),\n  \"m doesn't appear as an own property on the C instance\"\n);\n\nverifyProperty(C.prototype, \"m\", {\n  enumerable: false,\n  configurable: true,\n  writable: true,\n});\n\nassert.sameValue(C.$(1), 1);\nassert.sameValue(C._(1), 1);\nassert.sameValue(C.\\u{6F}(1), 1);\nassert.sameValue(C.\\u2118(1), 1);\nassert.sameValue(C.ZW_\\u200C_NJ(1), 1);\nassert.sameValue(C.ZW_\\u200D_J(1), 1);\n\n"
  ],
  [
    "test262-language--expressions--class--elements--private-accessor-name--inst-private-name-ZWNJ",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/accessor-names/private-name-ZWNJ.case\n// - src/accessor-names/private/cls-private-expr-inst.template\n/*---\ndescription: Private IdentifierName - ZWNJ (Class expression, instance private method)\nfeatures: [class, class-methods-private]\nflags: [generated]\ninfo: |\n    ClassElement :\n      MethodDefinition\n      static MethodDefinition\n      FieldDefinition ;\n      ;\n\n    FieldDefinition :\n      ClassElementName Initializer _opt\n\n    ClassElementName :\n      PropertyName\n      PrivateName\n\n    PrivateName ::\n      # IdentifierName\n\n    Initializer :\n      = AssignmentExpression\n\n    IdentifierName ::\n      IdentifierStart\n      IdentifierName IdentifierPart\n\n    IdentifierStart ::\n      UnicodeIDStart\n      $\n      _\n      \\ UnicodeEscapeSequence\n\n    IdentifierPart::\n      UnicodeIDContinue\n      $\n      \\ UnicodeEscapeSequence\n      <ZWNJ> <ZWJ>\n\n    UnicodeIDStart::\n      any Unicode code point with the Unicode property \"ID_Start\"\n\n    UnicodeIDContinue::\n      any Unicode code point with the Unicode property \"ID_Continue\"\n\n\n    NOTE 3\n    The sets of code points with Unicode properties \"ID_Start\" and\n    \"ID_Continue\" include, respectively, the code points with Unicode\n    properties \"Other_ID_Start\" and \"Other_ID_Continue\".\n\n---*/\n\nvar stringSet;\n\nvar C = class {\n  get #ZW_‌_NJ() { return 'get string'; }\n  set #ZW_‌_NJ(param) { stringSet = param; }\n\n  getPrivateReference() {\n    return this.#ZW_‌_NJ;\n  }\n\n  setPrivateReference(value) {\n    this.#ZW_‌_NJ = value;\n  }\n};\n\nvar inst = new C();\n\nassert.sameValue(inst.getPrivateReference(), 'get string');\n\ninst.setPrivateReference('set string');\nassert.sameValue(stringSet, 'set string');\n"
  ],
  [
    "test262-language--expressions--class--elements--private-methods--prod-private-method",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/prod-private-method.case\n// - src/class-elements/private-methods/cls-expr.template\n/*---\ndescription: Private Method (private method definitions in a class expression)\nesid: prod-MethodDefinition\nfeatures: [class, class-methods-private]\nflags: [generated]\ninfo: |\n    ClassElement :\n      MethodDefinition\n      ...\n      ;\n\n    ClassElementName :\n      PropertyName\n      PrivateName\n\n    PrivateName ::\n      # IdentifierName\n\n    MethodDefinition :\n      ClassElementName ( UniqueFormalParameters ) { FunctionBody }\n      GeneratorMethod\n      AsyncMethod\n      AsyncGeneratorMethod \n      get ClassElementName () { FunctionBody }\n      set ClassElementName ( PropertySetParameterList ) { FunctionBody }\n\n    GeneratorMethod :\n      * ClassElementName ( UniqueFormalParameters ){GeneratorBody}\n\n    AsyncMethod :\n      async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here]* ClassElementName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    ---\n\n    InitializeClassElements ( F, proto )\n\n    ...\n    5. For each item element in order from elements,\n      a. Assert: If element.[[Placement]] is \"prototype\" or \"static\", then element.[[Key]] is not a Private Name.\n      b. If element.[[Kind]] is \"method\" and element.[[Placement]] is \"static\" or \"prototype\",\n        i. Let receiver be F if element.[[Placement]] is \"static\", else let receiver be proto.\n        ii. Perform ? DefineClassElement(receiver, element).\n\n    InitializeInstanceElements ( O, constructor )\n\n    ...\n    3. Let elements be the value of F's [[Elements]] internal slot.\n    4. For each item element in order from elements,\n      a. If element.[[Placement]] is \"own\" and element.[[Kind]] is \"method\",\n        i. Perform ? DefineClassElement(O, element).\n\n    DefineClassElement (receiver, element)\n\n    ...\n    6. If key is a Private Name,\n      a. Perform ? PrivateFieldDefine(receiver, key, descriptor).\n\n    PrivateFieldDefine (P, O, desc)\n\n    ...\n    6. Append { [[PrivateName]]: P, [[PrivateFieldDescriptor]]: desc } to O.[[PrivateFieldDescriptors]].\n\n---*/\n\n\n/***\n * template notes:\n * 1. method should always be #m\n * 2. the template provides c.ref/other.ref for external reference\n */\n\nfunction hasProp(obj, name, expected, msg) {\n  var hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, name);\n  assert.sameValue(hasOwnProperty, expected, msg);\n\n  var hasProperty = Reflect.has(obj, name);\n  assert.sameValue(hasProperty, expected, msg);\n}\n\nvar C = class {\n  #m() { return 42; }\n\n\n  get ref() { return this.#m; }\n\n  constructor() {\n    hasProp(this, '#m', false, 'private methods are defined in an special internal slot and cannot be found as own properties');\n    assert.sameValue(typeof this.#m, 'function');\n    assert.sameValue(this.ref, this.#m, 'returns the same value');\n    assert.sameValue(this.#m, (() => this)().#m, 'memberexpression and call expression forms');\n\n    assert.sameValue(this.#m(), 42, 'already defined in the ctor');\n    assert.sameValue(this.#m.name, '#m', 'function name inside constructor');\n\n  }\n}\n\nvar c = new C();\nvar other = new C();\n\nhasProp(C.prototype, '#m', false, 'method is not defined in the prototype');\nhasProp(C, '#m', false, 'method is not defined in the contructor');\nhasProp(c, '#m', false, 'method cannot be seen outside of the class');\n\n/***\n * MethodDefinition : ClassElementName ( UniqueFormalParameters ) { FunctionBody }\n * \n * 1. Let methodDef be DefineMethod of MethodDefinition with argument homeObject.\n * ...\n */\nassert.sameValue(c.ref, other.ref, 'The method is defined once, and reused on every new instance');\n\n// gets the returned value from #m\nassert.sameValue(c.ref(), 42, 'function return');\nassert.sameValue(c.ref.name, '#m', 'function name is preserved external reference');\n"
  ],
  [
    "test262-language--expressions--class--elements--private-ternary-init-err-contains-arguments",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/init-err-contains-arguments.case\n// - src/class-elements/initializer-error/cls-expr-fields-private-ternary.template\n/*---\ndescription: Syntax error if `arguments` used in class field (private field, ternary expression)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-public, class-fields-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n      FieldDefinition:\n        PropertyNameInitializeropt\n\n      - It is a Syntax Error if ContainsArguments of Initializer is true.\n\n    Static Semantics: ContainsArguments\n      IdentifierReference : Identifier\n\n      1. If the StringValue of Identifier is \"arguments\", return true.\n      ...\n      For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #x = true ? {} : arguments;\n}\n"
  ],
  [
    "test262-language--expressions--class--elements--same-line-async-gen-static-private-methods-with-fields",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/static-private-methods-with-fields.case\n// - src/class-elements/productions/cls-expr-after-same-line-async-gen.template\n/*---\ndescription: static private methods with fields (field definitions after an async generator in the same line)\nesid: prod-FieldDefinition\nfeatures: [class-static-methods-private, class-static-fields-private, class, class-fields-public, async-iteration]\nflags: [generated, async]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassElement :\n      ...\n      static FieldDefinition ;\n\n    FieldDefinition :\n      ClassElementName Initializer_opt\n\n    ClassElementName :\n      PrivateName\n\n    PrivateName :\n      # IdentifierName\n\n---*/\n\n\nvar C = class {\n  async *m() { return 42; } static #xVal; static #yVal;\n  static #x(value) {\n    this.#xVal = value;\n    return this.#xVal;\n  }\n  static #y(value) {\n    this.#yVal = value;\n    return this.#yVal;\n  }\n  static x() {\n    return this.#x(42);\n  }\n  static y() {\n    return this.#y(43);\n  }\n}\n\nvar c = new C();\n\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"m\"),\n  \"m doesn't appear as an own property on the C instance\"\n);\nassert.sameValue(c.m, C.prototype.m);\n\nverifyProperty(C.prototype, \"m\", {\n  enumerable: false,\n  configurable: true,\n  writable: true,\n}, {restore: true});\n\nc.m().next().then(function(v) {\n  assert.sameValue(v.value, 42);\n  assert.sameValue(v.done, true);\n\n  function assertions() {\n    // Cover $DONE handler for async cases.\n    function $DONE(error) {\n      if (error) {\n        throw new Test262Error('Test262:AsyncTestFailure')\n      }\n    }\n    // Test the private methods do not appear as properties before set to value\n    assert(!Object.prototype.hasOwnProperty.call(C.prototype, \"#x\"), \"test 1\");\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#x\"), \"test 2\");\n    assert(!Object.prototype.hasOwnProperty.call(c, \"#x\"), \"test 3\");\n\n    assert(!Object.prototype.hasOwnProperty.call(C.prototype, \"#y\"), \"test 4\");\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#y\"), \"test 5\");\n    assert(!Object.prototype.hasOwnProperty.call(c, \"#y\"), \"test 6\");\n\n    assert(!Object.prototype.hasOwnProperty.call(C.prototype, \"#xVal\"), \"test 7\");\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#xVal\"), \"test 8\");\n    assert(!Object.prototype.hasOwnProperty.call(c, \"#xVal\"), \"test 9\");\n\n    assert(!Object.prototype.hasOwnProperty.call(C.prototype, \"#yVal\"), \"test 10\");\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#yVal\"), \"test 11\");\n    assert(!Object.prototype.hasOwnProperty.call(c, \"#yVal\"), \"test 12\");\n\n    // Test if private fields can be sucessfully accessed and set to value\n    assert.sameValue(C.x(), 42, \"test 13\");\n    assert.sameValue(C.y(), 43, \"test 14\");\n\n    // Test the private fields do not appear as properties before after set to value\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#x\"), \"test 15\");\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#y\"), \"test 16\");\n\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#xVal\"), \"test 17\");\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#yVal\"), \"test 18\");\n  }\n\n  return Promise.resolve(assertions());\n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--class--elements--same-line-async-method-computed-names",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/computed-names.case\n// - src/class-elements/productions/cls-expr-after-same-line-async-method.template\n/*---\ndescription: Computed property names (field definitions after an async method in the same line)\nesid: prod-FieldDefinition\nfeatures: [class-fields-public, computed-property-names, class, async-functions]\nflags: [generated, async]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassElement:\n      ...\n      FieldDefinition ;\n\n    FieldDefinition:\n      ClassElementName Initializer_opt\n\n    ClassElementName:\n      PropertyName\n\n---*/\nvar x = \"b\";\n\n\n\nvar C = class {\n  async m() { return 42; } [x] = 42; [10] = \"meep\"; [\"not initialized\"];\n  \n}\n\nvar c = new C();\n\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"m\"),\n  \"m doesn't appear as an own property on the C instance\"\n);\nassert.sameValue(c.m, C.prototype.m);\n\nverifyProperty(C.prototype, \"m\", {\n  enumerable: false,\n  configurable: true,\n  writable: true,\n}, {restore: true});\n\nc.m().then(function(v) {\n  assert.sameValue(v, 42);\n\n  function assertions() {\n    // Cover $DONE handler for async cases.\n    function $DONE(error) {\n      if (error) {\n        throw new Test262Error('Test262:AsyncTestFailure')\n      }\n    }\n    assert(\n      !Object.prototype.hasOwnProperty.call(C.prototype, \"b\"),\n      \"b doesn't appear as an own property on C prototype\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(C, \"b\"),\n      \"b doesn't appear as an own property on C constructor\"\n    );\n\n    verifyProperty(c, \"b\", {\n      value: 42,\n      enumerable: true,\n      writable: true,\n      configurable: true\n    });\n\n    assert(\n      !Object.prototype.hasOwnProperty.call(C.prototype, \"x\"),\n      \"x doesn't appear as an own property on C prototype\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(C, \"x\"),\n      \"x doesn't appear as an own property on C constructor\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(c, \"x\"),\n      \"x doesn't appear as an own property on C instance\"\n    );\n\n    assert(\n      !Object.prototype.hasOwnProperty.call(C.prototype, \"10\"),\n      \"10 doesn't appear as an own property on C prototype\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(C, \"10\"),\n      \"10 doesn't appear as an own property on C constructor\"\n    );\n\n    verifyProperty(c, \"10\", {\n      value: \"meep\",\n      enumerable: true,\n      writable: true,\n      configurable: true\n    });\n\n    assert(\n      !Object.prototype.hasOwnProperty.call(C.prototype, \"not initialized\"),\n      \"'not initialized' doesn't appear as an own property on C prototype\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(C, \"not initialized\"),\n      \"'not initialized' doesn't appear as an own property on C constructor\"\n    );\n\n    verifyProperty(c, \"not initialized\", {\n      value: undefined,\n      enumerable: true,\n      writable: true,\n      configurable: true\n    });\n  }\n\n  return Promise.resolve(assertions());\n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--class--elements--same-line-async-method-literal-names-asi",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/literal-names-asi.case\n// - src/class-elements/productions/cls-expr-after-same-line-async-method.template\n/*---\ndescription: Literal property names with ASI (field definitions after an async method in the same line)\nesid: prod-FieldDefinition\nfeatures: [class-fields-public, class, async-functions]\nflags: [generated, async]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassElement:\n      ...\n      FieldDefinition ;\n\n    FieldDefinition:\n      ClassElementName Initializer_opt\n\n    ClassElementName:\n      PropertyName\n\n---*/\n\n\nvar C = class {\n  async m() { return 42; } a\n  b = 42;;\n  \n}\n\nvar c = new C();\n\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"m\"),\n  \"m doesn't appear as an own property on the C instance\"\n);\nassert.sameValue(c.m, C.prototype.m);\n\nverifyProperty(C.prototype, \"m\", {\n  enumerable: false,\n  configurable: true,\n  writable: true,\n}, {restore: true});\n\nc.m().then(function(v) {\n  assert.sameValue(v, 42);\n\n  function assertions() {\n    // Cover $DONE handler for async cases.\n    function $DONE(error) {\n      if (error) {\n        throw new Test262Error('Test262:AsyncTestFailure')\n      }\n    }\n    assert(\n      !Object.prototype.hasOwnProperty.call(C.prototype, \"a\"),\n      \"a doesn't appear as an own property on C prototype\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(C, \"a\"),\n      \"a doesn't appear as an own property on C constructor\"\n    );\n\n    verifyProperty(c, \"a\", {\n      value: undefined,\n      enumerable: true,\n      writable: true,\n      configurable: true\n    });\n\n    assert(\n      !Object.prototype.hasOwnProperty.call(C.prototype, \"b\"),\n      \"b doesn't appear as an own property on C prototype\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(C, \"b\"),\n      \"b doesn't appear as an own property on C constructor\"\n    );\n\n    verifyProperty(c, \"b\", {\n      value: 42,\n      enumerable: true,\n      writable: true,\n      configurable: true\n    });\n  }\n\n  return Promise.resolve(assertions());\n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--class--elements--static-literal-init-err-contains-super",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/init-err-contains-super.case\n// - src/class-elements/initializer-error/cls-expr-fields-static-literal-name.template\n/*---\ndescription: Syntax error if `super()` used in class field (static literal ClassElementName)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-public, class-static-fields-public]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n      FieldDefinition:\n        PropertyNameInitializeropt\n\n      - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  static x = super();\n}\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--delete--field-delete-err-delete-call-expression-private-method-async-gen",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/err-delete-call-expression-private-method-async-gen.case\n// - src/class-elements/delete-error/cls-expr-field-delete.template\n/*---\ndescription: It's a SyntaxError if delete operator is applied to CallExpression.PrivateName async generator (in field)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class-methods-private, async-iteration, class, class-fields-private, class-fields-public]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    This file must never use the onlyStrict flag as the strict mode should always\n    be observed inside class bodies.\n\n    Static Semantics: Early Errors\n\n      UnaryExpression : delete UnaryExpression\n\n      It is a Syntax Error if the UnaryExpression is contained in strict mode\n      code and the derived UnaryExpression is\n      PrimaryExpression : IdentifierReference ,\n      MemberExpression : MemberExpression.PrivateName , or\n      CallExpression : CallExpression.PrivateName .\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #x;\n  g = this.f;\n  x = delete g().#m;\n\n  f() {\n  return this;\n  }\n}\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--delete--field-delete-err-delete-call-expression-private-no-reference",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/err-delete-call-expression-private-no-reference.case\n// - src/class-elements/delete-error/cls-expr-field-delete.template\n/*---\ndescription: It's a SyntaxError if delete operator is applied to CallExpression.PrivateName no referencing class element (in field)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-private, class-fields-public]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    This file must never use the onlyStrict flag as the strict mode should always\n    be observed inside class bodies.\n\n    Static Semantics: Early Errors\n\n      UnaryExpression : delete UnaryExpression\n\n      It is a Syntax Error if the UnaryExpression is contained in strict mode\n      code and the derived UnaryExpression is\n      PrimaryExpression : IdentifierReference ,\n      MemberExpression : MemberExpression.PrivateName , or\n      CallExpression : CallExpression.PrivateName .\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #x;\n  g = this.f;\n  x = delete g().#m;\n\n  f() {\n  return this;\n  }\n}\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--delete--field-delete-twice-covered-err-delete-call-expression-private-method-gen",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/err-delete-call-expression-private-method-gen.case\n// - src/class-elements/delete-error/cls-expr-field-delete-twice-covered.template\n/*---\ndescription: It's a SyntaxError if delete operator is applied to CallExpression.PrivateName generator (in field, recursively covered)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class-methods-private, generators, class, class-fields-private, class-fields-public]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    This file must never use the onlyStrict flag as the strict mode should always\n    be observed inside class bodies.\n\n    Static Semantics: Early Errors\n\n      UnaryExpression : delete UnaryExpression\n\n      It is a Syntax Error if the UnaryExpression is contained in strict mode\n      code and the derived UnaryExpression is\n      PrimaryExpression : IdentifierReference ,\n      MemberExpression : MemberExpression.PrivateName , or\n      CallExpression : CallExpression.PrivateName .\n\n      It is a Syntax Error if the derived UnaryExpression is\n      PrimaryExpression : CoverParenthesizedExpressionAndArrowParameterList and\n      CoverParenthesizedExpressionAndArrowParameterList ultimately derives a\n      phrase that, if used in place of UnaryExpression, would produce a\n      Syntax Error according to these rules. This rule is recursively applied.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #x;\n  g = this.f;\n  x = delete ((g().#m));\n\n  f() {\n  return this;\n  }\n}\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--delete--method-delete-covered-err-delete-call-expression-private-method-async-gen",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/err-delete-call-expression-private-method-async-gen.case\n// - src/class-elements/delete-error/cls-expr-method-delete-covered.template\n/*---\ndescription: It's a SyntaxError if delete operator is applied to CallExpression.PrivateName async generator (in method, covered)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class-methods-private, async-iteration, class, class-fields-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    This file must never use the onlyStrict flag as the strict mode should always\n    be observed inside class bodies.\n\n    Static Semantics: Early Errors\n\n      UnaryExpression : delete UnaryExpression\n\n      It is a Syntax Error if the UnaryExpression is contained in strict mode\n      code and the derived UnaryExpression is\n      PrimaryExpression : IdentifierReference ,\n      MemberExpression : MemberExpression.PrivateName , or\n      CallExpression : CallExpression.PrivateName .\n\n      It is a Syntax Error if the derived UnaryExpression is\n      PrimaryExpression : CoverParenthesizedExpressionAndArrowParameterList and\n      CoverParenthesizedExpressionAndArrowParameterList ultimately derives a\n      phrase that, if used in place of UnaryExpression, would produce a\n      Syntax Error according to these rules. This rule is recursively applied.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #x;\n\n  x() {\n    var g = this.f;\n    delete (g().#m);\n  }\n\n  f() {\n  return this;\n  }\n}\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--delete--method-delete-err-delete-call-expression-private-method-async",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/err-delete-call-expression-private-method-async.case\n// - src/class-elements/delete-error/cls-expr-method-delete.template\n/*---\ndescription: It's a SyntaxError if delete operator is applied to CallExpression.PrivateName async method (in method)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class-methods-private, async-functions, class, class-fields-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    This file must never use the onlyStrict flag as the strict mode should always\n    be observed inside class bodies.\n\n    Static Semantics: Early Errors\n\n      UnaryExpression : delete UnaryExpression\n\n      It is a Syntax Error if the UnaryExpression is contained in strict mode\n      code and the derived UnaryExpression is\n      PrimaryExpression : IdentifierReference ,\n      MemberExpression : MemberExpression.PrivateName , or\n      CallExpression : CallExpression.PrivateName .\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #x;\n\n  x() {\n    var g = this.f;\n    delete g().#m;\n  }\n\n  f() {\n  return this;\n  }\n}\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--delete--method-delete-err-delete-member-expression-private-method-accessor-set",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/err-delete-member-expression-private-method-accessor-set.case\n// - src/class-elements/delete-error/cls-expr-method-delete.template\n/*---\ndescription: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName accessor set method (in method)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class-methods-private, class, class-fields-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    This file must never use the onlyStrict flag as the strict mode should always\n    be observed inside class bodies.\n\n    Static Semantics: Early Errors\n\n      UnaryExpression : delete UnaryExpression\n\n      It is a Syntax Error if the UnaryExpression is contained in strict mode\n      code and the derived UnaryExpression is\n      PrimaryExpression : IdentifierReference ,\n      MemberExpression : MemberExpression.PrivateName , or\n      CallExpression : CallExpression.PrivateName .\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #x;\n\n  x() {\n    \n    delete this.#m\n;\n  }\n\n  \n}\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--delete--method-delete-err-delete-member-expression-privatename",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/err-delete-member-expression-privatename.case\n// - src/class-elements/delete-error/cls-expr-method-delete.template\n/*---\ndescription: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName private field (in method)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    This file must never use the onlyStrict flag as the strict mode should always\n    be observed inside class bodies.\n\n    Static Semantics: Early Errors\n\n      UnaryExpression : delete UnaryExpression\n\n      It is a Syntax Error if the UnaryExpression is contained in strict mode\n      code and the derived UnaryExpression is\n      PrimaryExpression : IdentifierReference ,\n      MemberExpression : MemberExpression.PrivateName , or\n      CallExpression : CallExpression.PrivateName .\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #x;\n\n  x() {\n    \n    delete this.#x;\n  }\n\n  \n}\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-field-identifier-invalid-ues-error",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-field-identifier-invalid-ues-error.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: Invalid FieldDefinition, ClassElementName, PropertyName Syntax (class expression)\nesid: prod-ClassElement\nfeatures: [class-fields-public, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      MethodDefinition\n      static MethodDefinition\n      FieldDefinition ;\n      ;\n\n    FieldDefinition :\n      ClassElementName Initializer _opt\n\n    ClassElementName :\n      PropertyName\n      PrivateName\n\n    PropertyName :\n      LiteralPropertyName\n      ComputedPropertyName\n\n    LiteralPropertyName :\n      IdentifierName\n      StringLiteral\n      NumericLiteral\n\n    IdentifierName ::\n      IdentifierStart\n      IdentifierName IdentifierPart\n\n    IdentifierStart ::\n      UnicodeIDStart\n      $\n      _\n      \\ UnicodeEscapeSequence\n\n    IdentifierPart ::\n      UnicodeIDContinue\n      $\n      \\ UnicodeEscapeSequence\n      <ZWNJ> <ZWJ>\n\n    UnicodeIDStart ::\n      any Unicode code point with the Unicode property \"ID_Start\"\n\n    UnicodeIDContinue ::\n      any Unicode code point with the Unicode property \"ID_Continue\"\n\n\n    NOTE 3\n    The sets of code points with Unicode properties \"ID_Start\" and\n    \"ID_Continue\" include, respectively, the code points with Unicode\n    properties \"Other_ID_Start\" and \"Other_ID_Continue\".\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  \\u0000;\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-private-field-on-object-destructuring",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-private-field-on-object-destructuring.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: Acessing private field from object destructuring pattern is not a valid syntax (class expression)\nesid: prod-ClassElement\nfeatures: [class-fields-private, destructuring-binding, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Updated Productions\n\n    ObjectAssignmentPattern[Yield, Await]:\n       {}\n       {AssignmentRestProperty[?Yield, ?Await]}\n       {AssignmentPropertyList[?Yield, ?Await]}\n       {AssignmentPropertyList[?Yield, ?Await],AssignmentRestProperty[?Yield, ?Await]opt}\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #x = 1;\n\n  destructureX() {\n    const { #x: x } = this;\n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-privatemeth-duplicate-async",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatemeth-duplicate-async.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: It's a SyntaxError if a class contains a private async function and a private field with the same name (class expression)\nesid: prod-ClassElement\nfeatures: [class-methods-private, class-fields-private, async-functions, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n    ClassBody : ClassElementList\n      It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #m;\n  async #m() {}\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-privatemeth-duplicate-async-gen",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatemeth-duplicate-async-gen.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: It's a SyntaxError if a class contains a private async generator and a private field with the same name (class expression)\nesid: prod-ClassElement\nfeatures: [class-methods-private, class-fields-private, async-iteration, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n    ClassBody : ClassElementList\n      It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #m;\n  async * #m() {}\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-privatemeth-duplicate-gen",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatemeth-duplicate-gen.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: It's a SyntaxError if a class contains a private generator and a private field with the same name (class expression)\nesid: prod-ClassElement\nfeatures: [class-methods-private, class-fields-private, generators, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n    ClassBody : ClassElementList\n      It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #m;\n  * #m() {}\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-privatemeth-duplicate-get-field",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatemeth-duplicate-get-field.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: It's a SyntaxError if a class contains a private getter and a private field with the same name (class expression)\nesid: prod-ClassElement\nfeatures: [class-methods-private, class-fields-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n    ClassBody : ClassElementList\n        It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #m;\n  get #m() {}\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-privatemeth-duplicate-meth-meth",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatemeth-duplicate-meth-meth.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: It's a SyntaxError if a class contains multiple private methods with the same name (class expression)\nesid: prod-ClassElement\nfeatures: [class-methods-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n    ClassBody : ClassElementList\n        It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  #m() {}\n  #m() {}\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-privatemeth-duplicate-meth-staticfield",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatemeth-duplicate-meth-staticfield.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: It's a SyntaxError if a class contains a private method and a private static field with the same name (class expression)\nesid: prod-ClassElement\nfeatures: [class-methods-private, class-static-fields-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n    ClassBody : ClassElementList\n        It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  static #m;\n  #m() {}\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-privatename-whitespace-error-gen-meth",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatename-whitespace-error-gen-meth.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: No space allowed between sigil and IdentifierName (Generator Method) (class expression)\nesid: prod-ClassElement\nfeatures: [generators, class-methods-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Updated Productions\n\n    ClassElementName :\n      PropertyName\n      PrivateName\n\n    PrivateName ::\n      # IdentifierName\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  * # m() {}\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-privatename-whitespace-error-static-field",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatename-whitespace-error-static-field.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: No space allowed between sigil and IdentifierName (Static Field) (class expression)\nesid: prod-ClassElement\nfeatures: [class-static-fields-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Updated Productions\n\n    ClassElementName :\n      PropertyName\n      PrivateName\n\n    PrivateName ::\n      # IdentifierName\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  static # x;\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-static-async-meth-prototype",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-static-async-meth-prototype.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: Static Async Methods cannot be named prototype (class expression)\nesid: prod-ClassElement\nfeatures: [async-functions, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Class Definitions / Static Semantics: Early Errors\n\n    ClassElement : static MethodDefinition\n        It is a Syntax Error if PropName of MethodDefinition is \"prototype\"\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  static async prototype() {}\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-static-gen-meth-super",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-static-gen-meth-super.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: Static Generator Methods cannot contain direct super (class expression)\nesid: prod-ClassElement\nfeatures: [generators, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Class Definitions / Static Semantics: Early Errors\n\n    ClassElement : static MethodDefinition\n        It is a Syntax Error if HasDirectSuper of MethodDefinition is true.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class extends Function{\n  static * method() {\n      super();\n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-static-private-meth-super",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-static-private-meth-super.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: Static Private Methods cannot contain direct super (class expression)\nesid: prod-ClassElement\nfeatures: [class-static-methods-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Class Definitions / Static Semantics: Early Errors\n\n    ClassElement : static MethodDefinition\n        It is a Syntax Error if HasDirectSuper of MethodDefinition is true.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class extends Function{\n  static #method() {\n      super();\n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--grammar-static-set-meth-super",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-static-set-meth-super.case\n// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template\n/*---\ndescription: Static Accessor set Methods cannot contain direct super (class expression)\nesid: prod-ClassElement\nfeatures: [class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Class Definitions / Static Semantics: Early Errors\n\n    ClassElement : static MethodDefinition\n        It is a Syntax Error if HasDirectSuper of MethodDefinition is true.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class extends Function{\n  static set method(_) {\n      super();\n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--early-errors--invalid-names--method-outter-member-expression-bad-reference",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/invalid-private-names/member-expression-bad-reference.case\n// - src/invalid-private-names/default/cls-expr-outter-method.template\n/*---\ndescription: bad reference in member expression (Invalid private names should throw a SyntaxError, method in outter class expression)\nesid: sec-static-semantics-early-errors\nfeatures: [class-fields-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ScriptBody:StatementList\n      It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List\n      as an argument is false unless the source code is eval code that is being\n      processed by a direct eval.\n\n    ModuleBody:ModuleItemList\n      It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List\n      as an argument is false.\n\n    Static Semantics: AllPrivateNamesValid\n\n    ClassBody : ClassElementList\n    1. Let newNames be the concatenation of names with PrivateBoundNames of ClassBody.\n    2. Return AllPrivateNamesValid of ClassElementList with the argument newNames.\n\n    For all other grammatical productions, recurse on subexpressions/substatements,\n    passing in the names of the caller. If all pieces return true, then return true.\n    If any returns false, return false.\n\n\n    Static Semantics: AllPrivateNamesValid\n\n    MemberExpression : MemberExpression . PrivateName\n\n    1. If StringValue of PrivateName is in names, return true.\n    2. Return false.\n\n    CallExpression : CallExpression . PrivateName\n\n    1. If StringValue of PrivateName is in names, return true.\n    2. Return false.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar C = class {\n  m() {\n    class Outter {\n      #x = 42;\n    }\n\n    this.#x;\n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--valid--grammar-privatemeth-duplicate-get-set",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatemeth-duplicate-get-set.case\n// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template\n/*---\ndescription: It's valid if a class contains a private getter and a private setter with the same name (class expression)\nesid: prod-ClassElement\nfeatures: [class-methods-private, class]\nflags: [generated]\ninfo: |\n    Static Semantics: Early Errors\n\n    ClassBody : ClassElementList\n        It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries.\n\n---*/\n\n\nvar C = class {\n  get #m() {}\n  set #m(_) {}\n};\n"
  ],
  [
    "test262-language--expressions--class--elements--syntax--valid--grammar-static-private-gen-meth-prototype",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-static-private-gen-meth-prototype.case\n// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template\n/*---\ndescription: Static Generator Private Methods can be named \"#prototype\" (class expression)\nesid: prod-ClassElement\nfeatures: [generators, class-static-methods-private, class]\nflags: [generated]\ninfo: |\n    Class Definitions / Static Semantics: Early Errors\n\n    ClassElement : static MethodDefinition\n        It is a Syntax Error if PropName of MethodDefinition is \"prototype\"\n\n---*/\n\n\nvar C = class {\n  static * #prototype() {}\n};\n"
  ],
  [
    "test262-language--expressions--class--gen-method--object-destructuring-param-strict-body",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/object-destructuring-param-strict-body.case\n// - src/function-forms/syntax/cls-expr-gen-meth.template\n/*---\ndescription: ObjectBindingPattern and Use Strict Directive are not allowed to coexist for the same function. (class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [rest-parameters, generators]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod :\n        * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n\n    13.3.3.4 Static Semantics: IsSimpleParameterList\n\n    BindingElement : BindingPattern\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\n0, class {\n  *method({property}) {\n    \"use strict\";\n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--gen-method-static--dflt-params-duplicates",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-duplicates.case\n// - src/function-forms/syntax/cls-expr-gen-meth-static.template\n/*---\ndescription: It is a Syntax Error if BoundNames of FormalParameters contains any duplicate elements. (static class expression generator method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [default-parameters, generators]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation\n           for m with arguments F and false.\n    [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod :\n        * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n\n    14.1.2 Static Semantics: Early Errors\n\n    StrictFormalParameters : FormalParameters\n\n    - It is a Syntax Error if BoundNames of FormalParameters contains any\n      duplicate elements.\n\n    FormalParameters : FormalParameterList\n\n    - It is a Syntax Error if IsSimpleParameterList of FormalParameterList is\n      false and BoundNames of FormalParameterList contains any duplicate\n      elements.\n\n---*/\n$DONOTEVALUATE();\n\n0, class {\n  static *method(x = 0, x) {\n    \n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--gen-method-static--yield-as-binding-identifier",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/generators/yield-as-binding-identifier.case\n// - src/generators/syntax/class-expr-static-method.template\n/*---\ndescription: yield is a reserved keyword within generator function bodies and may not be used as a binding identifier. (Static generator method as a ClassExpression element)\nesid: prod-GeneratorMethod\nfeatures: [generators]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      static MethodDefinition\n\n    MethodDefinition :\n      GeneratorMethod\n\n    14.4 Generator Function Definitions\n\n    GeneratorMethod :\n      * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n\n    BindingIdentifier : Identifier\n\n    It is a Syntax Error if this production has a [Yield] parameter and\n    StringValue of Identifier is \"yield\".\n\n---*/\n$DONOTEVALUATE();\n\nvar C = class { static *gen() {\n    var yield;\n}};\n"
  ],
  [
    "test262-language--expressions--class--gen-method-static--yield-spread-arr-multiple",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/generators/yield-spread-arr-multiple.case\n// - src/generators/default/class-expr-static-method.template\n/*---\ndescription: Use yield value in a array spread position (Static generator method as a ClassExpression element)\nesid: prod-GeneratorMethod\nfeatures: [generators]\nflags: [generated]\nincludes: [compareArray.js]\ninfo: |\n    ClassElement :\n      static MethodDefinition\n\n    MethodDefinition :\n      GeneratorMethod\n\n    14.4 Generator Function Definitions\n\n    GeneratorMethod :\n      * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n\n    Array Initializer\n\n    SpreadElement[Yield, Await]:\n      ...AssignmentExpression[+In, ?Yield, ?Await]\n\n---*/\nvar arr = ['a', 'b', 'c'];\nvar item;\n\nvar callCount = 0;\n\nvar C = class { static *gen() {\n    callCount += 1;\n    yield [...yield yield];\n}}\n\nvar gen = C.gen;\n\nvar iter = gen();\n\niter.next(false);\nitem = iter.next(['a', 'b', 'c']);\nitem = iter.next(item.value);\n\nassert.compareArray(item.value, arr);\nassert.sameValue(item.done, false);\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--class--getter-param-dflt",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-method-definitions\nes6id: 14.3\ndescription: >\n  Get accessor method may not have a formal parameter (regardless of the\n  presence of an initializer)\ninfo: |\n  Syntax\n\n  MethodDefinition[Yield] :\n\n    get PropertyName[?Yield] ( ) { FunctionBody }\nfeatures: [default-parameters]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n0, class { get a(param = null) {} };\n"
  ],
  [
    "test262-language--expressions--class--method--dflt-params-arg-val-undefined",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-arg-val-undefined.case\n// - src/function-forms/default/cls-expr-meth.template\n/*---\ndescription: Use of initializer when argument value is `undefined` (class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [default-parameters]\nflags: [generated]\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    14.1.19 Runtime Semantics: IteratorBindingInitialization\n\n    FormalsList : FormalsList , FormalParameter\n\n    [...]\n    23. Let iteratorRecord be Record {[[Iterator]]:\n        CreateListIterator(argumentsList), [[Done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        a. Perform ? IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n---*/\n\nvar callCount = 0;\nvar C = class {\n  method(fromLiteral = 23, fromExpr = 45, fromHole = 99) {\n    assert.sameValue(fromLiteral, 23);\n    assert.sameValue(fromExpr, 45);\n    assert.sameValue(fromHole, 99);\n    callCount = callCount + 1;\n  }\n};\n\nC.prototype.method(undefined, void 0);\n\n// Stores a reference `ref` for case evaluation\nvar ref = C.prototype.method;\n\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--class--method--dflt-params-duplicates",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-duplicates.case\n// - src/function-forms/syntax/cls-expr-meth.template\n/*---\ndescription: It is a Syntax Error if BoundNames of FormalParameters contains any duplicate elements. (class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    14.1.2 Static Semantics: Early Errors\n\n    StrictFormalParameters : FormalParameters\n\n    - It is a Syntax Error if BoundNames of FormalParameters contains any\n      duplicate elements.\n\n    FormalParameters : FormalParameterList\n\n    - It is a Syntax Error if IsSimpleParameterList of FormalParameterList is\n      false and BoundNames of FormalParameterList contains any duplicate\n      elements.\n\n---*/\n$DONOTEVALUATE();\n\n0, class {\n  method(x = 0, x) {\n    \n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--method--object-destructuring-param-strict-body",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/object-destructuring-param-strict-body.case\n// - src/function-forms/syntax/cls-expr-meth.template\n/*---\ndescription: ObjectBindingPattern and Use Strict Directive are not allowed to coexist for the same function. (class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [rest-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.4 Static Semantics: IsSimpleParameterList\n\n    BindingElement : BindingPattern\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\n0, class {\n  method({property}) {\n    \"use strict\";\n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--method--params-trailing-comma-single",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/params-trailing-comma-single.case\n// - src/function-forms/default/cls-expr-meth.template\n/*---\ndescription: A trailing comma should not increase the respective length, using a single parameter (class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nflags: [generated]\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    Trailing comma in the parameters list\n\n    14.1 Function Definitions\n\n    FormalParameters[Yield, Await] : FormalParameterList[?Yield, ?Await] ,\n---*/\n\nvar callCount = 0;\nvar C = class {\n  method(a,) {\n    assert.sameValue(a, 42);\n    callCount = callCount + 1;\n  }\n};\n\nC.prototype.method(42, 39);\n\n// Stores a reference `ref` for case evaluation\nvar ref = C.prototype.method;\n\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n\nassert.sameValue(ref.length, 1, 'length is properly set');\n"
  ],
  [
    "test262-language--expressions--class--method--rest-params-trailing-comma-early-error",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/rest-params-trailing-comma-early-error.case\n// - src/function-forms/syntax/cls-expr-meth.template\n/*---\ndescription: It's a syntax error if a FunctionRestParameter is followed by a trailing comma (class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    Trailing comma in the parameters list\n\n    14.1 Function Definitions\n\n    FormalParameters[Yield, Await] :\n        [empty]\n        FunctionRestParameter[?Yield, ?Await]\n        FormalParameterList[?Yield, ?Await]\n        FormalParameterList[?Yield, ?Await] ,\n        FormalParameterList[?Yield, ?Await] , FunctionRestParameter[?Yield, ?Await]\n---*/\n$DONOTEVALUATE();\n\n0, class {\n  method(...a,) {\n    \n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--method-param-dflt-yield",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-method-definitions\nes6id: 14.3\ndescription: >\n  YieldExpression cannot be used within the FormalParameters of a class method\ninfo: |\n  MethodDefinition[Yield] :\n\n    PropertyName[?Yield] ( StrictFormalParameters ) { FunctionBody }\nfeatures: [generators, default-parameters]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n0, class {\n  m(x = yield) {}\n};\n"
  ],
  [
    "test262-language--expressions--class--method-static--dflt-params-rest",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-rest.case\n// - src/function-forms/syntax/cls-expr-meth-static.template\n/*---\ndescription: RestParameter does not support an initializer (static class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    14.1 Function Definitions\n\n    Syntax\n\n    FunctionRestParameter[Yield] :\n\n      BindingRestElement[?Yield]\n\n    13.3.3 Destructuring Binding Patterns\n\n    Syntax\n\n    BindingRestElement[Yield] :\n\n      ...BindingIdentifier[?Yield]\n      ...BindingPattern[?Yield]\n\n---*/\n$DONOTEVALUATE();\n\n0, class {\n  static method(...x = []) {\n    \n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--method-static--forbidden-ext--b2--cls-expr-meth-static-forbidden-ext-indirect-access-own-prop-caller-value",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-indirect-access-own-prop-caller-value.case\n// - src/function-forms/forbidden-extensions/bullet-two/cls-expr-meth-static.template\n/*---\ndescription: Forbidden extension, o.caller (static class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [class]\nflags: [generated, noStrict]\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n\n    If an implementation extends any function object with an own property named \"caller\" the value of\n    that property, as observed using [[Get]] or [[GetOwnProperty]], must not be a strict function\n    object. If it is an accessor property, the function that is the value of the property's [[Get]]\n    attribute must never return a strict function when called.\n\n---*/\nvar CALLER_OWN_PROPERTY_DOES_NOT_EXIST = Symbol();\nfunction inner() {\n  // This property may exist, but is forbidden from having a value that is a strict function object\n  return inner.hasOwnProperty(\"caller\")\n    ? inner.caller\n    : CALLER_OWN_PROPERTY_DOES_NOT_EXIST;\n}\n\nvar callCount = 0;\nvar C = class {\n  static method() {\n    /* implicit strict */\n    // This and the following conditional value is set in the test's .case file.\n    // For every test that has a \"true\" value here, there is a\n    // corresponding test that has a \"false\" value here.\n    // They are generated from two different case files, which use\n    let descriptor = Object.getOwnPropertyDescriptor(inner, \"caller\");\n    if (descriptor && descriptor.configurable && true) {\n      Object.defineProperty(inner, \"caller\", {value: 1});\n    }\n    var result = inner();\n    if (descriptor && descriptor.configurable && true) {\n      assert.sameValue(result, 1, 'If this test defined an own \"caller\" property on the inner function, then it should be accessible and should return the value it was set to.');\n    }\n\n    // \"CALLER_OWN_PROPERTY_DOES_NOT_EXIST\" is from\n    // forbidden-ext-indirect-access-prop-caller.case\n    //\n    // If the function object \"inner\" has an own property\n    // named \"caller\", then its value will be returned.\n    //\n    // If the function object \"inner\" DOES NOT have an\n    // own property named \"caller\", then the symbol\n    // CALLER_OWN_PROPERTY_DOES_NOT_EXIST will be returned.\n    if (result !== CALLER_OWN_PROPERTY_DOES_NOT_EXIST) {\n      assert.notSameValue(result, this.method);\n    }\n\n    callCount++;\n  }\n};\n\nC.method();\nassert.sameValue(callCount, 1, 'method body evaluated');\n"
  ],
  [
    "test262-language--expressions--class--method-static--rest-params-trailing-comma-early-error",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/rest-params-trailing-comma-early-error.case\n// - src/function-forms/syntax/cls-expr-meth-static.template\n/*---\ndescription: It's a syntax error if a FunctionRestParameter is followed by a trailing comma (static class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    Trailing comma in the parameters list\n\n    14.1 Function Definitions\n\n    FormalParameters[Yield, Await] :\n        [empty]\n        FunctionRestParameter[?Yield, ?Await]\n        FormalParameterList[?Yield, ?Await]\n        FormalParameterList[?Yield, ?Await] ,\n        FormalParameterList[?Yield, ?Await] , FunctionRestParameter[?Yield, ?Await]\n---*/\n$DONOTEVALUATE();\n\n0, class {\n  static method(...a,) {\n    \n  }\n};\n"
  ],
  [
    "test262-language--expressions--class--params-dflt-meth-ref-arguments",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Referencing the arguments object from a default parameter (class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nes6id: 14.5.16\nfeatures: [default-parameters]\ninfo: |\n    ClassExpression : class BindingIdentifieropt ClassTail\n\n    1. If BindingIdentifieropt is not present, let className be undefined.\n    2. Else, let className be StringValue of BindingIdentifier.\n    3. Let value be the result of ClassDefinitionEvaluation of ClassTail\n       with argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    14.1.19 Runtime Semantics: IteratorBindingInitialization\n\n    FormalsList : FormalsList , FormalParameter\n\n    1. Let status be the result of performing IteratorBindingInitialization for\n       FormalsList using iteratorRecord and environment as the arguments.\n    2. ReturnIfAbrupt(status).\n    3. Return the result of performing IteratorBindingInitialization for\n       FormalParameter using iteratorRecord and environment as the arguments.\n---*/\n\nvar callCount = 0;\nvar C = class {\n  method(x = arguments[2], y = arguments[3], z) {\n    assert.sameValue(x, 'third', 'first parameter');\n    assert.sameValue(y, 'fourth', 'second parameter');\n    assert.sameValue(z, 'third', 'third parameter');\n    callCount = callCount + 1;\n  }\n};\n\nC.prototype.method(undefined, undefined, 'third', 'fourth');\n\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--class--subclass-builtins--subclass-AggregateError",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/subclass-builtins/AggregateError.case\n// - src/subclass-builtins/default/expression.template\n/*---\ndescription: new SubAggregateError() instanceof AggregateError (Subclass instanceof Heritage)\nfeatures: [AggregateError]\nflags: [generated]\n---*/\n\n\nconst Subclass = class extends AggregateError {}\n\nconst sub = new Subclass([]);\nassert(sub instanceof Subclass);\nassert(sub instanceof AggregateError);\n"
  ],
  [
    "test262-language--expressions--class--subclass-builtins--subclass-Set",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/subclass-builtins/Set.case\n// - src/subclass-builtins/default/expression.template\n/*---\ndescription: new SubSet() instanceof Set (Subclass instanceof Heritage)\nfeatures: [Set]\nflags: [generated]\n---*/\n\n\nconst Subclass = class extends Set {}\n\nconst sub = new Subclass();\nassert(sub instanceof Subclass);\nassert(sub instanceof Set);\n"
  ],
  [
    "test262-language--expressions--class--subclass-builtins--subclass-Uint8ClampedArray",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/subclass-builtins/Uint8ClampedArray.case\n// - src/subclass-builtins/default/expression.template\n/*---\ndescription: new SubUint8ClampedArray() instanceof Uint8ClampedArray (Subclass instanceof Heritage)\nfeatures: [TypedArray, Uint8ClampedArray]\nflags: [generated]\n---*/\n\n\nconst Subclass = class extends Uint8ClampedArray {}\n\nconst sub = new Subclass();\nassert(sub instanceof Subclass);\nassert(sub instanceof Uint8ClampedArray);\n"
  ],
  [
    "test262-language--expressions--class--subclass-builtins--subclass-WeakSet",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/subclass-builtins/WeakSet.case\n// - src/subclass-builtins/default/expression.template\n/*---\ndescription: new SubWeakSet() instanceof WeakSet (Subclass instanceof Heritage)\nfeatures: [WeakSet]\nflags: [generated]\n---*/\n\n\nconst Subclass = class extends WeakSet {}\n\nconst sub = new Subclass();\nassert(sub instanceof Subclass);\nassert(sub instanceof WeakSet);\n"
  ],
  [
    "test262-language--expressions--comma--tco-final",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Expression is a candidate for tail-call optimization.\nesid: sec-static-semantics-hascallintailposition\nflags: [onlyStrict]\nfeatures: [tail-call-optimization]\nincludes: [tcoHelper.js]\n---*/\n\nvar callCount = 0;\n(function f(n) {\n  if (n === 0) {\n    callCount += 1\n    return;\n  }\n  return 0, f(n - 1);\n}($MAX_ITERATIONS));\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--compound-assignment--S11.13.2_A4.5_T1.2",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: The production x -= y is the same as x = x - y\nes5id: 11.13.2_A4.5_T1.2\ndescription: Type(x) and Type(y) vary between primitive number and Number object\n---*/\n\nvar x;\n\n//CHECK#1\nx = 1;\nx -= 1;\nif (x !== 0) {\n  throw new Test262Error('#1: x = 1; x -= 1; x === 0. Actual: ' + (x));\n}\n\n//CHECK#2\nx = new Number(1);\nx -= 1;\nif (x !== 0) {\n  throw new Test262Error('#2: x = new Number(1); x -= 1; x === 0. Actual: ' + (x));\n}\n\n//CHECK#3\nx = 1;\nx -= new Number(1);\nif (x !== 0) {\n  throw new Test262Error('#3: x = 1; x -= new Number(1); x === 0. Actual: ' + (x));\n}\n\n//CHECK#4\nx = new Number(1);\nx -= new Number(1);\nif (x !== 0) {\n  throw new Test262Error('#4: x = new Number(1); x -= new Number(1); x === 0. Actual: ' + (x));\n}\n"
  ],
  [
    "test262-language--expressions--compound-assignment--left-hand-side-private-reference-data-property-add",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/compound-assignment-private/add.case\n// - src/compound-assignment-private/default/data-property.template\n/*---\ndescription: Compound addition assignment with target being a private reference (to a field)\nesid: sec-assignment-operators-runtime-semantics-evaluation\nfeatures: [class-fields-private]\nflags: [generated]\ninfo: |\n    sec-assignment-operators-runtime-semantics-evaluation\n    AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression\n      1. Let _lref_ be the result of evaluating |LeftHandSideExpression|.\n      2. Let _lval_ be ? GetValue(_lref_).\n      ...\n      7. Let _r_ be ApplyStringOrNumericBinaryOperator(_lval_, _opText_, _rval_).\n      8. Perform ? PutValue(_lref_, _r_).\n      9. Return _r_.\n\n    sec-property-accessors-runtime-semantics-evaluation\n    MemberExpression : MemberExpression `.` PrivateIdentifier\n\n      1. Let _baseReference_ be the result of evaluating |MemberExpression|.\n      2. Let _baseValue_ be ? GetValue(_baseReference_).\n      3. Let _fieldNameString_ be the StringValue of |PrivateIdentifier|.\n      4. Return ! MakePrivateReference(_baseValue_, _fieldNameString_).\n\n    PutValue (V, W)\n      ...\n      5.b. If IsPrivateReference(_V_) is *true*, then\n        i. Return ? PrivateSet(_baseObj_, _V_.[[ReferencedName]], _W_).\n\n    PrivateSet (O, P, value)\n      ...\n      3. If _entry_.[[Kind]] is ~field~, then\n        a. Set _entry_.[[Value]] to _value_.\n\n---*/\n\n\nclass C {\n  #field = 1;\n  compoundAssignment() {\n    return this.#field += 2;\n  }\n  fieldValue() {\n    return this.#field;\n  }\n}\n\nconst o = new C();\nassert.sameValue(o.compoundAssignment(), 3, \"The expression should evaluate to the result\");\nassert.sameValue(o.fieldValue(), 3, \"PutValue should store the result in the private reference\");\n"
  ],
  [
    "test262-language--expressions--compound-assignment--srshift-arguments-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (c) 2012 Ecma International.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nes5id: 11.13.2-6-18-s\nesid: sec-assignment-operators\ndescription: >\n    Strict Mode - SyntaxError is thrown if the identifier arguments\n    appear as the LeftHandSideExpression of a Compound Assignment\n    operator(>>=)\nflags: [onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\narguments >>= 20;\n"
  ],
  [
    "test262-language--expressions--conditional--S11.12_A4_T1",
    "script",
    true,
    "standards",
    "// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: If ToBoolean(x) is true, return y\nes5id: 11.12_A4_T1\ndescription: Type(y) and Type(z) are boolean primitives\n---*/\n\n//CHECK#1\nif ((true ? false : true) !== false) {\n  throw new Test262Error('#1: (true ? false : true) === false');\n}\n\n//CHECK#2\nvar y = new Boolean(true);\nif ((true ? y : false) !== y) {\n  throw new Test262Error('#2: (var y = new Boolean(true); (true ? y : false) === y');\n}\n\n//CHECK#3\nvar y = new Boolean(false);\nif ((y ? y : true) !== y) {\n  throw new Test262Error('#3: (var y = new Boolean(false); (y ? y : true) === y');\n}\n"
  ],
  [
    "test262-language--expressions--conditional--in-condition",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-conditional-operator\nes6id: 12.13\ndescription: >\n  The expression's LogicalORExpression sub-expression cannot include the `in`\n  keyword in contexts where it is disallowed.\ninfo: |\n  Syntax\n\n  ConditionalExpression[In, Yield] :\n    LogicalORExpression[?In, ?Yield]\n    LogicalORExpression[?In, ?Yield] ? AssignmentExpression[+In, ?Yield] : AssignmentExpression[?In, ?Yield]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nfor ('' in {} ? 0 : 0; false; ) ;\n"
  ],
  [
    "test262-language--expressions--delete--identifier-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (c) 2018 Mike Pennisi.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-delete-operator-static-semantics-early-errors\ndescription: Parsing error when operand is an IdentifierReference\ninfo: |\n  It is a Syntax Error if the UnaryExpression is contained in strict mode code\n  and the derived UnaryExpression is PrimaryExpression:IdentifierReference.\nnegative:\n  phase: parse\n  type: SyntaxError\nflags: [onlyStrict]\n---*/\n\n$DONOTEVALUATE();\n\ndelete test262identifier;\n"
  ],
  [
    "test262-language--expressions--delete--member-identifier-reference-undefined",
    "script",
    true,
    "standards",
    "// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-delete-operator\ndescription: Delete Operator throws an error if the base reference is not object-coercible (undefined).\ninfo: |\n  # 12.5.3.2 Runtime Semantics: Evaluation\n  UnaryExpression : delete UnaryExpression\n\n  [...]\n  5. If IsPropertyReference(ref) is true, then\n     a. If IsSuperReference(ref) is true, throw a ReferenceError exception.\n     b. Let baseObj be ? ToObject(ref.[[Base]]).\n---*/\n\nvar base = undefined;\n\nassert.throws(TypeError, function() {\n  delete base.prop;\n});\n"
  ],
  [
    "test262-language--expressions--delete--super-property-method",
    "script",
    true,
    "standards",
    "// Copyright (C) 2020 Rick Waldron. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-delete-operator-runtime-semantics-evaluation\ndescription: Attempts to delete super reference property references throws ReferenceError exception\nfeatures: [class]\n---*/\n\nclass X {\n  method() {\n    return this;\n  }\n}\n\nclass Y extends X {\n  method() {\n    delete super.method;\n  }\n}\n\nconst y = new Y();\n\nassert.throws(ReferenceError, () => {\n  y.method();\n});\n"
  ],
  [
    "test262-language--expressions--dynamic-import--assignment-expression--cover-call-expr",
    "script",
    true,
    "standards",
    "// Copyright (C) 2018 Leo Balter. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: >\n    Dynamic Import receives an AssignmentExpression (CoverCallExpressionAndAsyncArrowHeadn)\nesid: prod-ImportCall\ninfo: |\n    ImportCall [Yield]:\n        import ( AssignmentExpression[+In, ?Yield] )\n\n    AssignmentExpression[In, Yield, Await]:\n        ConditionalExpression[?In, ?Yield, ?Await]\n        [+Yield]YieldExpression[?In, ?Await]\n        ArrowFunction[?In, ?Yield, ?Await]\n        AsyncArrowFunction[?In, ?Yield, ?Await]\n        LeftHandSideExpression[?Yield, ?Await] = AssignmentExpression[?In, ?Yield, ?Await]\n        LeftHandSideExpression[?Yield, ?Await] AssignmentOperator AssignmentExpression[?In, ?Yield, ?Await]\n\n    CallExpression[Yield, Await]:\n        CoverCallExpressionAndAsyncArrowHead[?Yield, ?Await]\n        SuperCall[?Yield, ?Await]\n        CallExpression[?Yield, ?Await]Arguments[?Yield, ?Await]\n        CallExpression[?Yield, ?Await][Expression[+In, ?Yield, ?Await]]\n        CallExpression[?Yield, ?Await].IdentifierName\n        CallExpression[?Yield, ?Await]TemplateLiteral[?Yield, ?Await, +Tagged]\nflags: [async]\nfeatures: [dynamic-import]\nincludes: [asyncHelpers.js]\n---*/\n\nconst a = () => './module-code_FIXTURE.js';\nconst b = () => './module-code-other_FIXTURE.js';\n\nasync function fn() {\n    const ns1 = await import(a()); // import('./module-code_FIXTURE.js')\n\n    assert.sameValue(ns1.local1, 'Test262');\n    assert.sameValue(ns1.default, 42);\n\n    const ns2 = await import(b()); // import('./module-code-other_FIXTURE.js')\n\n    assert.sameValue(ns2.local1, 'one six one two');\n    assert.sameValue(ns2.default, 1612);\n}\n\nasyncTest(fn);\n"
  ],
  [
    "test262-language--expressions--dynamic-import--assignment-expression--new-target",
    "script",
    true,
    "standards",
    "// Copyright (C) 2018 Leo Balter. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: >\n    Dynamic Import receives an AssignmentExpression (NewTarget)\nesid: prod-ImportCall\ninfo: |\n    ImportCall [Yield]:\n        import ( AssignmentExpression[+In, ?Yield] )\n\n    AssignmentExpression[In, Yield, Await]:\n        ConditionalExpression[?In, ?Yield, ?Await]\n        [+Yield]YieldExpression[?In, ?Await]\n        ArrowFunction[?In, ?Yield, ?Await]\n        AsyncArrowFunction[?In, ?Yield, ?Await]\n        LeftHandSideExpression[?Yield, ?Await] = AssignmentExpression[?In, ?Yield, ?Await]\n        LeftHandSideExpression[?Yield, ?Await] AssignmentOperator AssignmentExpression[?In, ?Yield, ?Await]\nflags: [async]\nfeatures: [dynamic-import, new.target]\nincludes: [asyncHelpers.js]\n---*/\n\nfunction ctor() {\n    return import(new.target); // import('./module-code_FIXTURE.js')\n}\n\nctor.toString = () => './module-code_FIXTURE.js';\n\nasync function fn() {\n    const ns = await new ctor();\n\n    assert.sameValue(ns.local1, 'Test262');\n    assert.sameValue(ns.default, 42);\n}\n\nasyncTest(fn);\n"
  ],
  [
    "test262-language--expressions--dynamic-import--import-attributes--2nd-param-with-enumeration",
    "script",
    true,
    "standards",
    "// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: >\n  Follows the semantics of the EnumerableOwnPropertyNames abstract operation\n  during attributes enumeration\nesid: sec-import-call-runtime-semantics-evaluation\ninfo: |\n  2.1.1.1 EvaluateImportCall ( specifierExpression [ , optionsExpression ] )\n    [...]\n    6. Let promiseCapability be ! NewPromiseCapability(%Promise%).\n    7. Let specifierString be ToString(specifier).\n    8. IfAbruptRejectPromise(specifierString, promiseCapability).\n    9. Let assertions be a new empty List.\n    10. If options is not undefined, then\n        a. If Type(options) is not Object,\n           [...]\n        b. Let assertionsObj be Get(options, \"assert\").\n        c. IfAbruptRejectPromise(assertionsObj, promiseCapability).\n        d. If assertionsObj is not undefined,\n           i. If Type(assertionsObj) is not Object,\n              [...]\n           ii. Let keys be EnumerableOwnPropertyNames(assertionsObj, key).\n    [...]\nfeatures: [dynamic-import, import-attributes, Symbol, Proxy]\nflags: [async]\n---*/\n\nvar symbol = Symbol('');\nvar target = {\n  [symbol]: '',\n  unreported: '',\n  nonEnumerable: ''\n};\nvar descriptors = {\n  [symbol]: {configurable: true, enumerable: true},\n  nonEnumerable: {configurable: true, enumerable: false}\n};\n\nvar options = {\n  with: new Proxy({}, {\n    ownKeys: function() {\n      return [symbol, 'nonEnumerable', 'absent'];\n    },\n    get() {\n      throw new Error(\"Should not be called\");\n    },\n    getOwnPropertyDescriptor(target, name) {\n      return descriptors[name];\n    }\n  })\n};\n\nimport('./2nd-param_FIXTURE.js', options)\n  .then(function(module) {\n    assert.sameValue(module.default, 262);\n  })\n  .then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--dynamic-import--namespace--await-ns-prop-descs",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dynamic-import/ns-prop-descs.case\n// - src/dynamic-import/namespace/await.template\n/*---\ndescription: imported object properties descriptors (value from await resolving)\nesid: sec-finishdynamicimport\nfeatures: [dynamic-import]\nflags: [generated, async]\ninfo: |\n    Runtime Semantics: FinishDynamicImport ( referencingScriptOrModule, specifier, promiseCapability, completion )\n\n        1. If completion is an abrupt completion, ...\n        2. Otherwise,\n            ...\n            d. Let namespace be GetModuleNamespace(moduleRecord).\n            e. If namespace is an abrupt completion, perform ! Call(promiseCapability.[[Reject]], undefined, « namespace.[[Value]] »).\n            f. Otherwise, perform ! Call(promiseCapability.[[Resolve]], undefined, « namespace.[[Value]] »).\n\n    Runtime Semantics: GetModuleNamespace ( module )\n\n        ...\n        3. Let namespace be module.[[Namespace]].\n        4. If namespace is undefined, then\n            a. Let exportedNames be ? module.GetExportedNames(« »).\n            b. Let unambiguousNames be a new empty List.\n            c. For each name that is an element of exportedNames, do\n                i. Let resolution be ? module.ResolveExport(name, « »).\n                ii. If resolution is a ResolvedBinding Record, append name to unambiguousNames.\n            d. Set namespace to ModuleNamespaceCreate(module, unambiguousNames).\n        5. Return namespace.\n\n    ModuleNamespaceCreate ( module, exports )\n\n        ...\n        4. Let M be a newly created object.\n        5. Set M's essential internal methods to the definitions specified in 9.4.6.\n        7. Let sortedExports be a new List containing the same values as the list exports where the\n        values are ordered as if an Array of the same values had been sorted using Array.prototype.sort\n        using undefined as comparefn.\n        8. Set M.[[Exports]] to sortedExports.\n        9. Create own properties of M corresponding to the definitions in 26.3.\n        10. Set module.[[Namespace]] to M.\n        11. Return M.\n\n    26.3 Module Namespace Objects\n\n        A Module Namespace Object is a module namespace exotic object that provides runtime\n        property-based access to a module's exported bindings. There is no constructor function for\n        Module Namespace Objects. Instead, such an object is created for each module that is imported\n        by an ImportDeclaration that includes a NameSpaceImport.\n\n        In addition to the properties specified in 9.4.6 each Module Namespace Object has the\n        following own property:\n\n    26.3.1 @@toStringTag\n\n        The initial value of the @@toStringTag property is the String value \"Module\".\n\n        This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.\n\n    Module Namespace Exotic Objects\n\n        A module namespace object is an exotic object that exposes the bindings exported from an\n        ECMAScript Module (See 15.2.3). There is a one-to-one correspondence between the String-keyed\n        own properties of a module namespace exotic object and the binding names exported by the\n        Module. The exported bindings include any bindings that are indirectly exported using export *\n        export items. Each String-valued own property key is the StringValue of the corresponding\n        exported binding name. These are the only String-keyed properties of a module namespace exotic\n        object. Each such property has the attributes { [[Writable]]: true, [[Enumerable]]: true,\n        [[Configurable]]: false }. Module namespace objects are not extensible.\n\n---*/\n\nasync function fn() {\n    const ns = await import('./module-code_FIXTURE.js');\n\n    // propertyHelper.js is not appropriate for this test because it assumes that\n    // the object exposes the ordinary object's implementation of [[Get]], [[Set]],\n// [[Delete]], and [[OwnPropertyKeys]], which the module namespace exotic\n// object does not.\nvar desc = Object.getOwnPropertyDescriptor(ns, 'default');\n\nassert.sameValue(desc.value, 42, 'default: value is 42');\nassert.sameValue(desc.enumerable, true, 'default: is enumerable');\nassert.sameValue(desc.writable, true, 'default: is writable');\nassert.sameValue(desc.configurable, false, 'default: is non-configurable');\n\ndesc = Object.getOwnPropertyDescriptor(ns, 'local1');\n\nassert.sameValue(desc.value, 'Test262', 'local1: value is \"Test262\"');\nassert.sameValue(desc.enumerable, true, 'local1: is enumerable');\nassert.sameValue(desc.writable, true, 'local1: is writable');\nassert.sameValue(desc.configurable, false, 'local1: is non-configurable');\n\ndesc = Object.getOwnPropertyDescriptor(ns, 'renamed');\n\nassert.sameValue(desc.value, 'TC39', 'renamed: value is TC39\"');\nassert.sameValue(desc.enumerable, true, 'renamed: is enumerable');\nassert.sameValue(desc.writable, true, 'renamed: is writable');\nassert.sameValue(desc.configurable, false, 'renamed: is non-configurable');\n\ndesc = Object.getOwnPropertyDescriptor(ns, 'indirect');\n\nassert.sameValue(desc.value, 'Test262', 'indirect: value is Test262\"');\nassert.sameValue(desc.enumerable, true, 'indirect: is enumerable');\nassert.sameValue(desc.writable, true, 'indirect: is writable');\nassert.sameValue(desc.configurable, false, 'indirect: is non-configurable');\n}\n\nfn().then($DONE, $DONE).catch($DONE);\n"
  ],
  [
    "test262-language--expressions--dynamic-import--namespace--promise-then-ns-no-iterator",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dynamic-import/ns-no-iterator.case\n// - src/dynamic-import/namespace/promise.template\n/*---\ndescription: Module namespace objects lack a Symbol.toStringTag (value from promise then)\nesid: sec-finishdynamicimport\nfeatures: [Symbol.iterator, dynamic-import]\nflags: [generated, async]\ninfo: |\n    Runtime Semantics: FinishDynamicImport ( referencingScriptOrModule, specifier, promiseCapability, completion )\n\n        1. If completion is an abrupt completion, ...\n        2. Otherwise,\n            ...\n            d. Let namespace be GetModuleNamespace(moduleRecord).\n            e. If namespace is an abrupt completion, perform ! Call(promiseCapability.[[Reject]], undefined, « namespace.[[Value]] »).\n            f. Otherwise, perform ! Call(promiseCapability.[[Resolve]], undefined, « namespace.[[Value]] »).\n\n    Runtime Semantics: GetModuleNamespace ( module )\n\n        ...\n        3. Let namespace be module.[[Namespace]].\n        4. If namespace is undefined, then\n            a. Let exportedNames be ? module.GetExportedNames(« »).\n            b. Let unambiguousNames be a new empty List.\n            c. For each name that is an element of exportedNames, do\n                i. Let resolution be ? module.ResolveExport(name, « »).\n                ii. If resolution is a ResolvedBinding Record, append name to unambiguousNames.\n            d. Set namespace to ModuleNamespaceCreate(module, unambiguousNames).\n        5. Return namespace.\n\n    ModuleNamespaceCreate ( module, exports )\n\n        ...\n        4. Let M be a newly created object.\n        5. Set M's essential internal methods to the definitions specified in 9.4.6.\n        7. Let sortedExports be a new List containing the same values as the list exports where the\n        values are ordered as if an Array of the same values had been sorted using Array.prototype.sort\n        using undefined as comparefn.\n        8. Set M.[[Exports]] to sortedExports.\n        9. Create own properties of M corresponding to the definitions in 26.3.\n        10. Set module.[[Namespace]] to M.\n        11. Return M.\n\n    26.3 Module Namespace Objects\n\n        A Module Namespace Object is a module namespace exotic object that provides runtime\n        property-based access to a module's exported bindings. There is no constructor function for\n        Module Namespace Objects. Instead, such an object is created for each module that is imported\n        by an ImportDeclaration that includes a NameSpaceImport.\n\n        In addition to the properties specified in 9.4.6 each Module Namespace Object has the\n        following own property:\n\n    26.3.1 @@toStringTag\n\n        The initial value of the @@toStringTag property is the String value \"Module\".\n\n        This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.\n\n    Module Namespace Exotic Objects\n\n        A module namespace object is an exotic object that exposes the bindings exported from an\n        ECMAScript Module (See 15.2.3). There is a one-to-one correspondence between the String-keyed\n        own properties of a module namespace exotic object and the binding names exported by the\n        Module. The exported bindings include any bindings that are indirectly exported using export *\n        export items. Each String-valued own property key is the StringValue of the corresponding\n        exported binding name. These are the only String-keyed properties of a module namespace exotic\n        object. Each such property has the attributes { [[Writable]]: true, [[Enumerable]]: true,\n        [[Configurable]]: false }. Module namespace objects are not extensible.\n\n---*/\n\nimport('./module-code_FIXTURE.js').then(ns => {\n\n    assert.sameValue(Object.prototype.hasOwnProperty.call(ns, Symbol.iterator), false);\n\n}).then($DONE, $DONE).catch($DONE);\n"
  ],
  [
    "test262-language--expressions--equals--coerce-symbol-to-prim-return-prim",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 12.10.3\ndescription: >\n    Behavior when coercion via `Symbol.toPrimitive` yields a primitive value\ninfo: |\n    [...]\n    7. Return the result of performing Abstract Equality Comparison rval ==\n       lval.\n\n    ES6 Section 7.2.12 Abstract Equality Comparison\n\n    [...]\n    10. If Type(x) is either String, Number, or Symbol and Type(y) is Object,\n        then return the result of the comparison x == ToPrimitive(y).\n\n    ES6 Section 7.1.1 ToPrimitive ( input [, PreferredType] )\n\n    [...]\n    4. Let exoticToPrim be GetMethod(input, @@toPrimitive).\n    5. ReturnIfAbrupt(exoticToPrim).\n    6. If exoticToPrim is not undefined, then\n       a. Let result be Call(exoticToPrim, input, «hint»).\n       b. ReturnIfAbrupt(result).\n       c. If Type(result) is not Object, return result.\nfeatures: [Symbol.toPrimitive]\n---*/\n\nvar y = {};\nvar retVal;\n\ny[Symbol.toPrimitive] = function() {\n  return retVal;\n};\n\nretVal = 86;\nassert.sameValue(0 == y, false, 'number primitive (not equal)');\nassert.sameValue(86 == y, true, 'number primitive (equal)');\n\nretVal = 'str';\nassert.sameValue(0 == y, false, 'string primitive (not equal)');\nassert.sameValue('str' == y, true, 'sting primitive (equal)');\n\nretVal = Symbol.toPrimitive;\nassert.sameValue(0 == y, false, 'symbol (not equal)');\nassert.sameValue(Symbol.toPrimitive == y, true, 'symbol (equal)');\n"
  ],
  [
    "test262-language--expressions--exponentiation--applying-the-exp-operator_A10",
    "script",
    true,
    "standards",
    "// Copyright 2016 Rick Waldron.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-applying-the-exp-operator\ndescription: If abs(base) < 1 and exponent is −∞, the result is +∞.\n---*/\n\n\nvar exponent = -Infinity;\nvar bases = [];\nbases[0] = 0.999999999999999;\nbases[1] = 0.5;\nbases[2] = +0;\nbases[3] = -0;\nbases[4] = -0.5;\nbases[5] = -0.999999999999999;\n\nfor (var i = 0; i < bases.length; i++) {\n  if (Math.pow(bases[i], exponent) !== +Infinity) {\n    throw new Test262Error(\"(\" + bases[i] + \" ** \" + exponent + \") !== +Infinity\");\n  }\n}\n"
  ],
  [
    "test262-language--expressions--exponentiation--applying-the-exp-operator_A12",
    "script",
    true,
    "standards",
    "// Copyright 2016 Rick Waldron.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-applying-the-exp-operator\ndescription: If base is +∞ and exponent < 0, the result is +0.\nfeatures: [exponentiation]\n---*/\n\n\nvar base = +Infinity;\nvar exponents = [];\nexponents[0] = -Infinity;\nexponents[1] = -1.7976931348623157E308; //largest (by module) finite number\nexponents[2] = -1;\nexponents[3] = -0.000000000000001;\n\nfor (var i = 0; i < exponents.length; i++) {\n  if ((base ** exponents[i]) !== +0) {\n    throw new Test262Error(\"(\" + base + \" **  \" + exponents[i] + \") !== +0\");\n  }\n}\n"
  ],
  [
    "test262-language--expressions--exponentiation--exp-operator-syntax-error-plus-unary-expression-base",
    "script",
    false,
    "standards",
    "// Copyright (C) 2016 Rick Waldron. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Rick Waldron\nesid: sec-unary-operators\ndescription: Exponentiation Expression syntax error, `+` UnaryExpression\ninfo: |\n  ExponentiationExpression :\n    UnaryExpression\n    ...\n\n  UnaryExpression :\n    ...\n    `+` UnaryExpression\n    ...\nfeatures: [exponentiation]\n\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n+1 ** 2;\n"
  ],
  [
    "test262-language--expressions--function--array-destructuring-param-strict-body",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/array-destructuring-param-strict-body.case\n// - src/function-forms/syntax/func-expr.template\n/*---\ndescription: ArrayBindingPattern and Use Strict Directive are not allowed to coexist for the same function. (function expression)\nesid: sec-function-definitions-runtime-semantics-evaluation\nfeatures: [rest-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    FunctionExpression : function ( FormalParameters ) { FunctionBody }\n\n        [...]\n        3. Let closure be FunctionCreate(Normal, FormalParameters, FunctionBody,\n           scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.4 Static Semantics: IsSimpleParameterList\n\n    BindingElement : BindingPattern\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\n0, function([element]) {\n  \"use strict\";\n};\n"
  ],
  [
    "test262-language--expressions--function--dflt-params-rest",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-rest.case\n// - src/function-forms/syntax/func-expr.template\n/*---\ndescription: RestParameter does not support an initializer (function expression)\nesid: sec-function-definitions-runtime-semantics-evaluation\nfeatures: [default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    FunctionExpression : function ( FormalParameters ) { FunctionBody }\n\n        [...]\n        3. Let closure be FunctionCreate(Normal, FormalParameters, FunctionBody,\n           scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    14.1 Function Definitions\n\n    Syntax\n\n    FunctionRestParameter[Yield] :\n\n      BindingRestElement[?Yield]\n\n    13.3.3 Destructuring Binding Patterns\n\n    Syntax\n\n    BindingRestElement[Yield] :\n\n      ...BindingIdentifier[?Yield]\n      ...BindingPattern[?Yield]\n\n---*/\n$DONOTEVALUATE();\n\n0, function(...x = []) {\n  \n};\n"
  ],
  [
    "test262-language--expressions--function--dstr--ary-ptrn-rest-init-ary",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-init-ary.case\n// - src/dstr-binding/default/func-expr.template\n/*---\ndescription: Rest element (nested array pattern) does not support initializer (function expression)\nesid: sec-function-definitions-runtime-semantics-evaluation\nfeatures: [destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    FunctionExpression : function ( FormalParameters ) { FunctionBody }\n\n        [...]\n        3. Let closure be FunctionCreate(Normal, FormalParameters, FunctionBody,\n           scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nvar f;\nf = function([...[ x ] = []]) {\n  \n  callCount = callCount + 1;\n};\n\nf([]);\nassert.sameValue(callCount, 1, 'function invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--function--dstr--dflt-obj-ptrn-rest-skip-non-enumerable",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case\n// - src/dstr-binding/default/func-expr-dflt.template\n/*---\ndescription: Rest object doesn't contain non-enumerable properties (function expression (default parameter))\nesid: sec-function-definitions-runtime-semantics-evaluation\nfeatures: [object-rest, destructuring-binding, default-parameters]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    FunctionExpression : function ( FormalParameters ) { FunctionBody }\n\n        [...]\n        3. Let closure be FunctionCreate(Normal, FormalParameters, FunctionBody,\n           scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n---*/\nvar o = {a: 3, b: 4};\nObject.defineProperty(o, \"x\", { value: 4, enumerable: false });\n\nvar callCount = 0;\nvar f;\nf = function({...rest} = o) {\n  assert.sameValue(rest.x, undefined);\n\n  verifyProperty(rest, \"a\", {\n    enumerable: true,\n    writable: true,\n    configurable: true,\n    value: 3\n  });\n\n  verifyProperty(rest, \"b\", {\n    enumerable: true,\n    writable: true,\n    configurable: true,\n    value: 4\n  });\n  callCount = callCount + 1;\n};\n\nf();\nassert.sameValue(callCount, 1, 'function invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--function--dstr--obj-ptrn-prop-id-init-unresolvable",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-prop-id-init-unresolvable.case\n// - src/dstr-binding/error/func-expr.template\n/*---\ndescription: Destructuring initializer is an unresolvable reference (function expression)\nesid: sec-function-definitions-runtime-semantics-evaluation\nfeatures: [destructuring-binding]\nflags: [generated]\ninfo: |\n    FunctionExpression : function ( FormalParameters ) { FunctionBody }\n\n        [...]\n        3. Let closure be FunctionCreate(Normal, FormalParameters, FunctionBody,\n           scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.7 Runtime Semantics: KeyedBindingInitialization\n\n    BindingElement : BindingPattern Initializeropt\n\n    [...]\n    3. If Initializer is present and v is undefined, then\n       a. Let defaultValue be the result of evaluating Initializer.\n       b. Let v be GetValue(defaultValue).\n       c. ReturnIfAbrupt(v).\n\n    6.2.3.1 GetValue (V)\n\n    1. ReturnIfAbrupt(V).\n    2. If Type(V) is not Reference, return V.\n    3. Let base be GetBase(V).\n    4. If IsUnresolvableReference(V), throw a ReferenceError exception.\n---*/\n\nvar f = function({ x: y = unresolvableReference }) {};\n\nassert.throws(ReferenceError, function() {\n  f({});\n});\n"
  ],
  [
    "test262-language--expressions--function--dstr--obj-ptrn-rest-getter",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-rest-getter.case\n// - src/dstr-binding/default/func-expr.template\n/*---\ndescription: Getter is called when obj is being deconstructed to a rest Object (function expression)\nesid: sec-function-definitions-runtime-semantics-evaluation\nfeatures: [object-rest, destructuring-binding]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    FunctionExpression : function ( FormalParameters ) { FunctionBody }\n\n        [...]\n        3. Let closure be FunctionCreate(Normal, FormalParameters, FunctionBody,\n           scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n---*/\nvar count = 0;\n\nvar callCount = 0;\nvar f;\nf = function({...x}) {\n  assert.sameValue(count, 1);\n\n  verifyProperty(x, \"v\", {\n    enumerable: true,\n    writable: true,\n    configurable: true,\n    value: 2\n  });\n  callCount = callCount + 1;\n};\n\nf({ get v() { count++; return 2; } });\nassert.sameValue(callCount, 1, 'function invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--function--early-errors--invalid-names-member-expression-bad-reference",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/invalid-private-names/member-expression-bad-reference.case\n// - src/invalid-private-names/default/function-expr.template\n/*---\ndescription: bad reference in member expression (Invalid private names should throw a SyntaxError, inside function expression)\nesid: sec-static-semantics-early-errors\nfeatures: [class-fields-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ScriptBody:StatementList\n      It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List\n      as an argument is false unless the source code is eval code that is being\n      processed by a direct eval.\n\n    ModuleBody:ModuleItemList\n      It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List\n      as an argument is false.\n\n\n    Static Semantics: AllPrivateNamesValid\n\n    MemberExpression : MemberExpression . PrivateName\n\n    1. If StringValue of PrivateName is in names, return true.\n    2. Return false.\n\n    CallExpression : CallExpression . PrivateName\n\n    1. If StringValue of PrivateName is in names, return true.\n    2. Return false.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar fn = function() { something.#x };\n"
  ],
  [
    "test262-language--expressions--function--forbidden-ext--b2--func-expr-forbidden-ext-indirect-access-own-prop-caller-value",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-indirect-access-own-prop-caller-value.case\n// - src/function-forms/forbidden-extensions/bullet-two/func-expr.template\n/*---\ndescription: Forbidden extension, o.caller (function expression)\nesid: sec-definitions-runtime-semantics-evaluation\nflags: [generated, noStrict]\ninfo: |\n    FunctionExpression : function ( FormalParameters ) { FunctionBody }\n\n    If an implementation extends any function object with an own property named \"caller\" the value of\n    that property, as observed using [[Get]] or [[GetOwnProperty]], must not be a strict function\n    object. If it is an accessor property, the function that is the value of the property's [[Get]]\n    attribute must never return a strict function when called.\n\n---*/\nvar CALLER_OWN_PROPERTY_DOES_NOT_EXIST = Symbol();\nfunction inner() {\n  // This property may exist, but is forbidden from having a value that is a strict function object\n  return inner.hasOwnProperty(\"caller\")\n    ? inner.caller\n    : CALLER_OWN_PROPERTY_DOES_NOT_EXIST;\n}\n\nvar callCount = 0;\nvar f;\nf = function() {\n  \"use strict\";\n  // This and the following conditional value is set in the test's .case file.\n  // For every test that has a \"true\" value here, there is a\n  // corresponding test that has a \"false\" value here.\n  // They are generated from two different case files, which use\n  // the same templates.\n  let descriptor = Object.getOwnPropertyDescriptor(inner, \"caller\");\n  if (descriptor && descriptor.configurable && true) {\n    Object.defineProperty(inner, \"caller\", {value: 1});\n  }\n  var result = inner();\n  if (descriptor && descriptor.configurable && true) {\n    assert.sameValue(result, 1, 'If this test defined an own \"caller\" property on the inner function, then it should be accessible and should return the value it was set to.');\n  }\n\n  // \"CALLER_OWN_PROPERTY_DOES_NOT_EXIST\" is from\n  // forbidden-ext-indirect-access-prop-caller.case\n  //\n  // If the function object \"inner\" has an own property\n  // named \"caller\", then its value will be returned.\n  //\n  // If the function object \"inner\" DOES NOT have an\n  // own property named \"caller\", then the symbol\n  // CALLER_OWN_PROPERTY_DOES_NOT_EXIST will be returned.\n  if (result !== CALLER_OWN_PROPERTY_DOES_NOT_EXIST) {\n    assert.notSameValue(result, f);\n  }\n\n  callCount++;\n};\nf();\nassert.sameValue(callCount, 1, 'body evaluated');\n"
  ],
  [
    "test262-language--expressions--function--length-dflt",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 14.1.6\ndescription: >\n  Default parameters' effect on function length\ninfo: |\n  Function length is counted by the non initialized parameters in the left.\n\n  9.2.4 FunctionInitialize (F, kind, ParameterList, Body, Scope)\n\n  [...]\n  2. Let len be the ExpectedArgumentCount of ParameterList.\n  3. Perform ! DefinePropertyOrThrow(F, \"length\", PropertyDescriptor{[[Value]]:\n     len, [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true}).\n  [...]\n\n  FormalsList : FormalParameter\n\n    1. If HasInitializer of FormalParameter is true return 0\n    2. Return 1.\n\n  FormalsList : FormalsList , FormalParameter\n\n    1. Let count be the ExpectedArgumentCount of FormalsList.\n    2. If HasInitializer of FormalsList is true or HasInitializer of\n    FormalParameter is true, return count.\n    3. Return count+1.\nfeatures: [default-parameters]\nincludes: [propertyHelper.js]\n---*/\n\n\nvar f1 = function (x = 42) {};\n\nverifyProperty(f1, \"length\", {\n  value: 0,\n  writable: false,\n  enumerable: false,\n  configurable: true,\n});\n\nvar f2 = function (x = 42, y) {};\n\nverifyProperty(f2, \"length\", {\n  value: 0,\n  writable: false,\n  enumerable: false,\n  configurable: true,\n});\n\nvar f3 = function (x, y = 42) {};\n\nverifyProperty(f3, \"length\", {\n  value: 1,\n  writable: false,\n  enumerable: false,\n  configurable: true,\n});\n\nvar f4 = function (x, y = 42, z) {};\n\nverifyProperty(f4, \"length\", {\n  value: 1,\n  writable: false,\n  enumerable: false,\n  configurable: true,\n});\n"
  ],
  [
    "test262-language--expressions--function--param-dflt-yield-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-function-definitions\nes6id: 14.1\ndescription: >\n  The `yield` token is interpreted as an IdentifierReference within a generator\n  and outside of strict mode\ninfo: |\n  FunctionExpression :\n    function BindingIdentifieropt ( FormalParameters ) { FunctionBody }\nfeatures: [generators, default-parameters]\nflags: [onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nfunction *g() {\n  0, function(x = yield) {\n    paramValue = x;\n  };\n}\n"
  ],
  [
    "test262-language--expressions--function--scope-body-lex-distinct",
    "script",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-functiondeclarationinstantiation\ndescription: >\n    Creation of new lexical environment (distinct from the variable\n    environment) for the function body outside of strict mode\ninfo: |\n    [...]\n    29. If strict is false, then\n        a. Let lexEnv be NewDeclarativeEnvironment(varEnv).\n        b. NOTE: Non-strict functions use a separate lexical Environment Record\n           for top-level lexical declarations so that a direct eval can\n           determine whether any var scoped declarations introduced by the eval\n           code conflict with pre-existing top-level lexically scoped\n           declarations.  This is not needed for strict functions because a\n           strict direct eval always places all declarations into a new\n           Environment Record.\n    [...]\n\n    18.2.1.3 Runtime Semantics: EvalDeclarationInstantiation\n\n    [...]\n    5. If strict is false, then\n       [...]\n       b. Let thisLex be lexEnv.\n       c. Assert: The following loop will terminate.\n       d. Repeat while thisLex is not the same as varEnv,\n          i. Let thisEnvRec be thisLex's EnvironmentRecord.\n          ii. If thisEnvRec is not an object Environment Record, then\n              1. NOTE: The environment of with statements cannot contain any\n                 lexical declaration so it doesn't need to be checked for\n                 var/let hoisting conflicts.\n              2. For each name in varNames, do\n                 a. If thisEnvRec.HasBinding(name) is true, then\n                    i. Throw a SyntaxError exception.\n                    ii. NOTE: Annex B.3.5 defines alternate semantics for the\n                        above step.\n                 b. NOTE: A direct eval will not hoist var declaration over a\n                    like-named lexical declaration.\n          iii. Let thisLex be thisLex's outer environment reference.\nflags: [noStrict]\nfeatures: [let]\n---*/\n\nassert.throws(SyntaxError, function() {\n  let x;\n  eval('var x;');\n});\n"
  ],
  [
    "test262-language--expressions--function--use-strict-with-non-simple-param",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2015 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-function-definitions-static-semantics-early-errors\ndescription: >\n  A SyntaxError is thrown if a function contains a non-simple parameter list and a UseStrict directive.\ninfo: |\n  Static Semantics: Early Errors\n\n  It is a Syntax Error if ContainsUseStrict of FunctionBody is true and IsSimpleParameterList of FormalParameters is false.\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nvar f = function(a = 0) {\n  \"use strict\";\n}\n"
  ],
  [
    "test262-language--expressions--generators--dstr--ary-ptrn-rest-id",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-id.case\n// - src/dstr-binding/default/gen-func-expr.template\n/*---\ndescription: Lone rest element (generator function expression)\nesid: sec-generator-function-definitions-runtime-semantics-evaluation\nfeatures: [generators, destructuring-binding]\nflags: [generated]\ninfo: |\n    GeneratorExpression : function * ( FormalParameters ) { GeneratorBody }\n\n        [...]\n        3. Let closure be GeneratorFunctionCreate(Normal, FormalParameters,\n           GeneratorBody, scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.6 Runtime Semantics: IteratorBindingInitialization\n    BindingRestElement : ... BindingIdentifier\n    [...] 3. Let A be ArrayCreate(0). [...] 5. Repeat\n       [...]\n       f. Let status be CreateDataProperty(A, ToString (n), nextValue).\n       [...]\n---*/\nvar values = [1, 2, 3];\n\nvar callCount = 0;\nvar f;\nf = function*([...x]) {\n  assert(Array.isArray(x));\n  assert.sameValue(x.length, 3);\n  assert.sameValue(x[0], 1);\n  assert.sameValue(x[1], 2);\n  assert.sameValue(x[2], 3);\n  assert.notSameValue(x, values);\n  callCount = callCount + 1;\n};\n\nf(values).next();\nassert.sameValue(callCount, 1, 'generator function invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--generators--dstr--ary-ptrn-rest-init-obj",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-init-obj.case\n// - src/dstr-binding/default/gen-func-expr.template\n/*---\ndescription: Rest element (nested object pattern) does not support initializer (generator function expression)\nesid: sec-generator-function-definitions-runtime-semantics-evaluation\nfeatures: [generators, destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    GeneratorExpression : function * ( FormalParameters ) { GeneratorBody }\n\n        [...]\n        3. Let closure be GeneratorFunctionCreate(Normal, FormalParameters,\n           GeneratorBody, scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nvar f;\nf = function*([...{ x } = []]) {\n  \n  callCount = callCount + 1;\n};\n\nf([]).next();\nassert.sameValue(callCount, 1, 'generator function invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--generators--dstr--dflt-ary-ptrn-rest-not-final-obj",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case\n// - src/dstr-binding/default/gen-func-expr-dflt.template\n/*---\ndescription: Rest element (object binding pattern) may not be followed by any element (generator function expression (default parameter))\nesid: sec-generator-function-definitions-runtime-semantics-evaluation\nfeatures: [generators, destructuring-binding, default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    GeneratorExpression : function * ( FormalParameters ) { GeneratorBody }\n\n        [...]\n        3. Let closure be GeneratorFunctionCreate(Normal, FormalParameters,\n           GeneratorBody, scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nvar f;\nf = function*([...{ x }, y] = [1, 2, 3]) {\n  \n  callCount = callCount + 1;\n};\n\nf().next();\nassert.sameValue(callCount, 1, 'generator function invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--generators--param-dflt-yield",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-generator-function-definitions\nes6id: 14.4\ndescription: >\n  YieldExpression cannot be used within the FormalParameters of a generator\n  function\ninfo: |\n  GeneratorExpression :\n\n    function * BindingIdentifier[Yield]opt ( FormalParameters[Yield] ) { GeneratorBody }\n\n  YieldExpression cannot be used within the FormalParameters of a generator\n  function because any expressions that are part of FormalParameters are\n  evaluated before the resulting generator object is in a resumable state.\nfeatures: [generators, default-parameters]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n0, function*(x = yield) {};\n"
  ],
  [
    "test262-language--expressions--generators--scope-body-lex-distinct",
    "script",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-functiondeclarationinstantiation\ndescription: >\n    Creation of new lexical environment (distinct from the variable\n    environment) for the function body outside of strict mode\ninfo: |\n    [...]\n    29. If strict is false, then\n        a. Let lexEnv be NewDeclarativeEnvironment(varEnv).\n        b. NOTE: Non-strict functions use a separate lexical Environment Record\n           for top-level lexical declarations so that a direct eval can\n           determine whether any var scoped declarations introduced by the eval\n           code conflict with pre-existing top-level lexically scoped\n           declarations.  This is not needed for strict functions because a\n           strict direct eval always places all declarations into a new\n           Environment Record.\n    [...]\n\n    18.2.1.3 Runtime Semantics: EvalDeclarationInstantiation\n\n    [...]\n    5. If strict is false, then\n       [...]\n       b. Let thisLex be lexEnv.\n       c. Assert: The following loop will terminate.\n       d. Repeat while thisLex is not the same as varEnv,\n          i. Let thisEnvRec be thisLex's EnvironmentRecord.\n          ii. If thisEnvRec is not an object Environment Record, then\n              1. NOTE: The environment of with statements cannot contain any\n                 lexical declaration so it doesn't need to be checked for\n                 var/let hoisting conflicts.\n              2. For each name in varNames, do\n                 a. If thisEnvRec.HasBinding(name) is true, then\n                    i. Throw a SyntaxError exception.\n                    ii. NOTE: Annex B.3.5 defines alternate semantics for the\n                        above step.\n                 b. NOTE: A direct eval will not hoist var declaration over a\n                    like-named lexical declaration.\n          iii. Let thisLex be thisLex's outer environment reference.\nflags: [noStrict]\nfeatures: [generators, let]\n---*/\n\nvar g = function*() {\n  let x;\n  eval('var x;');\n};\nvar iter = g();\n\nassert.throws(SyntaxError, function() {\n  iter.next();\n});\n"
  ],
  [
    "test262-language--expressions--generators--unscopables-with-in-nested-fn",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/unscopables-with-in-nested-fn.case\n// - src/function-forms/default/gen-func-expr.template\n/*---\ndescription: Symbol.unscopables behavior across scope boundaries (generator function expression)\nesid: sec-generator-function-definitions-runtime-semantics-evaluation\nfeatures: [globalThis, Symbol.unscopables, generators]\nflags: [generated, noStrict]\ninfo: |\n    GeneratorExpression : function * ( FormalParameters ) { GeneratorBody }\n\n        [...]\n        3. Let closure be GeneratorFunctionCreate(Normal, FormalParameters,\n           GeneratorBody, scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n\n    ...\n    Let envRec be lex's EnvironmentRecord.\n    Let exists be ? envRec.HasBinding(name).\n\n    HasBinding\n\n    ...\n    If the withEnvironment flag of envRec is false, return true.\n    Let unscopables be ? Get(bindings, @@unscopables).\n    If Type(unscopables) is Object, then\n       Let blocked be ToBoolean(? Get(unscopables, N)).\n       If blocked is true, return false.\n\n    (The `with` Statement) Runtime Semantics: Evaluation\n\n    ...\n    Set the withEnvironment flag of newEnv’s EnvironmentRecord to true.\n    ...\n\n---*/\nlet count = 0;\nvar v = 1;\nglobalThis[Symbol.unscopables] = {\n  v: true,\n};\n\n{\n  count++;\n\nvar callCount = 0;\n// Stores a reference `ref` for case evaluation\nvar ref;\nref = function*(x) {\n  (function() {\n    count++;\n    with (globalThis) {\n      count++;\n      assert.sameValue(v, 1, 'The value of `v` is 1');\n    }\n  })();\n  (function() {\n    count++;\n    var v = x;\n    with (globalThis) {\n      count++;\n      assert.sameValue(v, 10, 'The value of `v` is 10');\n      v = 20;\n    }\n    assert.sameValue(v, 20, 'The value of `v` is 20');\n    assert.sameValue(globalThis.v, 1, 'The value of globalThis.v is 1');\n  })();\n  assert.sameValue(v, 1, 'The value of `v` is 1');\n  assert.sameValue(globalThis.v, 1, 'The value of globalThis.v is 1');\n  callCount = callCount + 1;\n};\n\nref(10).next();\n\nassert.sameValue(callCount, 1, 'generator function invoked exactly once');\n\n  count++;\n}\nassert.sameValue(count, 6, 'The value of `count` is 6');\n"
  ],
  [
    "test262-language--expressions--greater-than--bigint-and-string",
    "script",
    true,
    "standards",
    "// Copyright (C) 2018 Igalia, S.L. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Relational comparison of BigInt and string values\nesid: sec-abstract-relational-comparison\nfeatures: [BigInt]\n---*/\nassert.sameValue(0n > '0', false, 'The result of (0n > \"0\") is false');\nassert.sameValue('0' > 0n, false, 'The result of (\"0\" > 0n) is false');\nassert.sameValue(0n > '1', false, 'The result of (0n > \"1\") is false');\nassert.sameValue('0' > 1n, false, 'The result of (\"0\" > 1n) is false');\nassert.sameValue(1n > '0', true, 'The result of (1n > \"0\") is true');\nassert.sameValue('1' > 0n, true, 'The result of (\"1\" > 0n) is true');\nassert.sameValue(0n > '', false, 'The result of (0n > \"\") is false');\nassert.sameValue('' > 0n, false, 'The result of (\"\" > 0n) is false');\nassert.sameValue(0n > '1', false, 'The result of (0n > \"1\") is false');\nassert.sameValue('' > 1n, false, 'The result of (\"\" > 1n) is false');\nassert.sameValue(1n > '', true, 'The result of (1n > \"\") is true');\nassert.sameValue('1' > 0n, true, 'The result of (\"1\" > 0n) is true');\nassert.sameValue(1n > '1', false, 'The result of (1n > \"1\") is false');\nassert.sameValue('1' > 1n, false, 'The result of (\"1\" > 1n) is false');\nassert.sameValue(1n > '-1', true, 'The result of (1n > \"-1\") is true');\nassert.sameValue('1' > -1n, true, 'The result of (\"1\" > -1n) is true');\nassert.sameValue(-1n > '1', false, 'The result of (-1n > \"1\") is false');\nassert.sameValue('-1' > 1n, false, 'The result of (\"-1\" > 1n) is false');\nassert.sameValue(-1n > '-1', false, 'The result of (-1n > \"-1\") is false');\nassert.sameValue('-1' > -1n, false, 'The result of (\"-1\" > -1n) is false');\nassert.sameValue('0x10' > 15n, true, 'The result of (\"0x10\" > 15n) is true');\nassert.sameValue('0x10' > 16n, false, 'The result of (\"0x10\" > 16n) is false');\nassert.sameValue('0x10' > 17n, false, 'The result of (\"0x10\" > 17n) is false');\nassert.sameValue('0o10' > 7n, true, 'The result of (\"0o10\" > 7n) is true');\nassert.sameValue('0o10' > 8n, false, 'The result of (\"0o10\" > 8n) is false');\nassert.sameValue('0o10' > 9n, false, 'The result of (\"0o10\" > 9n) is false');\nassert.sameValue('0b10' > 1n, true, 'The result of (\"0b10\" > 1n) is true');\nassert.sameValue('0b10' > 2n, false, 'The result of (\"0b10\" > 2n) is false');\nassert.sameValue('0b10' > 3n, false, 'The result of (\"0b10\" > 3n) is false');\n\nassert.sameValue(\n  9007199254740993n > '9007199254740992',\n  true,\n  'The result of (9007199254740993n > \"9007199254740992\") is true'\n);\n\nassert.sameValue(\n  '9007199254740993' > 9007199254740992n,\n  true,\n  'The result of (\"9007199254740993\" > 9007199254740992n) is true'\n);\n\nassert.sameValue(\n  -9007199254740992n > '-9007199254740993',\n  true,\n  'The result of (-9007199254740992n > \"-9007199254740993\") is true'\n);\n\nassert.sameValue(\n  '-9007199254740992' > -9007199254740993n,\n  true,\n  'The result of (\"-9007199254740992\" > -9007199254740993n) is true'\n);\n"
  ],
  [
    "test262-language--expressions--greater-than-or-equal--bigint-and-number",
    "script",
    true,
    "standards",
    "// Copyright (C) 2017 Robin Templeton. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Comparisons of BigInt and Number values\nesid: sec-abstract-relational-comparison\ninfo: |\n  ...\n  3. If both px and py are Strings, then\n    ...\n  4. Else,\n    a. Let nx be ? ToNumeric(px). Because px and py are primitive values evaluation order is not important.\n    b. Let ny be ? ToNumeric(py).\n    c. If Type(nx) is Type(ny), return ? Type(nx)::lessThan(nx, ny).\n    d. Assert: Type(nx) is BigInt and Type(ny) is Number, or if Type(nx) is Number and Type(ny) is BigInt.\n    e. If x or y are any of NaN, return undefined.\n    f. If x is -∞, or y is +∞, return true.\n    g. If x is +∞, or y is -∞, return false.\n    h. If the mathematical value of nx is less than the mathematical value of ny, return true, otherwise return false.\nfeatures: [BigInt]\n---*/\nassert.sameValue(0n >= 0, true, 'The result of (0n >= 0) is true');\nassert.sameValue(0 >= 0n, true, 'The result of (0 >= 0n) is true');\nassert.sameValue(0n >= -0, true, 'The result of (0n >= -0) is true');\nassert.sameValue(-0 >= 0n, true, 'The result of (-0 >= 0n) is true');\nassert.sameValue(0n >= 0.000000000001, false, 'The result of (0n >= 0.000000000001) is false');\nassert.sameValue(0.000000000001 >= 0n, true, 'The result of (0.000000000001 >= 0n) is true');\nassert.sameValue(0n >= 1, false, 'The result of (0n >= 1) is false');\nassert.sameValue(1 >= 0n, true, 'The result of (1 >= 0n) is true');\nassert.sameValue(1n >= 0, true, 'The result of (1n >= 0) is true');\nassert.sameValue(0 >= 1n, false, 'The result of (0 >= 1n) is false');\nassert.sameValue(1n >= 0.999999999999, true, 'The result of (1n >= 0.999999999999) is true');\nassert.sameValue(0.999999999999 >= 1n, false, 'The result of (0.999999999999 >= 1n) is false');\nassert.sameValue(1n >= 1, true, 'The result of (1n >= 1) is true');\nassert.sameValue(1 >= 1n, true, 'The result of (1 >= 1n) is true');\nassert.sameValue(0n >= Number.MIN_VALUE, false, 'The result of (0n >= Number.MIN_VALUE) is false');\nassert.sameValue(Number.MIN_VALUE >= 0n, true, 'The result of (Number.MIN_VALUE >= 0n) is true');\nassert.sameValue(0n >= -Number.MIN_VALUE, true, 'The result of (0n >= -Number.MIN_VALUE) is true');\n\nassert.sameValue(\n  -Number.MIN_VALUE >= 0n,\n  false,\n  'The result of (-Number.MIN_VALUE >= 0n) is false'\n);\n\nassert.sameValue(\n  -10n >= Number.MIN_VALUE,\n  false,\n  'The result of (-10n >= Number.MIN_VALUE) is false'\n);\n\nassert.sameValue(\n  Number.MIN_VALUE >= -10n,\n  true,\n  'The result of (Number.MIN_VALUE >= -10n) is true'\n);\n"
  ],
  [
    "test262-language--expressions--grouping--S11.1.6_A2_T1",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: |\n    \"This\" operator doesn't use GetValue. The operators \"delete\" and \"typeof\"\n    can be applied to parenthesised expressions\nes5id: 11.1.6_A2_T1\ndescription: >\n    Applying \"delete\" and \"typeof\" operators to an undefined variable\n    and a property of an object\n---*/\n\n//CHECK#1\nif (typeof (x) !== \"undefined\") {\n  throw new Test262Error('#1: typeof (x) === \"undefined\". Actual: ' + (typeof (x)));\n}\n\nvar object = {};\n//CHECK#2\nif (delete (object.prop) !== true) {\n  throw new Test262Error('#2: var object = {}; delete (object.prop) === true');\n}\n\n//CHECK#3\nif (typeof (object.prop) !== \"undefined\") {\n  throw new Test262Error('#3: var object = {}; typeof (object.prop) === \"undefined\". Actual: ' + (typeof (object.prop)));\n}\n"
  ],
  [
    "test262-language--expressions--import.meta--syntax--invalid-assignment-target-object-rest-destructuring-expr",
    "module",
    false,
    "standards",
    "// Copyright (C) 2018 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-static-semantics-static-semantics-assignmenttargettype\ndescription: >\n  import.meta is not a valid assignment target.\ninfo: |\n  Static Semantics: AssignmentTargetType\n\n    ImportMeta:\n      import.meta\n\n    Return invalid.\n\n  12.15.5.1 Static Semantics: Early Errors\n\n    DestructuringAssignmentTarget : LeftHandSideExpression\n\n    It is a Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral\n    and AssignmentTargetType(LeftHandSideExpression) is not simple.\nflags: [module]\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [import.meta, destructuring-assignment, object-rest]\n---*/\n\n$DONOTEVALUATE();\n\n({...import.meta} = {});\n"
  ],
  [
    "test262-language--expressions--in--private-field-in-nested",
    "script",
    false,
    "standards",
    "// Copyright (C) 2021 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: >\n  Can't nest `in` expressions when the left-hand side is PrivateIdentifier.\ninfo: |\n  Syntax\n    RelationalExpression[In, Yield, Await]:\n    [...]\n    [+In]PrivateIdentifier in ShiftExpression[?Yield, ?Await]\nesid: sec-relational-operators\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [class-fields-private, class-fields-private-in]\n---*/\n\n$DONOTEVALUATE();\n\nclass C {\n  #field;\n\n  constructor() {\n    #field in #field in this;\n  }\n}\n"
  ],
  [
    "test262-language--expressions--in--private-field-presence-method",
    "script",
    true,
    "standards",
    "// Copyright 2021 the V8 project authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: Value when private name describes a method\ninfo: |\n  7. Let privateName be ? GetValue(privateNameBinding).\n  8. Assert: privateName is a Private Name.\n  [...]\n  10. Else,\n      a. Assert: privateName.[[Kind]] is \"method\" or \"accessor\".\n      b. If PrivateBrandCheck(rval, privateName) is not an abrupt completion,\n         then return true.\n  11. Return false.\nesid: sec-relational-operators-runtime-semantics-evaluation\nfeatures: [class-methods-private, class-fields-private-in]\n---*/\n\nlet count = 0;\n\nclass Class {\n  #method() {\n    count += 1;\n  }\n\n  static isNameIn(value) {\n    return #method in value;\n  }\n}\n\nassert.sameValue(Class.isNameIn({}), false);\nassert.sameValue(Class.isNameIn(new Class()), true);\nassert.sameValue(count, 0);\n"
  ],
  [
    "test262-language--expressions--instanceof--symbol-hasinstance-invocation",
    "script",
    true,
    "standards",
    "// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nes6id: 12.9.4\ndescription: >\n    Arguments and 'this' value when invoking constructor's @@hasInstance property\ninfo: |\n    1. If Type(C) is not Object, throw a TypeError exception.\n    2. Let instOfHandler be GetMethod(C,@@hasInstance).\n    3. ReturnIfAbrupt(instOfHandler).\n    4. If instOfHandler is not undefined, then\n       a. Return ToBoolean(Call(instOfHandler, C, «O»)).\nfeatures: [Symbol.hasInstance]\n---*/\n\nvar F = {};\nvar callCount = 0;\nvar thisValue, args;\n\nF[Symbol.hasInstance] = function() {\n  thisValue = this;\n  args = arguments;\n  callCount += 1;\n};\n\n0 instanceof F;\n\nassert.sameValue(callCount, 1);\nassert.sameValue(thisValue, F);\nassert.sameValue(args.length, 1);\nassert.sameValue(args[0], 0);\n"
  ],
  [
    "test262-language--expressions--modulus--bigint-toprimitive",
    "script",
    true,
    "standards",
    "// Copyright (C) 2017 Josh Wolfe. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: modulus operator ToNumeric with BigInt operands\nesid: sec-multiplicative-operators-runtime-semantics-evaluation\nfeatures: [BigInt, Symbol.toPrimitive, computed-property-names]\n---*/\nfunction err() {\n  throw new Test262Error();\n}\n\nfunction MyError() {}\n\nassert.sameValue({\n  [Symbol.toPrimitive]: function() {\n    return 2n;\n  },\n\n  valueOf: err,\n  toString: err\n} % 2n, 0n, 'The result of (({[Symbol.toPrimitive]: function() {return 2n;}, valueOf: err, toString: err}) % 2n) is 0n');\n\nassert.sameValue(2n % {\n  [Symbol.toPrimitive]: function() {\n    return 2n;\n  },\n\n  valueOf: err,\n  toString: err\n}, 0n, 'The result of (2n % {[Symbol.toPrimitive]: function() {return 2n;}, valueOf: err, toString: err}) is 0n');\n\nassert.sameValue({\n  valueOf: function() {\n    return 2n;\n  },\n\n  toString: err\n} % 2n, 0n, 'The result of (({valueOf: function() {return 2n;}, toString: err}) % 2n) is 0n');\n\nassert.sameValue(2n % {\n  valueOf: function() {\n    return 2n;\n  },\n\n  toString: err\n}, 0n, 'The result of (2n % {valueOf: function() {return 2n;}, toString: err}) is 0n');\n\nassert.sameValue({\n  toString: function() {\n    return 2n;\n  }\n} % 2n, 0n, 'The result of (({toString: function() {return 2n;}}) % 2n) is 0n');\n\nassert.sameValue(2n % {\n  toString: function() {\n    return 2n;\n  }\n}, 0n, 'The result of (2n % {toString: function() {return 2n;}}) is 0n');\n\nassert.sameValue({\n  [Symbol.toPrimitive]: undefined,\n\n  valueOf: function() {\n    return 2n;\n  }\n} % 2n, 0n, 'The result of (({[Symbol.toPrimitive]: undefined, valueOf: function() {return 2n;}}) % 2n) is 0n');\n\nassert.sameValue(2n % {\n  [Symbol.toPrimitive]: undefined,\n\n  valueOf: function() {\n    return 2n;\n  }\n}, 0n, 'The result of (2n % {[Symbol.toPrimitive]: undefined, valueOf: function() {return 2n;}}) is 0n');\n\nassert.sameValue({\n  [Symbol.toPrimitive]: null,\n\n  valueOf: function() {\n    return 2n;\n  }\n} % 2n, 0n, 'The result of (({[Symbol.toPrimitive]: null, valueOf: function() {return 2n;}}) % 2n) is 0n');\n\nassert.sameValue(2n % {\n  [Symbol.toPrimitive]: null,\n\n  valueOf: function() {\n    return 2n;\n  }\n}, 0n, 'The result of (2n % {[Symbol.toPrimitive]: null, valueOf: function() {return 2n;}}) is 0n');\n\nassert.sameValue({\n  valueOf: null,\n\n  toString: function() {\n    return 2n;\n  }\n} % 2n, 0n, 'The result of (({valueOf: null, toString: function() {return 2n;}}) % 2n) is 0n');\n\nassert.sameValue(2n % {\n  valueOf: null,\n\n  toString: function() {\n    return 2n;\n  }\n}, 0n, 'The result of (2n % {valueOf: null, toString: function() {return 2n;}}) is 0n');\n\nassert.sameValue({\n  valueOf: 1,\n\n  toString: function() {\n    return 2n;\n  }\n} % 2n, 0n, 'The result of (({valueOf: 1, toString: function() {return 2n;}}) % 2n) is 0n');\n\nassert.sameValue(2n % {\n  valueOf: 1,\n\n  toString: function() {\n    return 2n;\n  }\n}, 0n, 'The result of (2n % {valueOf: 1, toString: function() {return 2n;}}) is 0n');\n\nassert.sameValue({\n  valueOf: {},\n\n  toString: function() {\n    return 2n;\n  }\n} % 2n, 0n, 'The result of (({valueOf: {}, toString: function() {return 2n;}}) % 2n) is 0n');\n\nassert.sameValue(2n % {\n  valueOf: {},\n\n  toString: function() {\n    return 2n;\n  }\n}, 0n, 'The result of (2n % {valueOf: {}, toString: function() {return 2n;}}) is 0n');\n\nassert.sameValue({\n  valueOf: function() {\n    return {};\n  },\n\n  toString: function() {\n    return 2n;\n  }\n} % 2n, 0n, 'The result of (({valueOf: function() {return {};}, toString: function() {return 2n;}}) % 2n) is 0n');\n\nassert.sameValue(2n % {\n  valueOf: function() {\n    return {};\n  },\n\n  toString: function() {\n    return 2n;\n  }\n}, 0n, 'The result of (2n % {valueOf: function() {return {};}, toString: function() {return 2n;}}) is 0n');\n\nassert.sameValue({\n  valueOf: function() {\n    return Object(12345);\n  },\n\n  toString: function() {\n    return 2n;\n  }\n} % 2n, 0n, 'The result of (({valueOf: function() {return Object(12345);}, toString: function() {return 2n;}}) % 2n) is 0n');\n\nassert.sameValue(2n % {\n  valueOf: function() {\n    return Object(12345);\n  },\n\n  toString: function() {\n    return 2n;\n  }\n}, 0n, 'The result of (2n % {valueOf: function() {return Object(12345);}, toString: function() {return 2n;}}) is 0n');\n\nassert.throws(TypeError, function() {\n  ({\n    [Symbol.toPrimitive]: 1\n  }) % 1n;\n}, '({[Symbol.toPrimitive]: 1}) % 1n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n % {\n    [Symbol.toPrimitive]: 1\n  };\n}, '0n % {[Symbol.toPrimitive]: 1} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    [Symbol.toPrimitive]: {}\n  }) % 1n;\n}, '({[Symbol.toPrimitive]: {}}) % 1n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n % {\n    [Symbol.toPrimitive]: {}\n  };\n}, '0n % {[Symbol.toPrimitive]: {}} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    [Symbol.toPrimitive]: function() {\n      return Object(1);\n    }\n  }) % 1n;\n}, '({[Symbol.toPrimitive]: function() {return Object(1);}}) % 1n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n % {\n    [Symbol.toPrimitive]: function() {\n      return Object(1);\n    }\n  };\n}, '0n % {[Symbol.toPrimitive]: function() {return Object(1);}} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    [Symbol.toPrimitive]: function() {\n      return {};\n    }\n  }) % 1n;\n}, '({[Symbol.toPrimitive]: function() {return {};}}) % 1n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n % {\n    [Symbol.toPrimitive]: function() {\n      return {};\n    }\n  };\n}, '0n % {[Symbol.toPrimitive]: function() {return {};}} throws TypeError');\n\nassert.throws(MyError, function() {\n  ({\n    [Symbol.toPrimitive]: function() {\n      throw new MyError();\n    }\n  }) % 1n;\n}, '({[Symbol.toPrimitive]: function() {throw new MyError();}}) % 1n throws MyError');\n\nassert.throws(MyError, function() {\n  0n % {\n    [Symbol.toPrimitive]: function() {\n      throw new MyError();\n    }\n  };\n}, '0n % {[Symbol.toPrimitive]: function() {throw new MyError();}} throws MyError');\n\nassert.throws(MyError, function() {\n  ({\n    valueOf: function() {\n      throw new MyError();\n    }\n  }) % 1n;\n}, '({valueOf: function() {throw new MyError();}}) % 1n throws MyError');\n\nassert.throws(MyError, function() {\n  0n % {\n    valueOf: function() {\n      throw new MyError();\n    }\n  };\n}, '0n % {valueOf: function() {throw new MyError();}} throws MyError');\n\nassert.throws(MyError, function() {\n  ({\n    toString: function() {\n      throw new MyError();\n    }\n  }) % 1n;\n}, '({toString: function() {throw new MyError();}}) % 1n throws MyError');\n\nassert.throws(MyError, function() {\n  0n % {\n    toString: function() {\n      throw new MyError();\n    }\n  };\n}, '0n % {toString: function() {throw new MyError();}} throws MyError');\n\nassert.throws(TypeError, function() {\n  ({\n    valueOf: null,\n    toString: null\n  }) % 1n;\n}, '({valueOf: null, toString: null}) % 1n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n % {\n    valueOf: null,\n    toString: null\n  };\n}, '0n % {valueOf: null, toString: null} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    valueOf: 1,\n    toString: 1\n  }) % 1n;\n}, '({valueOf: 1, toString: 1}) % 1n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n % {\n    valueOf: 1,\n    toString: 1\n  };\n}, '0n % {valueOf: 1, toString: 1} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    valueOf: {},\n    toString: {}\n  }) % 1n;\n}, '({valueOf: {}, toString: {}}) % 1n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n % {\n    valueOf: {},\n    toString: {}\n  };\n}, '0n % {valueOf: {}, toString: {}} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    valueOf: function() {\n      return Object(1);\n    },\n\n    toString: function() {\n      return Object(1);\n    }\n  }) % 1n;\n}, '({valueOf: function() {return Object(1);}, toString: function() {return Object(1);}}) % 1n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n % {\n    valueOf: function() {\n      return Object(1);\n    },\n\n    toString: function() {\n      return Object(1);\n    }\n  };\n}, '0n % {valueOf: function() {return Object(1);}, toString: function() {return Object(1);}} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    valueOf: function() {\n      return {};\n    },\n\n    toString: function() {\n      return {};\n    }\n  }) % 1n;\n}, '({valueOf: function() {return {};}, toString: function() {return {};}}) % 1n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n % {\n    valueOf: function() {\n      return {};\n    },\n\n    toString: function() {\n      return {};\n    }\n  };\n}, '0n % {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError');\n"
  ],
  [
    "test262-language--expressions--modulus--order-of-evaluation",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2018 Igalia, S.L. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-multiplicative-operators-runtime-semantics-evaluation\ndescription: Type coercion order of operations for modulus operator\nfeatures: [Symbol]\ninfo: |\n  Evaluate lhs\n  Evaluate rhs\n  ToNumeric(lhs)\n  ToNumeric(rhs)\n---*/\n\nfunction MyError() {}\nvar trace;\n\n// ?GetValue(lhs) throws.\ntrace = \"\";\nassert.throws(MyError, function() {\n  (function() {\n    trace += \"1\";\n    throw new MyError();\n  })() % (function() {\n    trace += \"2\";\n    throw new Test262Error(\"should not be evaluated\");\n  })();\n}, \"?GetValue(lhs) throws.\");\nassert.sameValue(trace, \"1\", \"?GetValue(lhs) throws.\");\n\n// ?GetValue(rhs) throws.\ntrace = \"\";\nassert.throws(MyError, function() {\n  (function() {\n    trace += \"1\";\n    return {\n      valueOf: function() {\n        trace += \"3\";\n        throw new Test262Error(\"should not be evaluated\");\n      }\n    };\n  })() % (function() {\n    trace += \"2\";\n    throw new MyError();\n  })();\n}, \"?GetValue(rhs) throws.\");\nassert.sameValue(trace, \"12\", \"?GetValue(rhs) throws.\");\n\n// ?ToPrimive(lhs) throws.\ntrace = \"\";\nassert.throws(MyError, function() {\n  (function() {\n    trace += \"1\";\n    return {\n      valueOf: function() {\n        trace += \"3\";\n        throw new MyError();\n      }\n    };\n  })() % (function() {\n    trace += \"2\";\n    return {\n      valueOf: function() {\n        trace += \"4\";\n        throw new Test262Error(\"should not be evaluated\");\n      }\n    };\n  })();\n}, \"?ToPrimive(lhs) throws.\");\nassert.sameValue(trace, \"123\", \"?ToPrimive(lhs) throws.\");\n\n// ?ToPrimive(rhs) throws.\ntrace = \"\";\nassert.throws(MyError, function() {\n  (function() {\n    trace += \"1\";\n    return {\n      valueOf: function() {\n        trace += \"3\";\n        return 1;\n      }\n    };\n  })() % (function() {\n    trace += \"2\";\n    return {\n      valueOf: function() {\n        trace += \"4\";\n        throw new MyError();\n      }\n    };\n  })();\n}, \"?ToPrimive(rhs) throws.\");\nassert.sameValue(trace, \"1234\", \"?ToPrimive(rhs) throws.\");\n\n// ?ToNumeric(lhs) throws.\ntrace = \"\";\nassert.throws(TypeError, function() {\n  (function() {\n    trace += \"1\";\n    return {\n      valueOf: function() {\n        trace += \"3\";\n        return Symbol(\"1\");\n      }\n    };\n  })() % (function() {\n    trace += \"2\";\n    return {\n      valueOf: function() {\n        trace += \"4\";\n        throw new Test262Error(\"should not be evaluated\");\n      }\n    };\n  })();\n}, \"?ToNumeric(lhs) throws.\");\nassert.sameValue(trace, \"123\", \"?ToNumeric(lhs) throws.\");\n\n// GetValue(lhs) throws.\ntrace = \"\";\nassert.throws(TypeError, function() {\n  (function() {\n    trace += \"1\";\n    return {\n      valueOf: function() {\n        trace += \"3\";\n        return 1;\n      }\n    };\n  })() % (function() {\n    trace += \"2\";\n    return {\n      valueOf: function() {\n        trace += \"4\";\n        return Symbol(\"1\");\n      }\n    };\n  })();\n}, \"GetValue(lhs) throws.\");\nassert.sameValue(trace, \"1234\", \"GetValue(lhs) throws.\");\n"
  ],
  [
    "test262-language--expressions--multiplication--bigint-toprimitive",
    "script",
    true,
    "standards",
    "// Copyright (C) 2017 Josh Wolfe. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: multiplication operator ToNumeric with BigInt operands\nesid: sec-multiplicative-operators-runtime-semantics-evaluation\nfeatures: [BigInt, Symbol.toPrimitive, computed-property-names]\n---*/\nfunction err() {\n  throw new Test262Error();\n}\n\nfunction MyError() {}\n\nassert.sameValue({\n  [Symbol.toPrimitive]: function() {\n    return 2n;\n  },\n\n  valueOf: err,\n  toString: err\n} * 2n, 4n, 'The result of (({[Symbol.toPrimitive]: function() {return 2n;}, valueOf: err, toString: err}) * 2n) is 4n');\n\nassert.sameValue(2n * {\n  [Symbol.toPrimitive]: function() {\n    return 2n;\n  },\n\n  valueOf: err,\n  toString: err\n}, 4n, 'The result of (2n * {[Symbol.toPrimitive]: function() {return 2n;}, valueOf: err, toString: err}) is 4n');\n\nassert.sameValue({\n  valueOf: function() {\n    return 2n;\n  },\n\n  toString: err\n} * 2n, 4n, 'The result of (({valueOf: function() {return 2n;}, toString: err}) * 2n) is 4n');\n\nassert.sameValue(2n * {\n  valueOf: function() {\n    return 2n;\n  },\n\n  toString: err\n}, 4n, 'The result of (2n * {valueOf: function() {return 2n;}, toString: err}) is 4n');\n\nassert.sameValue({\n  toString: function() {\n    return 2n;\n  }\n} * 2n, 4n, 'The result of (({toString: function() {return 2n;}}) * 2n) is 4n');\n\nassert.sameValue(2n * {\n  toString: function() {\n    return 2n;\n  }\n}, 4n, 'The result of (2n * {toString: function() {return 2n;}}) is 4n');\n\nassert.sameValue({\n  [Symbol.toPrimitive]: undefined,\n\n  valueOf: function() {\n    return 2n;\n  }\n} * 2n, 4n, 'The result of (({[Symbol.toPrimitive]: undefined, valueOf: function() {return 2n;}}) * 2n) is 4n');\n\nassert.sameValue(2n * {\n  [Symbol.toPrimitive]: undefined,\n\n  valueOf: function() {\n    return 2n;\n  }\n}, 4n, 'The result of (2n * {[Symbol.toPrimitive]: undefined, valueOf: function() {return 2n;}}) is 4n');\n\nassert.sameValue({\n  [Symbol.toPrimitive]: null,\n\n  valueOf: function() {\n    return 2n;\n  }\n} * 2n, 4n, 'The result of (({[Symbol.toPrimitive]: null, valueOf: function() {return 2n;}}) * 2n) is 4n');\n\nassert.sameValue(2n * {\n  [Symbol.toPrimitive]: null,\n\n  valueOf: function() {\n    return 2n;\n  }\n}, 4n, 'The result of (2n * {[Symbol.toPrimitive]: null, valueOf: function() {return 2n;}}) is 4n');\n\nassert.sameValue({\n  valueOf: null,\n\n  toString: function() {\n    return 2n;\n  }\n} * 2n, 4n, 'The result of (({valueOf: null, toString: function() {return 2n;}}) * 2n) is 4n');\n\nassert.sameValue(2n * {\n  valueOf: null,\n\n  toString: function() {\n    return 2n;\n  }\n}, 4n, 'The result of (2n * {valueOf: null, toString: function() {return 2n;}}) is 4n');\n\nassert.sameValue({\n  valueOf: 1,\n\n  toString: function() {\n    return 2n;\n  }\n} * 2n, 4n, 'The result of (({valueOf: 1, toString: function() {return 2n;}}) * 2n) is 4n');\n\nassert.sameValue(2n * {\n  valueOf: 1,\n\n  toString: function() {\n    return 2n;\n  }\n}, 4n, 'The result of (2n * {valueOf: 1, toString: function() {return 2n;}}) is 4n');\n\nassert.sameValue({\n  valueOf: {},\n\n  toString: function() {\n    return 2n;\n  }\n} * 2n, 4n, 'The result of (({valueOf: {}, toString: function() {return 2n;}}) * 2n) is 4n');\n\nassert.sameValue(2n * {\n  valueOf: {},\n\n  toString: function() {\n    return 2n;\n  }\n}, 4n, 'The result of (2n * {valueOf: {}, toString: function() {return 2n;}}) is 4n');\n\nassert.sameValue({\n  valueOf: function() {\n    return {};\n  },\n\n  toString: function() {\n    return 2n;\n  }\n} * 2n, 4n, 'The result of (({valueOf: function() {return {};}, toString: function() {return 2n;}}) * 2n) is 4n');\n\nassert.sameValue(2n * {\n  valueOf: function() {\n    return {};\n  },\n\n  toString: function() {\n    return 2n;\n  }\n}, 4n, 'The result of (2n * {valueOf: function() {return {};}, toString: function() {return 2n;}}) is 4n');\n\nassert.sameValue({\n  valueOf: function() {\n    return Object(12345);\n  },\n\n  toString: function() {\n    return 2n;\n  }\n} * 2n, 4n, 'The result of (({valueOf: function() {return Object(12345);}, toString: function() {return 2n;}}) * 2n) is 4n');\n\nassert.sameValue(2n * {\n  valueOf: function() {\n    return Object(12345);\n  },\n\n  toString: function() {\n    return 2n;\n  }\n}, 4n, 'The result of (2n * {valueOf: function() {return Object(12345);}, toString: function() {return 2n;}}) is 4n');\n\nassert.throws(TypeError, function() {\n  ({\n    [Symbol.toPrimitive]: 1\n  }) * 0n;\n}, '({[Symbol.toPrimitive]: 1}) * 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n * {\n    [Symbol.toPrimitive]: 1\n  };\n}, '0n * {[Symbol.toPrimitive]: 1} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    [Symbol.toPrimitive]: {}\n  }) * 0n;\n}, '({[Symbol.toPrimitive]: {}}) * 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n * {\n    [Symbol.toPrimitive]: {}\n  };\n}, '0n * {[Symbol.toPrimitive]: {}} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    [Symbol.toPrimitive]: function() {\n      return Object(1);\n    }\n  }) * 0n;\n}, '({[Symbol.toPrimitive]: function() {return Object(1);}}) * 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n * {\n    [Symbol.toPrimitive]: function() {\n      return Object(1);\n    }\n  };\n}, '0n * {[Symbol.toPrimitive]: function() {return Object(1);}} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    [Symbol.toPrimitive]: function() {\n      return {};\n    }\n  }) * 0n;\n}, '({[Symbol.toPrimitive]: function() {return {};}}) * 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n * {\n    [Symbol.toPrimitive]: function() {\n      return {};\n    }\n  };\n}, '0n * {[Symbol.toPrimitive]: function() {return {};}} throws TypeError');\n\nassert.throws(MyError, function() {\n  ({\n    [Symbol.toPrimitive]: function() {\n      throw new MyError();\n    }\n  }) * 0n;\n}, '({[Symbol.toPrimitive]: function() {throw new MyError();}}) * 0n throws MyError');\n\nassert.throws(MyError, function() {\n  0n * {\n    [Symbol.toPrimitive]: function() {\n      throw new MyError();\n    }\n  };\n}, '0n * {[Symbol.toPrimitive]: function() {throw new MyError();}} throws MyError');\n\nassert.throws(MyError, function() {\n  ({\n    valueOf: function() {\n      throw new MyError();\n    }\n  }) * 0n;\n}, '({valueOf: function() {throw new MyError();}}) * 0n throws MyError');\n\nassert.throws(MyError, function() {\n  0n * {\n    valueOf: function() {\n      throw new MyError();\n    }\n  };\n}, '0n * {valueOf: function() {throw new MyError();}} throws MyError');\n\nassert.throws(MyError, function() {\n  ({\n    toString: function() {\n      throw new MyError();\n    }\n  }) * 0n;\n}, '({toString: function() {throw new MyError();}}) * 0n throws MyError');\n\nassert.throws(MyError, function() {\n  0n * {\n    toString: function() {\n      throw new MyError();\n    }\n  };\n}, '0n * {toString: function() {throw new MyError();}} throws MyError');\n\nassert.throws(TypeError, function() {\n  ({\n    valueOf: null,\n    toString: null\n  }) * 0n;\n}, '({valueOf: null, toString: null}) * 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n * {\n    valueOf: null,\n    toString: null\n  };\n}, '0n * {valueOf: null, toString: null} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    valueOf: 1,\n    toString: 1\n  }) * 0n;\n}, '({valueOf: 1, toString: 1}) * 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n * {\n    valueOf: 1,\n    toString: 1\n  };\n}, '0n * {valueOf: 1, toString: 1} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    valueOf: {},\n    toString: {}\n  }) * 0n;\n}, '({valueOf: {}, toString: {}}) * 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n * {\n    valueOf: {},\n    toString: {}\n  };\n}, '0n * {valueOf: {}, toString: {}} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    valueOf: function() {\n      return Object(1);\n    },\n\n    toString: function() {\n      return Object(1);\n    }\n  }) * 0n;\n}, '({valueOf: function() {return Object(1);}, toString: function() {return Object(1);}}) * 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n * {\n    valueOf: function() {\n      return Object(1);\n    },\n\n    toString: function() {\n      return Object(1);\n    }\n  };\n}, '0n * {valueOf: function() {return Object(1);}, toString: function() {return Object(1);}} throws TypeError');\n\nassert.throws(TypeError, function() {\n  ({\n    valueOf: function() {\n      return {};\n    },\n\n    toString: function() {\n      return {};\n    }\n  }) * 0n;\n}, '({valueOf: function() {return {};}, toString: function() {return {};}}) * 0n throws TypeError');\n\nassert.throws(TypeError, function() {\n  0n * {\n    valueOf: function() {\n      return {};\n    },\n\n    toString: function() {\n      return {};\n    }\n  };\n}, '0n * {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError');\n"
  ],
  [
    "test262-language--expressions--multiplication--order-of-evaluation",
    "script",
    true,
    "standards",
    "// Copyright (C) 2018 Igalia, S.L. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-multiplicative-operators-runtime-semantics-evaluation\ndescription: Type coercion order of operations for multiplication operator\nfeatures: [Symbol]\ninfo: |\n  Evaluate lhs\n  Evaluate rhs\n  ToNumeric(lhs)\n  ToNumeric(rhs)\n---*/\n\nfunction MyError() {}\nvar trace;\n\n// ?GetValue(lhs) throws.\ntrace = \"\";\nassert.throws(MyError, function() {\n  (function() {\n    trace += \"1\";\n    throw new MyError();\n  })() * (function() {\n    trace += \"2\";\n    throw new Test262Error(\"should not be evaluated\");\n  })();\n}, \"?GetValue(lhs) throws.\");\nassert.sameValue(trace, \"1\", \"?GetValue(lhs) throws.\");\n\n// ?GetValue(rhs) throws.\ntrace = \"\";\nassert.throws(MyError, function() {\n  (function() {\n    trace += \"1\";\n    return {\n      valueOf: function() {\n        trace += \"3\";\n        throw new Test262Error(\"should not be evaluated\");\n      }\n    };\n  })() * (function() {\n    trace += \"2\";\n    throw new MyError();\n  })();\n}, \"?GetValue(rhs) throws.\");\nassert.sameValue(trace, \"12\", \"?GetValue(rhs) throws.\");\n\n// ?ToPrimive(lhs) throws.\ntrace = \"\";\nassert.throws(MyError, function() {\n  (function() {\n    trace += \"1\";\n    return {\n      valueOf: function() {\n        trace += \"3\";\n        throw new MyError();\n      }\n    };\n  })() * (function() {\n    trace += \"2\";\n    return {\n      valueOf: function() {\n        trace += \"4\";\n        throw new Test262Error(\"should not be evaluated\");\n      }\n    };\n  })();\n}, \"?ToPrimive(lhs) throws.\");\nassert.sameValue(trace, \"123\", \"?ToPrimive(lhs) throws.\");\n\n// ?ToPrimive(rhs) throws.\ntrace = \"\";\nassert.throws(MyError, function() {\n  (function() {\n    trace += \"1\";\n    return {\n      valueOf: function() {\n        trace += \"3\";\n        return 1;\n      }\n    };\n  })() * (function() {\n    trace += \"2\";\n    return {\n      valueOf: function() {\n        trace += \"4\";\n        throw new MyError();\n      }\n    };\n  })();\n}, \"?ToPrimive(rhs) throws.\");\nassert.sameValue(trace, \"1234\", \"?ToPrimive(rhs) throws.\");\n\n// ?ToNumeric(lhs) throws.\ntrace = \"\";\nassert.throws(TypeError, function() {\n  (function() {\n    trace += \"1\";\n    return {\n      valueOf: function() {\n        trace += \"3\";\n        return Symbol(\"1\");\n      }\n    };\n  })() * (function() {\n    trace += \"2\";\n    return {\n      valueOf: function() {\n        trace += \"4\";\n        throw new Test262Error(\"should not be evaluated\");\n      }\n    };\n  })();\n}, \"?ToNumeric(lhs) throws.\");\nassert.sameValue(trace, \"123\", \"?ToNumeric(lhs) throws.\");\n\n// GetValue(lhs) throws.\ntrace = \"\";\nassert.throws(TypeError, function() {\n  (function() {\n    trace += \"1\";\n    return {\n      valueOf: function() {\n        trace += \"3\";\n        return 1;\n      }\n    };\n  })() * (function() {\n    trace += \"2\";\n    return {\n      valueOf: function() {\n        trace += \"4\";\n        return Symbol(\"1\");\n      }\n    };\n  })();\n}, \"GetValue(lhs) throws.\");\nassert.sameValue(trace, \"1234\", \"GetValue(lhs) throws.\");\n"
  ],
  [
    "test262-language--expressions--new--spread-obj-symbol-property",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/spread/obj-symbol-property.case\n// - src/spread/default/member-expr.template\n/*---\ndescription: Spread operation where source object contains Symbol properties (`new` operator)\nesid: sec-new-operator-runtime-semantics-evaluation\nfeatures: [Symbol, object-spread]\nflags: [generated]\ninfo: |\n    MemberExpression : new MemberExpression Arguments\n\n    1. Return EvaluateNew(MemberExpression, Arguments).\n\n    12.3.3.1.1 Runtime Semantics: EvaluateNew\n\n    6. If arguments is empty, let argList be an empty List.\n    7. Else,\n       a. Let argList be ArgumentListEvaluation of arguments.\n       [...]\n\n    Pending Runtime Semantics: PropertyDefinitionEvaluation\n\n    PropertyDefinition:...AssignmentExpression\n\n    1. Let exprValue be the result of evaluating AssignmentExpression.\n    2. Let fromValue be GetValue(exprValue).\n    3. ReturnIfAbrupt(fromValue).\n    4. Let excludedNames be a new empty List.\n    5. Return CopyDataProperties(object, fromValue, excludedNames).\n\n---*/\nlet symbol = Symbol('foo');\nlet o = {};\no[symbol] = 1;\n\n\nvar callCount = 0;\n\nnew function(obj) {\n  assert.sameValue(obj[symbol], 1);\n  assert(Object.prototype.hasOwnProperty.call(obj, symbol), \"symbol is an own property\");\n  assert.sameValue(obj.c, 4);\n  assert.sameValue(obj.d, 5);\n  assert.sameValue(Object.keys(obj).length, 2);\n  callCount += 1;\n}({...o, c: 4, d: 5});\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--new.target--escaped-new",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-grammar-notation\ndescription: >\n  The `new` keyword must not contain Unicode escape sequences.\ninfo: |\n  Terminal symbols are shown\n  in fixed width font, both in the productions of the grammars and throughout this\n  specification whenever the text directly refers to such a terminal symbol. These\n  are to appear in a script exactly as written. All terminal symbol code points\n  specified in this way are to be understood as the appropriate Unicode code points\n  from the Basic Latin range, as opposed to any similar-looking code points from\n  other Unicode ranges.\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nfunction f() {\n    n\\u0065w.target;\n}\n"
  ],
  [
    "test262-language--expressions--object--dstr--async-gen-meth-ary-init-iter-get-err-array-prototype",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-init-iter-get-err-array-prototype.case\n// - src/dstr-binding/error/async-gen-meth.template\n/*---\ndescription: Abrupt completion returned by GetIterator (async generator method)\nesid: sec-asyncgenerator-definitions-propertydefinitionevaluation\nfeatures: [Symbol.iterator, async-iteration]\nflags: [generated]\ninfo: |\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n    Runtime Semantics: BindingInitialization\n\n    BindingPattern : ArrayBindingPattern\n\n    1. Let iteratorRecord be ? GetIterator(value).\n\n    GetIterator ( obj [ , hint [ , method ] ] )\n\n    [...]\n    4. Let iterator be ? Call(method, obj).\n\n    Call ( F, V [ , argumentsList ] )\n\n    [...]\n    2. If IsCallable(F) is false, throw a TypeError exception.\n\n---*/\ndelete Array.prototype[Symbol.iterator];\n\n\nvar obj = {\n  async *method([x, y, z]) {\n    \n  }\n};\n\nassert.throws(TypeError, function() {\n  obj.method([1, 2, 3]);\n});\n"
  ],
  [
    "test262-language--expressions--object--dstr--async-gen-meth-dflt-ary-ptrn-elem-id-iter-val-array-prototype",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-elem-id-iter-val-array-prototype.case\n// - src/dstr-binding/default/async-gen-method-dflt.template\n/*---\ndescription: Array destructuring uses overriden Array.prototype[Symbol.iterator] (async generator method (default parameter))\nesid: sec-asyncgenerator-definitions-propertydefinitionevaluation\nfeatures: [Symbol.iterator, generators, async-iteration]\nflags: [generated, async]\ninfo: |\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n\n    Runtime Semantics: IteratorBindingInitialization\n\n    SingleNameBinding : BindingIdentifier Initializer_opt\n\n    1. Let bindingId be StringValue of BindingIdentifier.\n    2. Let lhs be ? ResolveBinding(bindingId, environment).\n    3. If iteratorRecord.[[Done]] is false, then\n        a. Let next be IteratorStep(iteratorRecord).\n        b. If next is an abrupt completion, set iteratorRecord.[[Done]] to true.\n        c. ReturnIfAbrupt(next).\n        d. If next is false, set iteratorRecord.[[Done]] to true.\n        e. Else,\n            i. Let v be IteratorValue(next).\n            ii. If v is an abrupt completion, set iteratorRecord.[[Done]] to true.\n            iii. ReturnIfAbrupt(v).\n    [...]\n    7. Return InitializeReferencedBinding(lhs, v).\n\n---*/\nArray.prototype[Symbol.iterator] = function* () {\n    if (this.length > 0) {\n        yield this[0];\n    }\n    if (this.length > 1) {\n        yield this[1];\n    }\n    if (this.length > 2) {\n        yield 42;\n    }\n};\n\n\nvar callCount = 0;\nvar obj = {\n  async *method([x, y, z] = [1, 2, 3]) {\n    assert.sameValue(x, 1);\n    assert.sameValue(y, 2);\n    assert.sameValue(z, 42);\n    callCount = callCount + 1;\n  }\n};\n\nobj.method().next().then(() => {\n    assert.sameValue(callCount, 1, 'invoked exactly once');\n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--object--dstr--gen-meth-dflt-ary-ptrn-rest-not-final-id",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-id.case\n// - src/dstr-binding/default/gen-method-dflt.template\n/*---\ndescription: Rest element (identifier) may not be followed by any element (generator method (default parameter))\nesid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation\nfeatures: [generators, destructuring-binding, default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    GeneratorMethod :\n        * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nvar obj = {\n  *method([...x, y] = [1, 2, 3]) {\n    \n    callCount = callCount + 1;\n  }\n};\n\nobj.method().next();\nassert.sameValue(callCount, 1, 'generator method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--object--dstr--gen-meth-dflt-obj-ptrn-rest-skip-non-enumerable",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case\n// - src/dstr-binding/default/gen-method-dflt.template\n/*---\ndescription: Rest object doesn't contain non-enumerable properties (generator method (default parameter))\nesid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation\nfeatures: [object-rest, generators, destructuring-binding, default-parameters]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    GeneratorMethod :\n        * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n---*/\nvar o = {a: 3, b: 4};\nObject.defineProperty(o, \"x\", { value: 4, enumerable: false });\n\nvar callCount = 0;\nvar obj = {\n  *method({...rest} = o) {\n    assert.sameValue(rest.x, undefined);\n\n    verifyProperty(rest, \"a\", {\n      enumerable: true,\n      writable: true,\n      configurable: true,\n      value: 3\n    });\n\n    verifyProperty(rest, \"b\", {\n      enumerable: true,\n      writable: true,\n      configurable: true,\n      value: 4\n    });\n    callCount = callCount + 1;\n  }\n};\n\nobj.method().next();\nassert.sameValue(callCount, 1, 'generator method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--object--dstr--gen-meth-obj-ptrn-rest-val-obj",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-rest-val-obj.case\n// - src/dstr-binding/default/gen-meth.template\n/*---\ndescription: Rest object contains just unextracted data (generator method)\nesid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation\nfeatures: [object-rest, generators, destructuring-binding]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    GeneratorMethod :\n        * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n---*/\n\nvar callCount = 0;\nvar obj = {\n  *method({a, b, ...rest}) {\n    assert.sameValue(rest.a, undefined);\n    assert.sameValue(rest.b, undefined);\n\n    verifyProperty(rest, \"x\", {\n      enumerable: true,\n      writable: true,\n      configurable: true,\n      value: 1\n    });\n\n    verifyProperty(rest, \"y\", {\n      enumerable: true,\n      writable: true,\n      configurable: true,\n      value: 2\n    });\n    callCount = callCount + 1;\n  }\n};\n\nobj.method({x: 1, y: 2, a: 5, b: 3}).next();\nassert.sameValue(callCount, 1, 'generator method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--object--fn-name-gen",
    "script",
    true,
    "standards",
    "// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nes6id: 12.2.6.9\ndescription: >\n    Assignment of function `name` attribute (GeneratorExpression)\ninfo: |\n    6. If IsAnonymousFunctionDefinition(AssignmentExpression) is true, then\n       a. Let hasNameProperty be HasOwnProperty(propValue, \"name\").\n       b. ReturnIfAbrupt(hasNameProperty).\n       c. If hasNameProperty is false, perform SetFunctionName(propValue,\n          propKey).\nincludes: [propertyHelper.js]\nfeatures: [generators, Symbol]\n---*/\n\nvar namedSym = Symbol('test262');\nvar anonSym = Symbol();\nvar o;\n\no = {\n  xId: function* x() {},\n  id: function*() {},\n  [anonSym]: function*() {},\n  [namedSym]: function*() {}\n};\n\nassert(o.xId.name !== 'xId');\n\nverifyProperty(o.id, 'name', {\n  value: 'id',\n  writable: false,\n  enumerable: false,\n  configurable: true,\n});\n\nverifyProperty(o[anonSym], 'name', {\n  value: '',\n  writable: false,\n  enumerable: false,\n  configurable: true,\n});\n\nverifyProperty(o[namedSym], 'name', {\n  value: '[test262]',\n  writable: false,\n  enumerable: false,\n  configurable: true,\n});\n"
  ],
  [
    "test262-language--expressions--object--getter-body-strict-inside",
    "script",
    false,
    "standards",
    "// Copyright (c) 2012 Ecma International.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes5id: 11.1.5_6-2-2-s\ndescription: >\n    Strict Mode - SyntaxError is thrown when an assignment to a\n    reserved word or a future reserved word is made inside a strict\n    mode FunctionBody of a PropertyAssignment\nnegative:\n  phase: parse\n  type: SyntaxError\nflags: [noStrict]\n---*/\n\n$DONOTEVALUATE();\n\nvoid {\n  get x() {\n    \"use strict\";\n    public = 42;\n  }\n};\n"
  ],
  [
    "test262-language--expressions--object--method-definition--async-await-as-identifier-reference",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/async-functions/await-as-identifier-reference.case\n// - src/async-functions/syntax/async-obj-method.template\n/*---\ndescription: await is a reserved keyword within generator function bodies and may not be used as an identifier reference. (Async method)\nesid: prod-AsyncMethod\nfeatures: [async-functions]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Async Function Definitions\n\n    AsyncMethod :\n      async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n\n    IdentifierReference : Identifier\n\n    It is a Syntax Error if this production has a [Await] parameter and\n    StringValue of Identifier is \"await\".\n\n---*/\n$DONOTEVALUATE();\n\n\nvar obj = {\n  async method() {\n    void await;\n  }\n};\n"
  ],
  [
    "test262-language--expressions--object--method-definition--async-gen-await-as-identifier-reference-escaped",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/async-generators/await-as-identifier-reference-escaped.case\n// - src/async-generators/syntax/async-obj-method.template\n/*---\ndescription: await is a reserved keyword within generator function bodies and may not be used as an identifier reference. (Async generator method)\nesid: prod-AsyncGeneratorMethod\nfeatures: [async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    IdentifierReference : Identifier\n\n    It is a Syntax Error if this production has a [Await] parameter and\n    StringValue of Identifier is \"await\".\n\n---*/\n$DONOTEVALUATE();\n\nvar obj = {\n  async *method() {\n    void \\u0061wait;\n  }\n};\n"
  ],
  [
    "test262-language--expressions--object--method-definition--async-gen-yield-identifier-spread-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-identifier-spread-strict.case\n// - src/async-generators/default/async-obj-method.template\n/*---\ndescription: It's an early error if the AssignmentExpression is a function body with yield as an identifier in strict mode. (Async generator method)\nesid: prod-AsyncGeneratorMethod\nfeatures: [object-spread, async-iteration]\nflags: [generated, onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\n\nvar gen = {\n  async *method() {\n    callCount += 1;\n    return {\n         ...(function() {\n            var yield;\n            throw new Test262Error();\n         }()),\n      }\n  }\n}.method;\n\nvar iter = gen();\n\n\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--object--method-definition--async-gen-yield-star-getiter-sync-returns-number-throw",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-star-getiter-sync-returns-number-throw.case\n// - src/async-generators/default/async-obj-method.template\n/*---\ndescription: Non object returned by [Symbol.iterator]() - number (Async generator method)\nesid: prod-AsyncGeneratorMethod\nfeatures: [Symbol.iterator, async-iteration]\nflags: [generated, async]\ninfo: |\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    YieldExpression: yield * AssignmentExpression\n\n    1. Let exprRef be the result of evaluating AssignmentExpression.\n    2. Let value be ? GetValue(exprRef).\n    3. Let generatorKind be ! GetGeneratorKind().\n    4. Let iterator be ? GetIterator(value, generatorKind).\n    ...\n\n    GetIterator ( obj [ , hint ] )\n\n    ...\n    3. If hint is async,\n      a. Set method to ? GetMethod(obj, @@asyncIterator).\n        i. Let syncMethod be ? GetMethod(obj, @@iterator).\n        ii. Let syncIterator be ? Call(syncMethod, obj).\n        iii. Return ? CreateAsyncFromSyncIterator(syncIterator).\n    ...\n\n    CreateAsyncFromSyncIterator(syncIterator)\n\n    1. If Type(syncIterator) is not Object, throw a TypeError exception.\n    ...\n\n---*/\nvar obj = {\n  [Symbol.iterator]() {\n    return 0;\n  }\n};\n\n\nvar callCount = 0;\n\nvar gen = {\n  async *method() {\n    callCount += 1;\n    yield* obj;\n      throw new Test262Error('abrupt completion closes iter');\n\n  }\n}.method;\n\nvar iter = gen();\n\niter.next().then(() => {\n  throw new Test262Error('Promise incorrectly fulfilled.');\n}, v => {\n  assert.sameValue(v.constructor, TypeError, \"TypeError\");\n\n  iter.next().then(({ done, value }) => {\n    assert.sameValue(done, true, 'the iterator is completed');\n    assert.sameValue(value, undefined, 'value is undefined');\n  }).then($DONE, $DONE);\n}).catch($DONE);\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--object--method-definition--async-gen-yield-star-sync-return",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-star-sync-return.case\n// - src/async-generators/default/async-obj-method.template\n/*---\ndescription: execution order for yield* with sync iterator and return() (Async generator method)\nesid: prod-AsyncGeneratorMethod\nfeatures: [Symbol.iterator, async-iteration, Symbol.asyncIterator]\nflags: [generated, async]\ninfo: |\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    YieldExpression: yield * AssignmentExpression\n\n    ...\n    6. Repeat\n      ...\n      c. Else,\n        i. Assert: received.[[Type]] is return.\n        ii. Let return be ? GetMethod(iterator, \"return\").\n        iii. If return is undefined, return Completion(received).\n        iv. Let innerReturnResult be ? Call(return, iterator,\n            « received.[[Value]] »).\n        v. If generatorKind is async, then set innerReturnResult to\n           ? Await(innerReturnResult).\n        ...\n        vii. Let done be ? IteratorComplete(innerReturnResult).\n        viii. If done is true, then\n             1. Let value be ? IteratorValue(innerReturnResult).\n             2. Return Completion{[[Type]]: return, [[Value]]: value,\n                [[Target]]: empty}.\n        ix. Let received be GeneratorYield(innerResult).\n\n    %AsyncFromSyncIteratorPrototype%.return ( value )\n\n    5. Let return be GetMethod(syncIterator, \"return\").\n    ...\n    ...\n    8. Let returnResult be Call(return, syncIterator, « value »).\n    ...\n    11. Let returnValue be IteratorValue(returnResult).\n    ..\n    13. Let returnDone be IteratorComplete(returnResult).\n    ...\n    16. Perform ! Call(valueWrapperCapability.[[Resolve]], undefined, « returnValue »).\n    ...\n    18. Set onFulfilled.[[Done]] to returnDone.\n    19. Perform ! PerformPromiseThen(valueWrapperCapability.[[Promise]],\n        onFulfilled, undefined, promiseCapability).\n    ...\n\n---*/\nvar log = [];\nvar obj = {\n  [Symbol.iterator]() {\n    var returnCount = 0;\n    return {\n      name: \"syncIterator\",\n      get next() {\n        log.push({ name: \"get next\" });\n        return function() {\n          return {\n            value: \"next-value-1\",\n            done: false\n          };\n        };\n      },\n      get return() {\n        log.push({\n          name: \"get return\",\n          thisValue: this\n        });\n        return function() {\n          log.push({\n            name: \"call return\",\n            thisValue: this,\n            args: [...arguments]\n          });\n\n          returnCount++;\n          if (returnCount == 1) {\n            return {\n              name: \"return-result-1\",\n              get value() {\n                log.push({\n                  name: \"get return value (1)\",\n                  thisValue: this\n                });\n                return \"return-value-1\";\n              },\n              get done() {\n                log.push({\n                  name: \"get return done (1)\",\n                  thisValue: this\n                });\n                return false;\n              }\n            };\n          }\n\n          return {\n            name: \"return-result-2\",\n            get value() {\n              log.push({\n                name: \"get return value (2)\",\n                thisValue: this\n              });\n              return \"return-value-2\";\n            },\n            get done() {\n              log.push({\n                name: \"get return done (2)\",\n                thisValue: this\n              });\n              return true;\n            }\n          };\n        };\n      }\n    };\n  }\n};\n\n\nvar callCount = 0;\n\nvar gen = {\n  async *method() {\n    callCount += 1;\n    log.push({ name: \"before yield*\" });\n      yield* obj;\n\n  }\n}.method;\n\nvar iter = gen();\n\nassert.sameValue(log.length, 0, \"log.length\");\n\niter.next().then(v => {\n  assert.sameValue(log[0].name, \"before yield*\");\n\n  assert.sameValue(log[1].name, \"get next\");\n\n  assert.sameValue(v.value, \"next-value-1\");\n  assert.sameValue(v.done, false);\n\n  assert.sameValue(log.length, 2, \"log.length\");\n\n  iter.return(\"return-arg-1\").then(v => {\n    assert.sameValue(log[2].name, \"get return\");\n    assert.sameValue(log[2].thisValue.name, \"syncIterator\", \"get return thisValue\");\n\n    assert.sameValue(log[3].name, \"call return\");\n    assert.sameValue(log[3].thisValue.name, \"syncIterator\", \"return thisValue\");\n    assert.sameValue(log[3].args.length, 1, \"return args.length\");\n    assert.sameValue(log[3].args[0], \"return-arg-1\", \"return args[0]\");\n\n    assert.sameValue(log[4].name, \"get return done (1)\");\n    assert.sameValue(log[4].thisValue.name, \"return-result-1\", \"get return done thisValue\");\n\n    assert.sameValue(log[5].name, \"get return value (1)\");\n    assert.sameValue(log[5].thisValue.name, \"return-result-1\", \"get return value thisValue\");\n\n    assert.sameValue(v.value, \"return-value-1\");\n    assert.sameValue(v.done, false);\n\n    assert.sameValue(log.length, 6, \"log.length\");\n\n    iter.return().then(v => {\n      assert.sameValue(log[6].name, \"get return\");\n      assert.sameValue(log[6].thisValue.name, \"syncIterator\", \"get return thisValue\");\n\n      assert.sameValue(log[7].name, \"call return\");\n      assert.sameValue(log[7].thisValue.name, \"syncIterator\", \"get return thisValue\");\n      assert.sameValue(log[7].args.length, 1, \"return args.length\");\n      assert.sameValue(log[7].args[0], undefined, \"return args[0]\");\n\n      assert.sameValue(log[8].name, \"get return done (2)\");\n      assert.sameValue(log[8].thisValue.name, \"return-result-2\", \"get return done thisValue\");\n\n      assert.sameValue(log[9].name, \"get return value (2)\");\n      assert.sameValue(log[9].thisValue.name, \"return-result-2\", \"get return value thisValue\");\n\n      assert.sameValue(v.value, \"return-value-2\");\n      assert.sameValue(v.done, true);\n\n      assert.sameValue(log.length, 10, \"log.length\");\n    }).then($DONE, $DONE);\n  }).catch($DONE);\n}).catch($DONE);\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--object--method-definition--forbidden-ext--b1--async-gen-meth-forbidden-ext-direct-access-prop-caller",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-direct-access-prop-caller.case\n// - src/function-forms/forbidden-extensions/bullet-one/async-gen-meth.template\n/*---\ndescription: Forbidden extension, o.caller (async generator method)\nesid: sec-asyncgenerator-definitions-propertydefinitionevaluation\nfeatures: [arrow-function, async-iteration, generators]\nflags: [generated, noStrict, async]\ninfo: |\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n\n    ECMAScript function objects defined using syntactic constructors in strict mode code must\n    not be created with own properties named \"caller\" or \"arguments\". Such own properties also\n    must not be created for function objects defined using an ArrowFunction, MethodDefinition,\n    GeneratorDeclaration, GeneratorExpression, AsyncGeneratorDeclaration, AsyncGeneratorExpression,\n    ClassDeclaration, ClassExpression, AsyncFunctionDeclaration, AsyncFunctionExpression, or\n    AsyncArrowFunction regardless of whether the definition is contained in strict mode code.\n    Built-in functions, strict functions created using the Function constructor, generator functions\n    created using the Generator constructor, async functions created using the AsyncFunction\n    constructor, and functions created using the bind method also must not be created with such own\n    properties.\n\n---*/\n\nvar callCount = 0;\nvar obj = {\n  async *method() {\n    assert.sameValue(this.method.hasOwnProperty(\"caller\"), false);\n    callCount++;\n  }\n};\n\nobj.method().next()\n  .then(() => {\n    assert.sameValue(callCount, 1, 'function body evaluated');\n  }, $DONE).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--object--method-definition--forbidden-ext--b1--meth-forbidden-ext-direct-access-prop-caller",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-direct-access-prop-caller.case\n// - src/function-forms/forbidden-extensions/bullet-one/meth.template\n/*---\ndescription: Forbidden extension, o.caller (method)\nesid: sec-runtime-semantics-definemethod\nflags: [generated, noStrict]\ninfo: |\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    ECMAScript function objects defined using syntactic constructors in strict mode code must\n    not be created with own properties named \"caller\" or \"arguments\". Such own properties also\n    must not be created for function objects defined using an ArrowFunction, MethodDefinition,\n    GeneratorDeclaration, GeneratorExpression, AsyncGeneratorDeclaration, AsyncGeneratorExpression,\n    ClassDeclaration, ClassExpression, AsyncFunctionDeclaration, AsyncFunctionExpression, or\n    AsyncArrowFunction regardless of whether the definition is contained in strict mode code.\n    Built-in functions, strict functions created using the Function constructor, generator functions\n    created using the Generator constructor, async functions created using the AsyncFunction\n    constructor, and functions created using the bind method also must not be created with such own\n    properties.\n\n---*/\n\nvar callCount = 0;\nvar obj = {\n  method() {\n    assert.sameValue(this.method.hasOwnProperty(\"caller\"), false);\n    callCount++;\n  }\n};\n\nobj.method();\nassert.sameValue(callCount, 1, 'method body evaluated');\n"
  ],
  [
    "test262-language--expressions--object--method-definition--forbidden-ext--b2--async-gen-meth-forbidden-ext-indirect-access-own-prop-caller-value",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-indirect-access-own-prop-caller-value.case\n// - src/function-forms/forbidden-extensions/bullet-two/async-gen-meth.template\n/*---\ndescription: Forbidden extension, o.caller (async generator method)\nesid: sec-asyncgenerator-definitions-propertydefinitionevaluation\nfeatures: [arrow-function, async-iteration, generators]\nflags: [generated, noStrict, async]\ninfo: |\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n\n    If an implementation extends any function object with an own property named \"caller\" the value of\n    that property, as observed using [[Get]] or [[GetOwnProperty]], must not be a strict function\n    object. If it is an accessor property, the function that is the value of the property's [[Get]]\n    attribute must never return a strict function when called.\n\n---*/\nvar CALLER_OWN_PROPERTY_DOES_NOT_EXIST = Symbol();\nfunction inner() {\n  // This property may exist, but is forbidden from having a value that is a strict function object\n  return inner.hasOwnProperty(\"caller\")\n    ? inner.caller\n    : CALLER_OWN_PROPERTY_DOES_NOT_EXIST;\n}\n\nvar callCount = 0;\nvar obj = {\n  async *method() {\n    \"use strict\";\n    // This and the following conditional value is set in the test's .case file.\n    // For every test that has a \"true\" value here, there is a\n    // corresponding test that has a \"false\" value here.\n    // They are generated from two different case files, which use\n    let descriptor = Object.getOwnPropertyDescriptor(inner, \"caller\");\n    if (descriptor && descriptor.configurable && true) {\n      Object.defineProperty(inner, \"caller\", {value: 1});\n    }\n    var result = inner();\n    if (descriptor && descriptor.configurable && true) {\n      assert.sameValue(result, 1, 'If this test defined an own \"caller\" property on the inner function, then it should be accessible and should return the value it was set to.');\n    }\n\n    // \"CALLER_OWN_PROPERTY_DOES_NOT_EXIST\" is from\n    // forbidden-ext-indirect-access-prop-caller.case\n    //\n    // If the function object \"inner\" has an own property\n    // named \"caller\", then its value will be returned.\n    //\n    // If the function object \"inner\" DOES NOT have an\n    // own property named \"caller\", then the symbol\n    // CALLER_OWN_PROPERTY_DOES_NOT_EXIST will be returned.\n    if (result !== CALLER_OWN_PROPERTY_DOES_NOT_EXIST) {\n      assert.notSameValue(result, this.method);\n    }\n    callCount++;\n  }\n};\n\nobj.method().next()\n  .then(() => {\n    assert.sameValue(callCount, 1, 'function body evaluated');\n  }, $DONE).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--object--method-definition--forbidden-ext--b2--async-meth-forbidden-ext-indirect-access-own-prop-caller-value",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-indirect-access-own-prop-caller-value.case\n// - src/function-forms/forbidden-extensions/bullet-two/async-meth.template\n/*---\ndescription: Forbidden extension, o.caller (async method)\nesid: sec-async-definitions\nfeatures: [arrow-function, async-functions]\nflags: [generated, noStrict, async]\ninfo: |\n    AsyncMethod :\n     async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n\n    If an implementation extends any function object with an own property named \"caller\" the value of\n    that property, as observed using [[Get]] or [[GetOwnProperty]], must not be a strict function\n    object. If it is an accessor property, the function that is the value of the property's [[Get]]\n    attribute must never return a strict function when called.\n\n---*/\nvar CALLER_OWN_PROPERTY_DOES_NOT_EXIST = Symbol();\nfunction inner() {\n  // This property may exist, but is forbidden from having a value that is a strict function object\n  return inner.hasOwnProperty(\"caller\")\n    ? inner.caller\n    : CALLER_OWN_PROPERTY_DOES_NOT_EXIST;\n}\n\n\nvar callCount = 0;\n\nvar obj = {\n  async method() {\n    \"use strict\";\n    // This and the following conditional value is set in the test's .case file.\n    // For every test that has a \"true\" value here, there is a\n    // corresponding test that has a \"false\" value here.\n    // They are generated from two different case files, which use\n    let descriptor = Object.getOwnPropertyDescriptor(inner, \"caller\");\n    if (descriptor && descriptor.configurable && true) {\n      Object.defineProperty(inner, \"caller\", {value: 1});\n    }\n    var result = inner();\n    if (descriptor && descriptor.configurable && true) {\n      assert.sameValue(result, 1, 'If this test defined an own \"caller\" property on the inner function, then it should be accessible and should return the value it was set to.');\n    }\n\n    // \"CALLER_OWN_PROPERTY_DOES_NOT_EXIST\" is from\n    // forbidden-ext-indirect-access-prop-caller.case\n    //\n    // If the function object \"inner\" has an own property\n    // named \"caller\", then its value will be returned.\n    //\n    // If the function object \"inner\" DOES NOT have an\n    // own property named \"caller\", then the symbol\n    // CALLER_OWN_PROPERTY_DOES_NOT_EXIST will be returned.\n    if (result !== CALLER_OWN_PROPERTY_DOES_NOT_EXIST) {\n      assert.notSameValue(result, this.method);\n    }\n    callCount++;\n  }\n};\n\nobj.method()\n  .then(() => {\n    assert.sameValue(callCount, 1, 'function body evaluated');\n  }, $DONE).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--expressions--object--method-definition--forbidden-ext--b2--gen-meth-forbidden-ext-indirect-access-own-prop-caller-value",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-indirect-access-own-prop-caller-value.case\n// - src/function-forms/forbidden-extensions/bullet-two/gen-meth.template\n/*---\ndescription: Forbidden extension, o.caller (generator method)\nesid: sec-generator-definitions-runtime-semantics-propertydefinitionevaluation\nfeatures: [generators]\nflags: [generated, noStrict]\ninfo: |\n    GeneratorMethod :\n        * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n\n    If an implementation extends any function object with an own property named \"caller\" the value of\n    that property, as observed using [[Get]] or [[GetOwnProperty]], must not be a strict function\n    object. If it is an accessor property, the function that is the value of the property's [[Get]]\n    attribute must never return a strict function when called.\n\n---*/\nvar CALLER_OWN_PROPERTY_DOES_NOT_EXIST = Symbol();\nfunction inner() {\n  // This property may exist, but is forbidden from having a value that is a strict function object\n  return inner.hasOwnProperty(\"caller\")\n    ? inner.caller\n    : CALLER_OWN_PROPERTY_DOES_NOT_EXIST;\n}\n\nvar callCount = 0;\nvar obj = {\n  *method() {\n    \"use strict\";\n    // This and the following conditional value is set in the test's .case file.\n    // For every test that has a \"true\" value here, there is a\n    // corresponding test that has a \"false\" value here.\n    // They are generated from two different case files, which use\n    let descriptor = Object.getOwnPropertyDescriptor(inner, \"caller\");\n    if (descriptor && descriptor.configurable && true) {\n      Object.defineProperty(inner, \"caller\", {value: 1});\n    }\n    var result = inner();\n    if (descriptor && descriptor.configurable && true) {\n      assert.sameValue(result, 1, 'If this test defined an own \"caller\" property on the inner function, then it should be accessible and should return the value it was set to.');\n    }\n\n    // \"CALLER_OWN_PROPERTY_DOES_NOT_EXIST\" is from\n    // forbidden-ext-indirect-access-prop-caller.case\n    //\n    // If the function object \"inner\" has an own property\n    // named \"caller\", then its value will be returned.\n    //\n    // If the function object \"inner\" DOES NOT have an\n    // own property named \"caller\", then the symbol\n    // CALLER_OWN_PROPERTY_DOES_NOT_EXIST will be returned.\n    if (result !== CALLER_OWN_PROPERTY_DOES_NOT_EXIST) {\n      assert.notSameValue(result, this.method);\n    }\n    callCount++;\n  }\n};\n\nobj.method().next().value;\nassert.sameValue(callCount, 1, 'generator method body was evaluated');\n"
  ],
  [
    "test262-language--expressions--object--method-definition--gen-yield-identifier-spread-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/generators/yield-identifier-spread-strict.case\n// - src/generators/default/obj-method.template\n/*---\ndescription: It's an early error if the AssignmentExpression is a function body with yield as an identifier in strict mode. (Generator method)\nesid: prod-GeneratorMethod\nfeatures: [object-spread, generators]\nflags: [generated, onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    14.4 Generator Function Definitions\n\n    GeneratorMethod[Yield, Await]:\n      * PropertyName[?Yield, ?Await] ( UniqueFormalParameters[+Yield, ~Await] ) { GeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\n\nvar gen = {\n  *method() {\n    callCount += 1;\n    return {\n         ...(function() {\n            var yield;\n            throw new Test262Error();\n         }()),\n      }\n  }\n}.method;\n\nvar iter = gen();\n\n\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--object--method-definition--gen-yield-spread-obj",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/generators/yield-spread-obj.case\n// - src/generators/default/obj-method.template\n/*---\ndescription: Use yield value in a object spread position (Generator method)\nesid: prod-GeneratorMethod\nfeatures: [object-spread, generators]\nflags: [generated]\ninfo: |\n    14.4 Generator Function Definitions\n\n    GeneratorMethod[Yield, Await]:\n      * PropertyName[?Yield, ?Await] ( UniqueFormalParameters[+Yield, ~Await] ) { GeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n\nvar callCount = 0;\n\nvar gen = {\n  *method() {\n    callCount += 1;\n    yield {\n        ...yield,\n        y: 1,\n        ...yield yield,\n      };\n  }\n}.method;\n\nvar iter = gen();\n\niter.next();\niter.next({ x: 42 });\niter.next({ x: 'lol' });\nvar item = iter.next({ y: 39 });\n\nassert.sameValue(item.value.x, 42);\nassert.sameValue(item.value.y, 39);\nassert.sameValue(Object.keys(item.value).length, 2);\nassert.sameValue(item.done, false);\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--expressions--object--method-definition--generator-super-call-param",
    "script",
    false,
    "standards",
    "// Copyright 2015 Cubane Canada, Inc.  All rights reserved.\n// See LICENSE for details.\n\n/*---\ninfo: |\n GeneratorMethod early SyntaxError when super is called\n directly inside generator args\nfeatures: [generators]\nes6id: 14.4.1\nauthor: Sam Mikes\ndescription: GeneratorMethod error if HasDirectSuper in args\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nvar obj = {\n    *foo(a = super()) {\n    }\n};\n"
  ],
  [
    "test262-language--expressions--object--method-definition--meth-dflt-params-rest",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-rest.case\n// - src/function-forms/syntax/meth.template\n/*---\ndescription: RestParameter does not support an initializer (method)\nesid: sec-runtime-semantics-definemethod\nfeatures: [default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters,\n       FunctionBody, scope, strict). If functionPrototype was passed as a\n       parameter then pass its value as the functionPrototype optional argument\n       of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    14.1 Function Definitions\n\n    Syntax\n\n    FunctionRestParameter[Yield] :\n\n      BindingRestElement[?Yield]\n\n    13.3.3 Destructuring Binding Patterns\n\n    Syntax\n\n    BindingRestElement[Yield] :\n\n      ...BindingIdentifier[?Yield]\n      ...BindingPattern[?Yield]\n\n---*/\n$DONOTEVALUATE();\n\n0, {\n  method(...x = []) {\n    \n  }\n};\n"
  ],
  [
    "test262-language--expressions--object--method-definition--meth-rest-params-trailing-comma-early-error",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/rest-params-trailing-comma-early-error.case\n// - src/function-forms/syntax/meth.template\n/*---\ndescription: It's a syntax error if a FunctionRestParameter is followed by a trailing comma (method)\nesid: sec-runtime-semantics-definemethod\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters,\n       FunctionBody, scope, strict). If functionPrototype was passed as a\n       parameter then pass its value as the functionPrototype optional argument\n       of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    Trailing comma in the parameters list\n\n    14.1 Function Definitions\n\n    FormalParameters[Yield, Await] :\n        [empty]\n        FunctionRestParameter[?Yield, ?Await]\n        FormalParameterList[?Yield, ?Await]\n        FormalParameterList[?Yield, ?Await] ,\n        FormalParameterList[?Yield, ?Await] , FunctionRestParameter[?Yield, ?Await]\n---*/\n$DONOTEVALUATE();\n\n0, {\n  method(...a,) {\n    \n  }\n};\n"
  ],
  [
    "test262-language--expressions--object--method-definition--params-dflt-meth-args-unmapped",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Referencing the arguments object from a default parameter (method)\nesid: sec-runtime-semantics-definemethod\nes6id: 14.3.8\nfeatures: [default-parameters]\ninfo: |\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters,\n       FunctionBody, scope, strict). If functionPrototype was passed as a\n       parameter then pass its value as the functionPrototype optional argument\n       of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    14.1.19 Runtime Semantics: IteratorBindingInitialization\n\n    FormalsList : FormalsList , FormalParameter\n\n    1. Let status be the result of performing IteratorBindingInitialization for\n       FormalsList using iteratorRecord and environment as the arguments.\n    2. ReturnIfAbrupt(status).\n    3. Return the result of performing IteratorBindingInitialization for\n       FormalParameter using iteratorRecord and environment as the arguments. \n---*/\n\nvar callCount = 0;\nvar obj = {\n  method(x, _ = 0) {\n    assert.sameValue(x, undefined, 'parameter binding value (initial)');\n    assert.sameValue(\n      arguments[0], undefined, 'arguments property value (initial)'\n    );\n\n    arguments[0] = 1;\n\n    assert.sameValue(\n      x, undefined, 'parameter binding value (after arguments modification)'\n    );\n    assert.sameValue(\n      arguments[0], 1, 'arguments property value (after arguments modification)'\n    );\n\n    x = 2;\n\n    assert.sameValue(\n      x, 2, 'parameter binding value (after parameter binding modification)'\n    );\n    assert.sameValue(\n      arguments[0],\n      1,\n      'arguments property value (after parameter binding modification)'\n    );\n    callCount = callCount + 1;\n  }\n};\n\nobj.method();\n\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--expressions--object--method-definition--private-name-early-error-async-fn",
    "script",
    false,
    "standards",
    "// Copyright (C) 2018 Leo Balter. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-method-definitions-static-semantics-early-errors\ndescription: >\n  Throws an early SyntaxError if a method definition has a private name\n  (async method).\ninfo: |\n  Static Semantics: Early Errors\n\n  PropertyDefinition : MethodDefinition\n    It is a Syntax Error if PrivateBoundNames of MethodDefinition is non-empty.\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [class-methods-private, async-functions]\n---*/\n\n$DONOTEVALUATE();\n\nvar o = {\n  async #m() {}\n};\n"
  ],
  [
    "test262-language--expressions--object--method-definition--yield-as-function-expression-binding-identifier",
    "script",
    true,
    "standards",
    "// Copyright (C) 2013 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: >\n    `yield` may be used as the binding identifier of a function expression\n    within generator bodies.\nfeatures: [generators]\nes6id: 14.1\nflags: [noStrict]\n---*/\n\nvar result;\nvar obj = {\n  *g() {\n    (function yield() {});\n  }\n};\n\nresult = obj.g().next();\n\nassert.sameValue(result.value, undefined);\nassert.sameValue(result.done, true);\n"
  ],
  [
    "test262-language--expressions--postfix-increment--eval",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (c) 2012 Ecma International.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-identifiers-static-semantics-assignmenttargettype\ndescription: >\n  If this IdentifierReference is contained in strict mode code and StringValue of Identifier is \"eval\" or  \"arguments\", return strict.\ninfo: |\n  sec-update-expressions-static-semantics-early-errors\n\n  UpdateExpression: LeftHandSideExpression ++\n\n  It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is strict.\nflags: [onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\neval++;\n"
  ],
  [
    "test262-language--expressions--prefix-decrement--target-cover-newtarget",
    "script",
    false,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-update-expressions-static-semantics-early-errors\ndescription: Applied to a \"covered\" new.target\ninfo: |\n  UnaryExpression :\n    ++ UnaryExpression\n    -- UnaryExpression\n\n  - It is an early Syntax Error if IsValidSimpleAssignmentTarget of\n    UnaryExpression is invalid or strict.\n\n  12.3.1.6 Static Semantics: AssignmentTargetType\n\n  NewTarget:\n\n  new.target\n\n  1. Return invalid.\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [new.target]\n---*/\n\n$DONOTEVALUATE();\n\nfunction f() {\n  --(new.target);\n}\n"
  ],
  [
    "test262-language--expressions--prefix-decrement--target-cover-yieldexpr",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-update-expressions-static-semantics-early-errors\ndescription: Applied to a \"covered\" YieldExpression\ninfo: |\n  UnaryExpression :\n    ++ UnaryExpression\n    -- UnaryExpression\n\n  - It is an early Syntax Error if IsValidSimpleAssignmentTarget of\n    UnaryExpression is invalid or strict.\n\n  12.15.3 Static Semantics: AssignmentTargetType\n\n  AssignmentExpression:\n    YieldExpression\n    ArrowFunction\n    AsyncArrowFunction\n    LeftHandSideExpression = AssignmentExpression\n    LeftHandSideExpression AssignmentOperator AssignmentExpression\n\n  1. Return invalid.\nfeatures: [generators]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nfunction* g() {\n  --(yield);\n}\n"
  ],
  [
    "test262-language--expressions--strict-equals--bigint-and-bigint",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 Josh Wolfe. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Strict equality comparison of BigInt values\nesid: sec-strict-equality-comparison\ninfo: |\n  1. If Type(x) is different from Type(y), return false.\n  2. If Type(x) is Number or BigInt, then\n    a. Return ! Type(x)::equal(x, y).\n\n  sec-numeric-types-bigint-equal\n  BigInt::equal (x, y)\n\n    The abstract operation BigInt::equal with two arguments x and y of BigInt type returns true if x and y have the same mathematical integer value and false otherwise.\n\nfeatures: [BigInt]\n---*/\nassert.sameValue(0n === 0n, true, 'The result of (0n === 0n) is true');\nassert.sameValue(1n === 1n, true, 'The result of (1n === 1n) is true');\nassert.sameValue(-1n === -1n, true, 'The result of (-1n === -1n) is true');\nassert.sameValue(0n === -0n, true, 'The result of (0n === -0n) is true');\nassert.sameValue(-0n === 0n, true, 'The result of (-0n === 0n) is true');\nassert.sameValue(0n === 1n, false, 'The result of (0n === 1n) is false');\nassert.sameValue(1n === 0n, false, 'The result of (1n === 0n) is false');\nassert.sameValue(0n === -1n, false, 'The result of (0n === -1n) is false');\nassert.sameValue(-1n === 0n, false, 'The result of (-1n === 0n) is false');\nassert.sameValue(1n === -1n, false, 'The result of (1n === -1n) is false');\nassert.sameValue(-1n === 1n, false, 'The result of (-1n === 1n) is false');\n\nassert.sameValue(\n  0x1fffffffffffff01n === 0x1fffffffffffff01n,\n  true,\n  'The result of (0x1fffffffffffff01n === 0x1fffffffffffff01n) is true'\n);\n\nassert.sameValue(\n  0x1fffffffffffff01n === 0x1fffffffffffff02n,\n  false,\n  'The result of (0x1fffffffffffff01n === 0x1fffffffffffff02n) is false'\n);\n\nassert.sameValue(\n  0x1fffffffffffff02n === 0x1fffffffffffff01n,\n  false,\n  'The result of (0x1fffffffffffff02n === 0x1fffffffffffff01n) is false'\n);\n\nassert.sameValue(\n  -0x1fffffffffffff01n === -0x1fffffffffffff01n,\n  true,\n  'The result of (-0x1fffffffffffff01n === -0x1fffffffffffff01n) is true'\n);\n\nassert.sameValue(\n  -0x1fffffffffffff01n === -0x1fffffffffffff02n,\n  false,\n  'The result of (-0x1fffffffffffff01n === -0x1fffffffffffff02n) is false'\n);\n\nassert.sameValue(\n  -0x1fffffffffffff02n === -0x1fffffffffffff01n,\n  false,\n  'The result of (-0x1fffffffffffff02n === -0x1fffffffffffff01n) is false'\n);\n\nassert.sameValue(\n  0x10000000000000000n === 0n,\n  false,\n  'The result of (0x10000000000000000n === 0n) is false'\n);\n\nassert.sameValue(\n  0n === 0x10000000000000000n,\n  false,\n  'The result of (0n === 0x10000000000000000n) is false'\n);\n\nassert.sameValue(\n  0x10000000000000000n === 1n,\n  false,\n  'The result of (0x10000000000000000n === 1n) is false'\n);\n\nassert.sameValue(\n  1n === 0x10000000000000000n,\n  false,\n  'The result of (1n === 0x10000000000000000n) is false'\n);\n\nassert.sameValue(\n  0x10000000000000000n === -1n,\n  false,\n  'The result of (0x10000000000000000n === -1n) is false'\n);\n\nassert.sameValue(\n  -1n === 0x10000000000000000n,\n  false,\n  'The result of (-1n === 0x10000000000000000n) is false'\n);\n\nassert.sameValue(\n  0x10000000000000001n === 0n,\n  false,\n  'The result of (0x10000000000000001n === 0n) is false'\n);\n\nassert.sameValue(\n  0n === 0x10000000000000001n,\n  false,\n  'The result of (0n === 0x10000000000000001n) is false'\n);\n\nassert.sameValue(\n  -0x10000000000000000n === 0n,\n  false,\n  'The result of (-0x10000000000000000n === 0n) is false'\n);\n\nassert.sameValue(\n  0n === -0x10000000000000000n,\n  false,\n  'The result of (0n === -0x10000000000000000n) is false'\n);\n\nassert.sameValue(\n  -0x10000000000000000n === 1n,\n  false,\n  'The result of (-0x10000000000000000n === 1n) is false'\n);\n\nassert.sameValue(\n  1n === -0x10000000000000000n,\n  false,\n  'The result of (1n === -0x10000000000000000n) is false'\n);\n\nassert.sameValue(\n  -0x10000000000000000n === -1n,\n  false,\n  'The result of (-0x10000000000000000n === -1n) is false'\n);\n\nassert.sameValue(\n  -1n === -0x10000000000000000n,\n  false,\n  'The result of (-1n === -0x10000000000000000n) is false'\n);\n\nassert.sameValue(\n  -0x10000000000000001n === 0n,\n  false,\n  'The result of (-0x10000000000000001n === 0n) is false'\n);\n\nassert.sameValue(\n  0n === -0x10000000000000001n,\n  false,\n  'The result of (0n === -0x10000000000000001n) is false'\n);\n\nassert.sameValue(\n  0x10000000000000000n === 0x100000000n,\n  false,\n  'The result of (0x10000000000000000n === 0x100000000n) is false'\n);\n\nassert.sameValue(\n  0x100000000n === 0x10000000000000000n,\n  false,\n  'The result of (0x100000000n === 0x10000000000000000n) is false'\n);\n"
  ],
  [
    "test262-language--expressions--strict-equals--bigint-and-incomparable-primitive",
    "script",
    true,
    "standards",
    "// Copyright (C) 2017 Josh Wolfe. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Strict equality comparison of BigInt and miscellaneous primitive values\nesid: sec-strict-equality-comparison\ninfo: |\n  1. If Type(x) is different from Type(y), return false.\n\nfeatures: [BigInt, Symbol]\n---*/\nassert.sameValue(0n === undefined, false, 'The result of (0n === undefined) is false');\nassert.sameValue(undefined === 0n, false, 'The result of (undefined === 0n) is false');\nassert.sameValue(1n === undefined, false, 'The result of (1n === undefined) is false');\nassert.sameValue(undefined === 1n, false, 'The result of (undefined === 1n) is false');\nassert.sameValue(0n === null, false, 'The result of (0n === null) is false');\nassert.sameValue(null === 0n, false, 'The result of (null === 0n) is false');\nassert.sameValue(1n === null, false, 'The result of (1n === null) is false');\nassert.sameValue(null === 1n, false, 'The result of (null === 1n) is false');\nassert.sameValue(0n === Symbol('1'), false, 'The result of (0n === Symbol(\"1\")) is false');\nassert.sameValue(Symbol('1') === 0n, false, 'The result of (Symbol(\"1\") === 0n) is false');\nassert.sameValue(1n === Symbol('1'), false, 'The result of (1n === Symbol(\"1\")) is false');\nassert.sameValue(Symbol('1') === 1n, false, 'The result of (Symbol(\"1\") === 1n) is false');\n"
  ],
  [
    "test262-language--expressions--super--call-spread-err-sngl-err-itr-step",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/spread/sngl-err-itr-step.case\n// - src/spread/error/super-call.template\n/*---\ndescription: Spread operator applied to the only argument when IteratorStep fails (SuperCall)\nesid: sec-super-keyword-runtime-semantics-evaluation\nfeatures: [Symbol.iterator]\nflags: [generated]\ninfo: |\n    SuperCall : super Arguments\n\n    1. Let newTarget be GetNewTarget().\n    2. If newTarget is undefined, throw a ReferenceError exception.\n    3. Let func be GetSuperConstructor().\n    4. ReturnIfAbrupt(func).\n    5. Let argList be ArgumentListEvaluation of Arguments.\n    [...]\n\n    12.3.6.1 Runtime Semantics: ArgumentListEvaluation\n\n    ArgumentList : ... AssignmentExpression\n\n    1. Let list be an empty List.\n    2. Let spreadRef be the result of evaluating AssignmentExpression.\n    3. Let spreadObj be GetValue(spreadRef).\n    4. Let iterator be GetIterator(spreadObj).\n    5. ReturnIfAbrupt(iterator).\n    6. Repeat\n       a. Let next be IteratorStep(iterator).\n       b. ReturnIfAbrupt(next).\n\n    7.4.5 IteratorStep ( iterator )\n\n    1. Let result be IteratorNext(iterator).\n    2. ReturnIfAbrupt(result).\n\n    7.4.2 IteratorNext ( iterator, value )\n\n    1. If value was not passed, then\n       a. Let result be Invoke(iterator, \"next\", « »).\n    [...]\n    3. ReturnIfAbrupt(result).\n---*/\nvar iter = {};\niter[Symbol.iterator] = function() {\n  return {\n    next: function() {\n      throw new Test262Error();\n    }\n  };\n};\n\nclass Test262ParentClass {\n  constructor() {}\n}\n\nclass Test262ChildClass extends Test262ParentClass {\n  constructor() {\n    super(...iter);\n  }\n}\n\nassert.throws(Test262Error, function() {\n  new Test262ChildClass();\n});\n"
  ],
  [
    "test262-language--expressions--super--prop-dot-cls-val-from-arrow",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-super-keyword\nes6id: 12.3.5\ndescription: Value of reference returned by SuperProperty (from arrow function)\ninfo: |\n  1. Let propertyKey be StringValue of IdentifierName.\n  2. If the code matched by the syntactic production that is being evaluated is\n     strict mode code, let strict be true, else let strict be false.\n  3. Return ? MakeSuperPropertyReference(propertyKey, strict).\n\n  12.3.5.3 Runtime Semantics: MakeSuperPropertyReference\n\n  1. Let env be GetThisEnvironment( ).\n  2. If env.HasSuperBinding() is false, throw a ReferenceError exception.\n  3. Let actualThis be ? env.GetThisBinding().\n  4. Let baseValue be ? env.GetSuperBase().\n  5. Let bv be ? RequireObjectCoercible(baseValue).\n  6. Return a value of type Reference that is a Super Reference whose base\n     value component is bv, whose referenced name component is propertyKey,\n     whose thisValue component is actualThis, and whose strict reference flag\n     is strict.\nfeatures: [class, arrow-function]\n---*/\n\nvar fromA, fromB;\nclass A {}\nclass B extends A {}\nclass C extends B {\n  method() {\n    fromA = (() => { return super.fromA; })();\n    fromB = (() => { return super.fromB; })();\n  }\n}\n\nA.prototype.fromA = 'a';\nA.prototype.fromB = 'a';\nB.prototype.fromB = 'b';\nC.prototype.fromA = 'c';\nC.prototype.fromB = 'c';\n\nC.prototype.method();\n\nassert.sameValue(fromA, 'a');\nassert.sameValue(fromB, 'b');\n"
  ],
  [
    "test262-language--expressions--super--realm",
    "script",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-super-keyword\nes6id: 12.3.5\ndescription: >\n    Default [[Prototype]] value derived from realm of the newTarget value\ninfo: |\n    1. Let newTarget be GetNewTarget().\n    [...]\n    6. Let result be ? Construct(func, argList, newTarget).\n    [...]\n\n    9.1.14 GetPrototypeFromConstructor\n\n    [...]\n    3. Let proto be ? Get(constructor, \"prototype\").\n    4. If Type(proto) is not Object, then\n       a. Let realm be ? GetFunctionRealm(constructor).\n       b. Let proto be realm's intrinsic object named intrinsicDefaultProto.\n    [...]\nfeatures: [cross-realm, Reflect]\n---*/\n\nvar other = $262.createRealm().global;\nvar C = new other.Function();\nC.prototype = null;\n\nclass B extends function() {} {\n  constructor() {\n    super();\n  }\n}\n\nvar b = Reflect.construct(B, [], C);\n\nassert.sameValue(Object.getPrototypeOf(b), other.Object.prototype);\n"
  ],
  [
    "test262-language--expressions--this--S11.1.1_A1",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: The \"this\" is reserved word\nes5id: 11.1.1_A1\ndescription: Checking if execution of \"this=1\" fails\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nthis = 1;\n"
  ],
  [
    "test262-language--expressions--unary-minus--bigint",
    "script",
    true,
    "standards",
    "// Copyright (C) 2017 Josh Wolfe. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: Unary minus for BigInt values\nesid: sec-numeric-types-bigint-unaryMinus\ninfo: |\n  BigInt::unaryMinus (x)\n\n  The abstract operation BigInt::unaryMinus with an argument x of BigInt type returns the result of negating x.\n\n  Note: There is only one 0n value; -0n is the same as 0n.\n\nfeatures: [BigInt]\n---*/\n\nassert.sameValue(-0n, 0n, \"-0n === 0n\");\nassert.sameValue(-(0n), 0n, \"-(0n) === 0n\");\nassert.notSameValue(-1n, 1n, \"-1n !== 1n\");\nassert.sameValue(-(1n), -1n, \"-(1n) === -1n\");\nassert.notSameValue(-(1n), 1n, \"-(1n) !== 1n\");\nassert.sameValue(-(-1n), 1n, \"-(-1n) === 1n\");\nassert.notSameValue(-(-1n), -1n, \"-(-1n) !== -1n\");\nassert.sameValue(- - 1n, 1n, \"- - 1n === 1n\");\nassert.notSameValue(- - 1n, -1n, \"- - 1n !== -1n\");\nassert.sameValue(\n  -(0x1fffffffffffff01n), -0x1fffffffffffff01n,\n  \"-(0x1fffffffffffff01n) === -0x1fffffffffffff01n\");\nassert.notSameValue(\n  -(0x1fffffffffffff01n), 0x1fffffffffffff01n,\n  \"-(0x1fffffffffffff01n) !== 0x1fffffffffffff01n\");\nassert.notSameValue(\n  -(0x1fffffffffffff01n), -0x1fffffffffffff00n,\n  \"-(0x1fffffffffffff01n) !== -0x1fffffffffffff00n\");\n"
  ],
  [
    "test262-language--expressions--yield--rhs-iter",
    "script",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-generator-function-definitions-runtime-semantics-evaluation\nes6id: 14.4.14\ndescription: >\n  Iteration protocol is not initiated for non-delegating YieldExpression\ninfo: |\n  YieldExpression:yieldAssignmentExpression\n\n  1. Let exprRef be the result of evaluating AssignmentExpression.\n  2. Let value be ? GetValue(exprRef).\n  3. Return ? GeneratorYield(CreateIterResultObject(value, false)).\nfeatures: [generators, Symbol.iterator]\n---*/\n\nvar callCount = 0;\nvar iterSpy = Object.defineProperty({}, Symbol.iterator, {\n  get: function() {\n    callCount += 1;\n  }\n});\nfunction* g() {\n  yield iterSpy;\n}\nvar iter = g();\nvar result;\n\nresult = iter.next();\n\nassert.sameValue(result.value, iterSpy);\nassert.sameValue(result.done, false);\nassert.sameValue(callCount, 0);\n\nresult = iter.next();\n\nassert.sameValue(result.value, undefined);\nassert.sameValue(result.done, true);\nassert.sameValue(callCount, 0);\n"
  ],
  [
    "test262-language--global-code--decl-lex-restricted-global",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-globaldeclarationinstantiation\nes6id: 15.1.8\ndescription: Lexical declaration collides with existing \"restricted global\"\ninfo: |\n  [...]\n  5. For each name in lexNames, do\n     [...]\n     c. Let hasRestrictedGlobal be ? envRec.HasRestrictedGlobalProperty(name).\n     d. If hasRestrictedGlobal is true, throw a SyntaxError exception.\nnegative:\n  phase: runtime\n  type: SyntaxError\n---*/\n\nlet undefined;\n"
  ],
  [
    "test262-language--global-code--invalid-private-names-call-expression-bad-reference",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/invalid-private-names/call-expression-bad-reference.case\n// - src/invalid-private-names/default/top-level-scriptbody.template\n/*---\ndescription: bad reference in call expression (Invalid private names should throw a SyntaxError, top level of script body)\nesid: sec-static-semantics-early-errors\nfeatures: [class-fields-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ScriptBody:StatementList\n      It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List\n      as an argument is false unless the source code is eval code that is being\n      processed by a direct eval.\n\n    ModuleBody:ModuleItemList\n      It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List\n      as an argument is false.\n\n\n    Static Semantics: AllPrivateNamesValid\n\n    MemberExpression : MemberExpression . PrivateName\n\n    1. If StringValue of PrivateName is in names, return true.\n    2. Return false.\n\n    CallExpression : CallExpression . PrivateName\n\n    1. If StringValue of PrivateName is in names, return true.\n    2. Return false.\n\n---*/\n\n\n$DONOTEVALUATE();\n\n(() => {})().#x\n"
  ],
  [
    "test262-language--global-code--new.target",
    "script",
    false,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-scripts-static-semantics-early-errors\nes6id: 15.1.1\ndescription: Global code may not contain `new.target`\ninfo: |\n  - It is a Syntax Error if StatementList Contains NewTarget unless the source\n    code containing NewTarget is eval code that is being processed by a direct\n    eval that is contained in function code that is not the function code of an\n    ArrowFunction.\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [new.target]\n---*/\n\n$DONOTEVALUATE();\n\nnew.target;\n"
  ],
  [
    "test262-language--global-code--return",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-scripts\nes6id: 15.1\ndescription: ReturnStatement may not be used directly within global code\ninfo: |\n  Syntax\n\n  Script :\n    ScriptBodyopt\n\n  ScriptBody :\n    StatementList[~Yield, ~Return]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nreturn;\n"
  ],
  [
    "test262-language--global-code--super-call-arrow",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-scripts-static-semantics-early-errors\nes6id: 15.1.1\ndescription: An ArrowFunction in global code may not contain SuperCall\ninfo: |\n  - It is a Syntax Error if StatementList Contains super unless the source code\n    containing super is eval code that is being processed by a direct eval that\n    is contained in function code that is not the function code of an\n    ArrowFunction.\n\n  14.2.3 Static Semantics: Contains\n\n  With parameter symbol.\n\n  ArrowFunction : ArrowParameters => ConciseBody\n\n  1. If symbol is not one of NewTarget, SuperProperty, SuperCall, super or\n     this, return false.\n  2. If ArrowParameters Contains symbol is true, return true.\n  3. Return ConciseBody Contains symbol.\n\n  NOTE Normally, Contains does not look inside most function forms. However,\n       Contains is used to detect new.target, this, and super usage within an\n       ArrowFunction.\nfeatures: [super, arrow-function]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n() => {\n  super();\n};\n"
  ],
  [
    "test262-language--identifier-resolution--unscopables",
    "script",
    true,
    "standards",
    "// Copyright 2015 Mike Pennisi. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nes6id: 8.1.1.4.1\ndescription: >\n    `Symbol.unscopables` is not referenced when finding bindings in global scope\ninfo: |\n    1. Let envRec be the global Environment Record for which the method was\n       invoked.\n    2. Let DclRec be envRec.[[DeclarativeRecord]].\n    3. If DclRec.HasBinding(N) is true, return true.\n    4. Let ObjRec be envRec.[[ObjectRecord]].\n    5. Return ObjRec.HasBinding(N).\nfeatures: [Symbol.unscopables]\n---*/\n\nvar x = 86;\nthis[Symbol.unscopables] = {\n  x: true\n};\nassert.sameValue(x, 86);\n"
  ],
  [
    "test262-language--identifiers--start-unicode-14.0.0-class",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright 2024 Mathias Bynens. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Mathias Bynens\nesid: prod-PrivateIdentifier\ndescription: |\n  Test that Unicode v14.0.0 ID_Start characters are accepted as\n  identifier start characters in private class fields.\ninfo: |\n  Generated by https://github.com/mathiasbynens/caniunicode\nfeatures: [class, class-fields-private]\n---*/\n\nclass _ {\n  #ࡰ;\n  #ࡱ;\n  #ࡲ;\n  #ࡳ;\n  #ࡴ;\n  #ࡵ;\n  #ࡶ;\n  #ࡷ;\n  #ࡸ;\n  #ࡹ;\n  #ࡺ;\n  #ࡻ;\n  #ࡼ;\n  #ࡽ;\n  #ࡾ;\n  #ࡿ;\n  #ࢀ;\n  #ࢁ;\n  #ࢂ;\n  #ࢃ;\n  #ࢄ;\n  #ࢅ;\n  #ࢆ;\n  #ࢇ;\n  #ࢉ;\n  #ࢊ;\n  #ࢋ;\n  #ࢌ;\n  #ࢍ;\n  #ࢎ;\n  #ࢵ;\n  #ࣈ;\n  #ࣉ;\n  #ౝ;\n  #ೝ;\n  #ᜍ;\n  #ᜟ;\n  #ᭌ;\n  #Ⱟ;\n  #ⱟ;\n  #鿽;\n  #鿾;\n  #鿿;\n  #Ꟁ;\n  #ꟁ;\n  #Ꟑ;\n  #ꟑ;\n  #ꟓ;\n  #ꟕ;\n  #Ꟗ;\n  #ꟗ;\n  #Ꟙ;\n  #ꟙ;\n  #ꟲ;\n  #ꟳ;\n  #ꟴ;\n  #𐕰;\n  #𐕱;\n  #𐕲;\n  #𐕳;\n  #𐕴;\n  #𐕵;\n  #𐕶;\n  #𐕷;\n  #𐕸;\n  #𐕹;\n  #𐕺;\n  #𐕼;\n  #𐕽;\n  #𐕾;\n  #𐕿;\n  #𐖀;\n  #𐖁;\n  #𐖂;\n  #𐖃;\n  #𐖄;\n  #𐖅;\n  #𐖆;\n  #𐖇;\n  #𐖈;\n  #𐖉;\n  #𐖊;\n  #𐖌;\n  #𐖍;\n  #𐖎;\n  #𐖏;\n  #𐖐;\n  #𐖑;\n  #𐖒;\n  #𐖔;\n  #𐖕;\n  #𐖗;\n  #𐖘;\n  #𐖙;\n  #𐖚;\n  #𐖛;\n  #𐖜;\n  #𐖝;\n  #𐖞;\n  #𐖟;\n  #𐖠;\n  #𐖡;\n  #𐖣;\n  #𐖤;\n  #𐖥;\n  #𐖦;\n  #𐖧;\n  #𐖨;\n  #𐖩;\n  #𐖪;\n  #𐖫;\n  #𐖬;\n  #𐖭;\n  #𐖮;\n  #𐖯;\n  #𐖰;\n  #𐖱;\n  #𐖳;\n  #𐖴;\n  #𐖵;\n  #𐖶;\n  #𐖷;\n  #𐖸;\n  #𐖹;\n  #𐖻;\n  #𐖼;\n  #𐞀;\n  #𐞁;\n  #𐞂;\n  #𐞃;\n  #𐞄;\n  #𐞅;\n  #𐞇;\n  #𐞈;\n  #𐞉;\n  #𐞊;\n  #𐞋;\n  #𐞌;\n  #𐞍;\n  #𐞎;\n  #𐞏;\n  #𐞐;\n  #𐞑;\n  #𐞒;\n  #𐞓;\n  #𐞔;\n  #𐞕;\n  #𐞖;\n  #𐞗;\n  #𐞘;\n  #𐞙;\n  #𐞚;\n  #𐞛;\n  #𐞜;\n  #𐞝;\n  #𐞞;\n  #𐞟;\n  #𐞠;\n  #𐞡;\n  #𐞢;\n  #𐞣;\n  #𐞤;\n  #𐞥;\n  #𐞦;\n  #𐞧;\n  #𐞨;\n  #𐞩;\n  #𐞪;\n  #𐞫;\n  #𐞬;\n  #𐞭;\n  #𐞮;\n  #𐞯;\n  #𐞰;\n  #𐞲;\n  #𐞳;\n  #𐞴;\n  #𐞵;\n  #𐞶;\n  #𐞷;\n  #𐞸;\n  #𐞹;\n  #𐞺;\n  #𐽰;\n  #𐽱;\n  #𐽲;\n  #𐽳;\n  #𐽴;\n  #𐽵;\n  #𐽶;\n  #𐽷;\n  #𐽸;\n  #𐽹;\n  #𐽺;\n  #𐽻;\n  #𐽼;\n  #𐽽;\n  #𐽾;\n  #𐽿;\n  #𐾀;\n  #𐾁;\n  #𑁱;\n  #𑁲;\n  #𑁵;\n  #𑝀;\n  #𑝁;\n  #𑝂;\n  #𑝃;\n  #𑝄;\n  #𑝅;\n  #𑝆;\n  #𑪰;\n  #𑪱;\n  #𑪲;\n  #𑪳;\n  #𑪴;\n  #𑪵;\n  #𑪶;\n  #𑪷;\n  #𑪸;\n  #𑪹;\n  #𑪺;\n  #𑪻;\n  #𑪼;\n  #𑪽;\n  #𑪾;\n  #𑪿;\n  #𒾐;\n  #𒾑;\n  #𒾒;\n  #𒾓;\n  #𒾔;\n  #𒾕;\n  #𒾖;\n  #𒾗;\n  #𒾘;\n  #𒾙;\n  #𒾚;\n  #𒾛;\n  #𒾜;\n  #𒾝;\n  #𒾞;\n  #𒾟;\n  #𒾠;\n  #𒾡;\n  #𒾢;\n  #𒾣;\n  #𒾤;\n  #𒾥;\n  #𒾦;\n  #𒾧;\n  #𒾨;\n  #𒾩;\n  #𒾪;\n  #𒾫;\n  #𒾬;\n  #𒾭;\n  #𒾮;\n  #𒾯;\n  #𒾰;\n  #𒾱;\n  #𒾲;\n  #𒾳;\n  #𒾴;\n  #𒾵;\n  #𒾶;\n  #𒾷;\n  #𒾸;\n  #𒾹;\n  #𒾺;\n  #𒾻;\n  #𒾼;\n  #𒾽;\n  #𒾾;\n  #𒾿;\n  #𒿀;\n  #𒿁;\n  #𒿂;\n  #𒿃;\n  #𒿄;\n  #𒿅;\n  #𒿆;\n  #𒿇;\n  #𒿈;\n  #𒿉;\n  #𒿊;\n  #𒿋;\n  #𒿌;\n  #𒿍;\n  #𒿎;\n  #𒿏;\n  #𒿐;\n  #𒿑;\n  #𒿒;\n  #𒿓;\n  #𒿔;\n  #𒿕;\n  #𒿖;\n  #𒿗;\n  #𒿘;\n  #𒿙;\n  #𒿚;\n  #𒿛;\n  #𒿜;\n  #𒿝;\n  #𒿞;\n  #𒿟;\n  #𒿠;\n  #𒿡;\n  #𒿢;\n  #𒿣;\n  #𒿤;\n  #𒿥;\n  #𒿦;\n  #𒿧;\n  #𒿨;\n  #𒿩;\n  #𒿪;\n  #𒿫;\n  #𒿬;\n  #𒿭;\n  #𒿮;\n  #𒿯;\n  #𒿰;\n  #𖩰;\n  #𖩱;\n  #𖩲;\n  #𖩳;\n  #𖩴;\n  #𖩵;\n  #𖩶;\n  #𖩷;\n  #𖩸;\n  #𖩹;\n  #𖩺;\n  #𖩻;\n  #𖩼;\n  #𖩽;\n  #𖩾;\n  #𖩿;\n  #𖪀;\n  #𖪁;\n  #𖪂;\n  #𖪃;\n  #𖪄;\n  #𖪅;\n  #𖪆;\n  #𖪇;\n  #𖪈;\n  #𖪉;\n  #𖪊;\n  #𖪋;\n  #𖪌;\n  #𖪍;\n  #𖪎;\n  #𖪏;\n  #𖪐;\n  #𖪑;\n  #𖪒;\n  #𖪓;\n  #𖪔;\n  #𖪕;\n  #𖪖;\n  #𖪗;\n  #𖪘;\n  #𖪙;\n  #𖪚;\n  #𖪛;\n  #𖪜;\n  #𖪝;\n  #𖪞;\n  #𖪟;\n  #𖪠;\n  #𖪡;\n  #𖪢;\n  #𖪣;\n  #𖪤;\n  #𖪥;\n  #𖪦;\n  #𖪧;\n  #𖪨;\n  #𖪩;\n  #𖪪;\n  #𖪫;\n  #𖪬;\n  #𖪭;\n  #𖪮;\n  #𖪯;\n  #𖪰;\n  #𖪱;\n  #𖪲;\n  #𖪳;\n  #𖪴;\n  #𖪵;\n  #𖪶;\n  #𖪷;\n  #𖪸;\n  #𖪹;\n  #𖪺;\n  #𖪻;\n  #𖪼;\n  #𖪽;\n  #𖪾;\n  #𚿰;\n  #𚿱;\n  #𚿲;\n  #𚿳;\n  #𚿵;\n  #𚿶;\n  #𚿷;\n  #𚿸;\n  #𚿹;\n  #𚿺;\n  #𚿻;\n  #𚿽;\n  #𚿾;\n  #𛄟;\n  #𛄠;\n  #𛄡;\n  #𛄢;\n  #𝼀;\n  #𝼁;\n  #𝼂;\n  #𝼃;\n  #𝼄;\n  #𝼅;\n  #𝼆;\n  #𝼇;\n  #𝼈;\n  #𝼉;\n  #𝼊;\n  #𝼋;\n  #𝼌;\n  #𝼍;\n  #𝼎;\n  #𝼏;\n  #𝼐;\n  #𝼑;\n  #𝼒;\n  #𝼓;\n  #𝼔;\n  #𝼕;\n  #𝼖;\n  #𝼗;\n  #𝼘;\n  #𝼙;\n  #𝼚;\n  #𝼛;\n  #𝼜;\n  #𝼝;\n  #𝼞;\n  #𞊐;\n  #𞊑;\n  #𞊒;\n  #𞊓;\n  #𞊔;\n  #𞊕;\n  #𞊖;\n  #𞊗;\n  #𞊘;\n  #𞊙;\n  #𞊚;\n  #𞊛;\n  #𞊜;\n  #𞊝;\n  #𞊞;\n  #𞊟;\n  #𞊠;\n  #𞊡;\n  #𞊢;\n  #𞊣;\n  #𞊤;\n  #𞊥;\n  #𞊦;\n  #𞊧;\n  #𞊨;\n  #𞊩;\n  #𞊪;\n  #𞊫;\n  #𞊬;\n  #𞊭;\n  #𞟠;\n  #𞟡;\n  #𞟢;\n  #𞟣;\n  #𞟤;\n  #𞟥;\n  #𞟦;\n  #𞟨;\n  #𞟩;\n  #𞟪;\n  #𞟫;\n  #𞟭;\n  #𞟮;\n  #𞟰;\n  #𞟱;\n  #𞟲;\n  #𞟳;\n  #𞟴;\n  #𞟵;\n  #𞟶;\n  #𞟷;\n  #𞟸;\n  #𞟹;\n  #𞟺;\n  #𞟻;\n  #𞟼;\n  #𞟽;\n  #𞟾;\n  #𪛞;\n  #𪛟;\n  #𫜵;\n  #𫜶;\n  #𫜷;\n  #𫜸;\n};\n"
  ],
  [
    "test262-language--identifiers--unicode-escape-nls-err",
    "script",
    false,
    "standards",
    "// Copyright (C) 2014 Valerie Young. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: prod-Identifier\ndescription: NumericLiteralSeperator disallowed in unicode CodePoint escape sequence\ninfo: |\n Identifier:\n   IdentifierName but not ReservedWord\n\n IdentifierName ::\n   IdentifierStart\n   IdentifierNameIdentifierPart\n\n IdentifierStart ::\n   UnicodeIDStart\n   $\n   _\n   \\UnicodeEscapeSequence\n\n IdentifierPart ::\n   UnicodeIDContinue\n   $\n   \\UnicodeEscapeSequence\n\n UnicodeEscapeSequence ::\n   uHex4Digits\n   u{CodePoint}\n\n CodePoint ::\n   HexDigit but only if MV of HexDigits ≤ 0x10FFFF\n   CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF\n\n CodePointDigits ::\n   HexDigit\n   CodePointDigitsHexDigit\n\n  HexDigit :: one of\n    0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F\n\nfeatures: [numeric-separator-literal]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nvar \\u{00_76} = 1;\n"
  ],
  [
    "test262-language--identifiers--val-try",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nes6id: 11.6\ndescription: >\n    SyntaxError expected: reserved words used as Identifier\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nvar try = 123;\n"
  ],
  [
    "test262-language--literals--bigint--numeric-separators--numeric-separator-literal-oil-nsl-od-dunder-err",
    "script",
    false,
    "standards",
    "// Copyright (C) 2019 Leo Balter. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: prod-NumericLiteralSeparator\ndescription: >\n  NumericLiteralSeparator may not appear adjacent to another\n  NumericLiteralSeparator in a OctalIntegerLiteral\ninfo: |\n  NumericLiteral ::\n    DecimalIntegerLiteral BigIntLiteralSuffix\n    NumericLiteralBase BigIntLiteralSuffix\n\n  NumericLiteralBase ::\n    BinaryIntegerLiteral\n    OctalIntegerLiteral\n    HexIntegerLiteral\n\n  BigIntLiteralSuffix :: n\n\n  NumericLiteralSeparator ::\n    _\n\n  OctalIntegerLiteral ::\n    0o OctalDigits\n    0O OctalDigits\n\n  OctalDigits ::\n    OctalDigit\n    OctalDigits OctalDigit\n    OctalDigits NumericLiteralSeparator OctalDigit\n\n  OctalDigit :: one of\n    0 1 2 3 4 5 6 7\n\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [BigInt, numeric-separator-literal]\n---*/\n\n$DONOTEVALUATE();\n\n0o0__0n;\n"
  ],
  [
    "test262-language--literals--bigint--numeric-separators--numeric-separator-literal-oil-od-nsl-od",
    "script",
    true,
    "standards",
    "// Copyright (C) 2019 Leo Balter. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: prod-NumericLiteralSeparator\ndescription: >\n  `0o` | `0O` OctalDigit NumericLiteralSeparator OctalDigit\ninfo: |\n  NumericLiteral ::\n    DecimalIntegerLiteral BigIntLiteralSuffix\n    NumericLiteralBase BigIntLiteralSuffix\n\n  NumericLiteralBase ::\n    BinaryIntegerLiteral\n    OctalIntegerLiteral\n    HexIntegerLiteral\n\n  BigIntLiteralSuffix :: n\n\n  NumericLiteralSeparator ::\n    _\n\n  OctalIntegerLiteral ::\n    0o OctalDigits\n    0O OctalDigits\n\n  OctalDigits ::\n    OctalDigit\n    OctalDigits OctalDigit\n    OctalDigits NumericLiteralSeparator OctalDigit\n\n  OctalDigit :: one of\n    0 1 2 3 4 5 6 7\n\nfeatures: [BigInt, numeric-separator-literal]\n---*/\n\nassert.sameValue(0o0_1n, 0o01n);\nassert.sameValue(0O0_1n, 0O01n);\n"
  ],
  [
    "test262-language--literals--numeric--binary-invalid-leading",
    "script",
    false,
    "standards",
    "// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nes6id: 11.8.3\ndescription: Binary-integer-literal-like sequence with a leading 0\ninfo: |\n    BinaryIntegerLiteral ::\n      0b BinaryDigits\n      0B BinaryDigits\n    BinaryDigits ::\n      BinaryDigit\n      BinaryDigits BinaryDigit\n    BinaryDigit :: one of\n      0 1\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n00b0;\n"
  ],
  [
    "test262-language--literals--numeric--numeric-separators--numeric-separator-literal-hil-nsl-hd-dunder-err",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: prod-NumericLiteralSeparator\ndescription: >\n  NumericLiteralSeparator may not appear adjacent to another\n  NumericLiteralSeparator in a HexIntegerLiteral\ninfo: |\n  NumericLiteralSeparator ::\n    _\n\n  HexIntegerLiteral ::\n    0x HexDigits\n    0X HexDigits\n\n  HexDigits ::\n    HexDigit\n    HexDigits HexDigit\n    HexDigits NumericLiteralSeparator HexDigit\n\n  HexDigit::one of\n    0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F\n\nnegative:\n  phase: parse\n  type: SyntaxError\n\nfeatures: [numeric-separator-literal]\n---*/\n\n$DONOTEVALUATE();\n\n0x0__0\n"
  ],
  [
    "test262-language--literals--regexp--early-err-modifiers-should-not-unicode-escape-i",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2024 Igalia, S.L. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: Source text cannot use unicode escape sequences to express code points \"i\", \"m\", \"s\" (regular expression flags)\nesid: sec-patterns-static-semantics-early-errors\nfeatures: [regexp-modifiers]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Atom :: ( ? RegularExpresisonFlags : Disjunction )\n    It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than \"i\", \"m\", \"s\", or if it contains the same code point more than once.\n\n---*/\n\n$DONOTEVALUATE();\n\n/(?\\u0069:a)/u /* i */;\n"
  ],
  [
    "test262-language--literals--regexp--invalid-braced-quantifier-exact",
    "script",
    false,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-patterns\nes6id: 21.2.1\ndescription: Braced quantifier in an Atom position (exact count)\ninfo: |\n    SyntaxCharacter :: one of\n        ^$\\.*+?()[]{}|\n\n    PatternCharacter ::\n        SourceCharacter but not SyntaxCharacter\n\n    Although Annex B extends the definition of Term to include\n    ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier\n    pattern with a higher precedence. This makes the SyntaxError for such\n    patterns consistent between Annex-B and non-Annex-B environments.\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n/{2}/;\n"
  ],
  [
    "test262-language--module-code--early-dup-lex",
    "module",
    false,
    "standards",
    "// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-module-semantics-static-semantics-early-errors\ndescription: >\n    It is a Syntax Error if the LexicallyDeclaredNames of ModuleItemList\n    contains any duplicate entries.\nflags: [module]\nfeatures: [let, const]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nlet x;\nconst x = 0;\n"
  ],
  [
    "test262-language--module-code--early-lex-and-var",
    "module",
    false,
    "standards",
    "// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 10.2.1\ndescription: >\n    It is a Syntax Error if any element of the LexicallyDeclaredNames of\n    ModuleItemList also occurs in the VarDeclaredNames of ModuleItemList.\nflags: [module]\nfeatures: [let]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nlet x;\nvar x;\n"
  ],
  [
    "test262-language--module-code--eval-export-dflt-expr-err-eval",
    "module",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: >\n    Abrupt completions resulting from evaluation on AssignmentExpression are\n    forwarded to the runtime.\nesid: sec-moduleevaluation\ninfo: |\n    [...]\n    16. Let result be the result of evaluating module.[[ECMAScriptCode]].\n    [...]\n\n    15.2.3.11 Runtime Semantics: Evaluation\n\n    ExportDeclaration : export default AssignmentExpression;\n\n    [...]\n    1. Let rhs be the result of evaluating AssignmentExpression.\n    2. Let value be ? GetValue(rhs).\n\n    6.2.3.1 GetValue (V)\n\n    1. ReturnIfAbrupt(V).\n    2. If Type(V) is not Reference, return V.\n    3. Let base be GetBase(V).\n    4. If IsUnresolvableReference(V) is true, throw a ReferenceError exception.\nnegative:\n  phase: runtime\n  type: Test262Error\nflags: [module]\n---*/\n\nexport default (function() { throw new Test262Error(); })();\n"
  ],
  [
    "test262-language--module-code--export-expname-from-string",
    "module",
    true,
    "standards",
    "// Copyright (C) 2020 Bradley Farias. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: >\n  ExportFromClause : NamedExports\n  esid: prod-ExportFromClause\ninfo: |\n  ExportFromClause :\n    NamedExports[+From]\n\n  NamedExports[From] :\n    [+From] ModuleExportName\n\n  ModuleExportName : StringLiteral\n\nflags: [module]\nfeatures: [arbitrary-module-namespace-names]\n---*/\nimport * as Scouts from \"./export-expname-from-string.js\";\nexport { \"☿\" } from \"./export-expname_FIXTURE.js\";\n\nassert.sameValue(typeof Scouts[\"☿\"], \"function\");\n"
  ],
  [
    "test262-language--module-code--export-expname-import-unpaired-surrogate",
    "module",
    false,
    "standards",
    "// Copyright (C) 2020 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: >\n  ExportSpecifier : ModuleExportName\n  esid: prod-ExportSpecifier\ninfo: |\n  ModuleExportName : StringLiteral\n\n  It is a Syntax Error if IsStringWellFormedUnicode of the StringValue of\n  StringLiteral is *false*.\nflags: [module]\nfeatures: [arbitrary-module-namespace-names]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nimport { \"\\uD83D\" as foo } from \"./export-expname_FIXTURE.js\";\n"
  ],
  [
    "test262-language--module-code--import-attributes--early-dup-attribute-key-import-nobinding",
    "module",
    false,
    "standards",
    "// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: >\n  WithClause may not have duplicate keys (import declaration without binding)\nesid: sec-modules\ninfo: |\n  WithClause: AttributesKeyword { WithEntries,opt }\n\n  - It is a Syntax Error if WithClauseToAttributes of WithClause has two\n    entries a and b such that a.[[Key]] is b.[[Key]].\nfeatures: [import-attributes]\nflags: [module]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nimport './import-attribute-2_FIXTURE.js' with {\n  type: 'json',\n  'typ\\u0065': ''\n};\n"
  ],
  [
    "test262-language--module-code--namespace--internals--get-sym-not-found",
    "module",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-module-namespace-exotic-objects-get-p-receiver\ndescription: >\n    Behavior of the [[Get]] internal method with a symbol argument that cannot\n    be found\ninfo: |\n    [...]\n    2. If Type(P) is Symbol, then\n       a. Return ? OrdinaryGet(O, P, Receiver).\nflags: [module]\nfeatures: [Symbol]\n---*/\n\nimport * as ns from './get-sym-not-found.js';\n\nassert.sameValue(ns[Symbol('test262')], undefined, 'Symbol: test262');\n"
  ],
  [
    "test262-language--module-code--namespace--internals--has-property-sym-not-found",
    "module",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-module-namespace-exotic-objects-hasproperty-p\ndescription: >\n    Behavior of the [[HasProperty]] internal method with a symbol argument that\n    cannot be found\ninfo: |\n    1. If Type(P) is Symbol, return OrdinaryHasProperty(O, P).\nflags: [module]\nfeatures: [Symbol, Reflect]\n---*/\n\nimport * as ns from './has-property-sym-not-found.js';\nvar sym = Symbol('test262');\n\nassert.sameValue(sym in ns, false, 'in');\nassert.sameValue(Reflect.has(ns, sym), false, 'Reflect.has');\n"
  ],
  [
    "test262-language--module-code--namespace--internals--set",
    "module",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-module-namespace-exotic-objects-set-p-v-receiver\ndescription: The [[Set]] internal method consistently returns `false`\ninfo: |\n    1. Return false.\nflags: [module]\nfeatures: [Reflect, Symbol, Symbol.toStringTag]\n---*/\n\nimport * as ns from './set.js';\nexport var local1 = null;\nvar local2 = null;\nexport { local2 as renamed };\nexport { local1 as indirect } from './set.js';\nvar sym = Symbol('test262');\n\nassert.sameValue(Reflect.set(ns, 'local1'), false, 'Reflect.set: local1');\nassert.throws(TypeError, function() {\n  ns.local1 = null;\n}, 'AssignmentExpression: local1');\n\nassert.sameValue(Reflect.set(ns, 'local2'), false, 'Reflect.set: local2');\nassert.throws(TypeError, function() {\n  ns.local2 = null;\n}, 'AssignmentExpression: local2');\n\nassert.sameValue(Reflect.set(ns, 'renamed'), false, 'Reflect.set: renamed');\nassert.throws(TypeError, function() {\n  ns.renamed = null;\n}, 'AssignmentExpression: renamed');\n\nassert.sameValue(Reflect.set(ns, 'indirect'), false, 'Reflect.set: indirect');\nassert.throws(TypeError, function() {\n  ns.indirect = null;\n}, 'AssignmentExpression: indirect');\n\nassert.sameValue(Reflect.set(ns, 'default'), false, 'Reflect.set: default');\nassert.throws(TypeError, function() {\n  ns.default = null;\n}, 'AssignmentExpression: default');\n\nassert.sameValue(\n  Reflect.set(ns, Symbol.toStringTag),\n  false,\n  'Reflect.set: Symbol.toStringTag'\n);\nassert.throws(TypeError, function() {\n  ns[Symbol.toStringTag] = null;\n}, 'AssignmentExpression: Symbol.toStringTag');\n\nassert.sameValue(Reflect.set(ns, sym), false, 'Reflect.set: sym');\nassert.throws(TypeError, function() {\n  ns[sym] = null;\n}, 'AssignmentExpression: sym');\n"
  ],
  [
    "test262-language--module-code--parse-err-decl-pos-import-class-decl-method-gen-static",
    "module",
    false,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Statement cannot contain an `import` declaration\nesid: sec-modules\nnegative:\n  phase: parse\n  type: SyntaxError\nflags: [module]\nfeatures: [generators]\n---*/\n\n$DONOTEVALUATE();\n\nclass C { static *method() { import v from './decl-pos-import-class-decl-method-gen-static.js'; } }\n"
  ],
  [
    "test262-language--module-code--parse-err-decl-pos-import-labeled",
    "module",
    false,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Statement cannot contain an `import` declaration\nesid: sec-modules\nnegative:\n  phase: parse\n  type: SyntaxError\nflags: [module]\n---*/\n\n$DONOTEVALUATE();\n\ntest262: import v from './decl-pos-import-labeled.js';\n"
  ],
  [
    "test262-language--module-code--parse-err-semi-name-space-export",
    "module",
    false,
    "standards",
    "// Copyright (C) 2018 Valerie Young. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: >\n    \"export NameSpaceExport FromClause\" declarations require a trailing semicolon\n    or LineTerminator\nesid: sec-exports\ninfo: |\n    ExportDeclaration:\n      export * FromClause;\n      export * as IdentifierName FromClause;\n      export NamedExports FromClause;\n      export NamedExports;\n      export VariableStatement\n      export Declaration\n      export default HoistableDeclaration[Default]\n      export default ClassDeclaration[Default]\n      export default [lookahead ∉ { function, class }] AssignmentExpression[In];\nnegative:\n  phase: parse\n  type: SyntaxError\nflags: [module]\nfeatures: [export-star-as-namespace-from-module]\n---*/\n\n$DONOTEVALUATE();\n\nexport * as namespace from './parse-err-semi-name-space-export.js' null;\n"
  ],
  [
    "test262-language--module-code--private-identifiers-not-empty",
    "module",
    false,
    "standards",
    "// Copyright (C) 2019 Caio Lima (Igalia SL). All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-static-semantics-early-errors\ndescription: >\n    ModuleBody : ModuleItemList\n      It is a Syntax Error if AllPrivateIdentifiersValid of ModuleItemList with an empty List as an argument is false.\nflags: [module]\nfeatures: [class-static-fields-private]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nvar x = {};\nx.#f = 'Test262';\n"
  ],
  [
    "test262-language--module-code--privatename-not-valid-earlyerr-module-7",
    "module",
    false,
    "standards",
    "// Copyright (C) 2017 Valerie Young. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-module-semantics-static-semantics-early-errors\ndescription: Early error when referencing privatename on object, outside of class.\ninfo: |\n  Static Semantics: Early Errors\n  Module : ModuleBody\n    It is a Syntax Error if AllPrivateNamesValid of ModuleBody with an empty List as an argument is false.\nfeatures: [class-fields-private]\nflags: [module]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nobj = {};\n\nobj.#x;\n"
  ],
  [
    "test262-language--module-code--top-level-await--dynamic-import-of-waiting-module",
    "script",
    true,
    "standards",
    "// Copyright (C) 2025 Igalia, S.L. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-ContinueDynamicImport\ndescription: >\n  Dynamic import of an ~evaluating-async~ module waits for the module to finish its evaluation\ninfo: |\n  ContinueDynamicImport ( _promiseCapability_, _moduleCompletion_ )\n    1. ...\n    1. Let _module_ be _moduleCompletion_.[[Value]].\n    1. Let _loadPromise_ be _module_.LoadRequestedModules().\n    1. Let _rejectedClosure_ be a new Abstract Closure with parameters (_reason_) that captures _promiseCapability_ and performs the following steps when called:\n      1. Perform ! Call(_promiseCapability_.[[Reject]], *undefined*, « _reason_ »).\n      1. Return ~unused~.\n    1. Let _onRejected_ be CreateBuiltinFunction(_rejectedClosure_, 1, *\"\"*, « »).\n    1. Let _linkAndEvaluateClosure_ be a new Abstract Closure with no parameters that captures _module_, _promiseCapability_, and _onRejected_ and performs the following steps when called:\n      1. Let _link_ be Completion(_module_.Link()).\n      1. ...\n      1. Let _evaluatePromise_ be _module_.Evaluate().\n      1. Let _fulfilledClosure_ be a new Abstract Closure with no parameters that captures _module_ and _promiseCapability_ and performs the following steps when called:\n        1. Let _namespace_ be GetModuleNamespace(_module_).\n        1. Perform ! <emu-meta effects=\"user-code\">Call</emu-meta>(_promiseCapability_.[[Resolve]], *undefined*, « _namespace_ »).\n        1. Return ~unused~.\n      1. Let _onFulfilled_ be CreateBuiltinFunction(_fulfilledClosure_, 0, *\"\"*, « »).\n      1. Perform PerformPromiseThen(_evaluatePromise_, _onFulfilled_, _onRejected_).\n      1. Return ~unused~.\n    1. Let _linkAndEvaluate_ be CreateBuiltinFunction(_linkAndEvaluateClosure_, 0, *\"\"*, « »).\n    1. Perform PerformPromiseThen(_loadPromise_, _linkAndEvaluate_, _onRejected_).\n    1. Return ~unused~.\n\n  _module_ . Evaluate (  )\n    4. If _module_.[[TopLevelCapability]] is not ~empty~, then\n       a. Return _module_.[[TopLevelCapability]].[[Promise]].\n\nflags: [async]\nfeatures: [dynamic-import]\nincludes: [asyncHelpers.js]\n---*/\n\nlet continueExecution;\nglobalThis.promise = new Promise((resolve) => continueExecution = resolve);\n\nconst executionStartPromise = new Promise((resolve) => globalThis.executionStarted = resolve);\n\nasyncTest(async function () {\n  const promiseForNamespace = import(\"./dynamic-import-of-waiting-module_FIXTURE.js\");\n\n  await executionStartPromise;\n\n  const promiseForNamespace2 = import(\"./dynamic-import-of-waiting-module_FIXTURE.js\");\n\n  // We only continue execution of the first fixture file after importing a second,\n  // empty, fixture file. This is so that if the implementation uses a separate\n  // queue to resolve dynamic import promises, if dynamic-import-of-waiting-module_FIXTURE\n  // wasn't waiting on top-level await its top-level promise would already be resolved.\n  await import(\"./dynamic-import-of-waiting-module-2_FIXTURE.js\");\n  continueExecution();\n\n  let secondPromiseResolved = false;\n  await Promise.all([\n    promiseForNamespace.then(() => {\n      assert(!secondPromiseResolved, \"The second import should not resolve before the first one\");\n    }),\n    promiseForNamespace2.then(() => {\n      secondPromiseResolved = true;\n    })\n  ]);\n});\n"
  ],
  [
    "test262-language--module-code--top-level-await--module-import-rejection-tick",
    "module",
    true,
    "standards",
    "// Copyright (C) 2019 Leo Balter. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-moduleevaluation\ndescription: >\n  Evaluate imported rejected module\ninfo: |\n  Table 3: Additional Fields of Cyclic Module Records\n\n  [[Async]]\n\n  ...\n  Having an asynchronous dependency does not make the module asynchronous. This field must not change after the module is parsed.\n\n  Evaluate ( ) Concrete Method\n\n  ...\n  6. Let capability be ! NewPromiseCapability(%Promise%).\n  7. Set module.[[TopLevelCapability]] to capability.\n  8. Let result be InnerModuleEvaluation(module, stack, 0).\n  9. If result is an abrupt completion, then\n    ...\n    d. Perform ! Call(capability.[[Reject]], undefined, «result.[[Value]]»).\n  10. Otherwise,\n    ...\n    b. If module.[[AsyncEvaluating]] is false, then\n      i. Perform ! Call(capability.[[Resolve]], undefined, «undefined»).\n    ...\n  11. Return undefinedcapability.[[Promise]].\n\n  InnerModuleEvaluation( module, stack, index )\n\n  ...\n  14. If module.[[PendingAsyncDependencies]] is > 0, set module.[[AsyncEvaluating]] to true.\n  15. Otherwise, if module.[[Async]] is true, perform ! ExecuteAsyncModule(module).\n  16. Otherwise, perform ? module.ExecuteModule().\n\n  ExecuteAsyncModule ( module )\n\n  1. Assert: module.[[Status]] is \"evaluating\" or \"evaluated\".\n  2. Assert: module.[[Async]] is true.\n  3. Set module.[[AsyncEvaluating]] to true.\n  4. Let capability be ! NewPromiseCapability(%Promise%).\n  5. Let stepsFulfilled be the steps of a CallAsyncModuleFulfilled function as specified below.\n  ...\n  8. Let stepsRejected be the steps of a CallAsyncModuleRejected function as specified below.\n  ...\n  11. Perform ! PerformPromiseThen(capability.[[Promise]], onFulfilled, onRejected).\n  12. Perform ! module.ExecuteModule(capability).\n  13. Return.\n\n  ExecuteModule ( [ capability ] )\n\n  ...\n  11. If module.[[Async]] is false, then\n    a. Assert: capability was not provided.\n    b. Push moduleCxt on to the execution context stack; moduleCxt is now the running execution context.\n    c. Let result be the result of evaluating module.[[ECMAScriptCode]].\n    d. Suspend moduleCxt and remove it from the execution context stack.\n    e. Resume the context that is now on the top of the execution context stack as the running execution context.\n    f. Return Completion(result).\n  12. Otherwise,\n    a. Assert: capability is a PromiseCapability Record.\n    b. Perform ! AsyncBlockStart(capability, module.[[ECMAScriptCode]], moduleCxt).\n    c. Return.\nflags: [module]\nfeatures: [top-level-await]\nnegative:\n  phase: runtime\n  type: RangeError\n---*/\n\nimport foo from './module-import-rejection-tick_FIXTURE.js';\n\nthrow new Test262Error('this should be unreachable');\n"
  ],
  [
    "test262-language--module-code--top-level-await--new-await",
    "module",
    false,
    "standards",
    "// Copyright (C) 2020 Rick Waldron. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: prod-AwaitExpression\ndescription: >\n  await cannot immediately follow new in module code\nnegative:\n  phase: parse\n  type: SyntaxError\nflags: [module]\nfeatures: [top-level-await]\n---*/\n\n$DONOTEVALUATE();\n\nnew await;\n"
  ],
  [
    "test262-language--module-code--top-level-await--syntax--await-expr-dyn-import",
    "module",
    true,
    "standards",
    "// Copyright (C) 2019 Leo Balter. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: >\n  Valid syntax for top level await.\n  AwaitExpression ImportCall\ninfo: |\n  ModuleItem:\n    StatementListItem[~Yield, +Await, ~Return]\n\n  ...\n\n  UnaryExpression[Yield, Await]\n    [+Await]AwaitExpression[?Yield]\n\n  AwaitExpression[Yield]:\n    await UnaryExpression[?Yield, +Await]\n\n  ...\n\n  LeftHandSideExpression[Yield, Await]:\n    NewExpression[?Yield, ?Await]\n    CallExpression[?Yield, ?Await]\n\n  CallExpression[Yield, Await]:\n    ImportCall[?Yield, ?Await]\n\n  ImportCall[Yield, Await]:\n    import ( AssignmentExpression[+In, ?Yield, ?Await] )\nesid: prod-AwaitExpression\nflags: [module]\nfeatures: [top-level-await, dynamic-import]\n---*/\n\ntry {\n  await import('foo');\n} catch (e) {\n  // Ignore errors, we are just checking if the syntax is valid and\n  // we should not worry if a module was loaded.\n}\n"
  ],
  [
    "test262-language--module-code--top-level-await--syntax--early-does-not-propagate-to-fn-declaration-params",
    "module",
    false,
    "standards",
    "// Copyright (C) 2019 Leo Balter. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: >\n  The Await capability does not propagate to the parameters of a function declaration\ninfo: |\n  ModuleItem:\n    StatementListItem[~Yield, +Await, ~Return]\n\n  StatementListItem[Yield, Await, Return]:\n    Statement[?Yield, ?Await, ?Return]\n    Declaration[?Yield, ?Await]\n\n  Declaration[Yield, Await]:\n    HoistableDeclaration[?Yield, ?Await, ~Default]\n    ClassDeclaration[?Yield, ?Await, ~Default]\n    LexicalDeclaration[+In, ?Yield, ?Await]\n\n  HoistableDeclaration[Yield, Await, Default]:\n    FunctionDeclaration[?Yield, ?Await, ?Default]\n    GeneratorDeclaration[?Yield, ?Await, ?Default]\n    AsyncFunctionDeclaration[?Yield, ?Await, ?Default]\n    AsyncGeneratorDeclaration[?Yield, ?Await, ?Default]\n\n  FunctionDeclaration[Yield, Await, Default]:\n    function BindingIdentifier[?Yield, ?Await] ( FormalParameters[~Yield, ~Await] ) { FunctionBody[~Yield, ~Await] }\nnegative:\n  phase: parse\n  type: SyntaxError\nesid: prod-ModuleItem\nflags: [module]\nfeatures: [top-level-await]\n---*/\n\n$DONOTEVALUATE();\n\nfunction fn(x = await 1) {\n  return x;\n}\n"
  ],
  [
    "test262-language--module-code--top-level-await--syntax--export-class-decl-await-expr-obj-literal",
    "module",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/top-level-await/await-expr-obj-literal.case\n// - src/top-level-await/syntax/export-class-decl.template\n/*---\ndescription: AwaitExpression ObjectLiteral (Valid syntax for top level await in export ClassDeclaration)\nesid: prod-AwaitExpression\nfeatures: [top-level-await, class]\nflags: [generated, module]\ninfo: |\n    ModuleItem:\n      StatementListItem[~Yield, +Await, ~Return]\n\n    ...\n\n    UnaryExpression[Yield, Await]\n      [+Await]AwaitExpression[?Yield]\n\n    AwaitExpression[Yield]:\n      await UnaryExpression[?Yield, +Await]\n\n    ...\n\n    ExportDeclaration:\n      export * FromClause ;\n      export ExportClause FromClause ;\n      export ExportClause ;\n      export VariableStatement[~Yield, +Await]\n      export Declaration[~Yield, +Await]\n      export defaultHoistableDeclaration[~Yield, +Await, +Default]\n      export defaultClassDeclaration[~Yield, +Await, +Default]\n      export default[lookahead ∉ { function, async [no LineTerminator here] function, class }]AssignmentExpression[+In, ~Yield, ~Await];\n\n    Declaration[Yield, Await]:\n      HoistableDeclaration[?Yield, ?Await, ~Default]\n      ClassDeclaration[?Yield, ?Await, ~Default]\n      LexicalDeclaration[+In, ?Yield, ?Await]\n\n    ClassDeclaration[Yield, Await, Default]:\n      classBindingIdentifier[?Yield, ?Await] ClassTail[?Yield, ?Await]\n      [+Default] class ClassTail[?Yield, ?Await]\n\n    ClassTail[Yield, Await]:\n      ClassHeritage[?Yield, ?Await]_opt { ClassBody[?Yield, ?Await]_opt }\n\n\n    PrimaryExpression[Yield, Await]:\n      this\n      IdentifierReference[?Yield, ?Await]\n      Literal\n      ArrayLiteral[?Yield, ?Await]\n      ObjectLiteral[?Yield, ?Await]\n      FunctionExpression\n      ClassExpression[?Yield, ?Await]\n      GeneratorExpression\n      AsyncFunctionExpression\n      AsyncGeneratorExpression\n      RegularExpressionLiteral\n      TemplateLiteral[?Yield, ?Await, ~Tagged]\n      CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]\n\n---*/\n\n\nfunction fn() {\n  return function() {};\n}\n// extends CallExpression with arguments\nexport class C extends fn(await { function() {} }) {};\n"
  ],
  [
    "test262-language--punctuators--S7.7_A2_T7",
    "script",
    false,
    "standards",
    "// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: |\n    Punctuator cannot be expressed as a Unicode escape sequence consisting of\n    six characters, namely \\u plus four hexadecimal digits\nes5id: 7.7_A2_T7\ndescription: Try to use + as a Unicode \\u002B\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n1\\u002B2;\n"
  ],
  [
    "test262-language--reserved-words--ident-reference-null-escaped",
    "script",
    false,
    "standards",
    "// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-identifiers-static-semantics-early-errors\ndescription: >\n  `false` is a reserved word and cannot be used as an identifier reference.\ninfo: |\n  Identifier : IdentifierName but not ReservedWord\n\n  It is a Syntax Error if StringValue of IdentifierName is the same String\n  value as the StringValue of any ReservedWord except for yield.\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nnul\\u006c = 0;\n"
  ],
  [
    "test262-language--rest-parameters--position-invalid",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2014 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 14.1\ndescription: >\n    Rest parameter cannot be followed by another named parameter\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\nfunction f(a, ...b, c) {}\n"
  ],
  [
    "test262-language--rest-parameters--with-new-target",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2014 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 14.1\ndescription: >\n    with new target\nincludes: [compareArray.js]\n---*/\nclass Base {\n  constructor(...a) {\n    assert.sameValue(\n      arguments.length,\n      a.length,\n      \"The value of `arguments.length` is `a.length`\"\n    );\n    this.base = a;\n    var args = [];\n    for (var i = 0; i < arguments.length; ++i) {\n      args.push(arguments[i]);\n    }\n    assert.compareArray(args, a);\n  }\n}\nclass Child extends Base {\n  constructor(...b) {\n    super(1, 2, 3);\n    assert.sameValue(\n      arguments.length,\n      b.length,\n      \"The value of `arguments.length` is `b.length`\"\n    );\n    this.child = b;\n    var args = [];\n    for (var i = 0; i < arguments.length; ++i) {\n      args.push(arguments[i]);\n    }\n    assert.compareArray(args, b);\n  }\n}\n\nvar c = new Child(1, 2, 3);\n\nassert.sameValue(c.child.length, 3, \"The value of `c.child.length` is `3`\");\nassert.sameValue(c.base.length, 3, \"The value of `c.base.length` is `3`\");\n\nassert.compareArray(\n  c.child,\n  [1, 2, 3]\n);\nassert.compareArray(\n  c.base,\n  [1, 2, 3]\n);\n"
  ],
  [
    "test262-language--statements--async-function--let-newline-await-in-async-function",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 Mozilla Corporation. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Jeff Walden <jwalden+code@mit.edu>\nesid: sec-let-and-const-declarations\ndescription: >\n  `let await` does not permit ASI in between, as `await` is a BindingIdentifier\ninfo: |\n  `await` is a perfectly cromulent binding name in any context grammatically, just\n  prohibited by static semantics in some contexts.  Therefore ASI can never apply\n  between `let` (where a LexicalDeclaration is permitted) and `await`,\n  so a subsequent `0` where `=` was expected is a syntax error.\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nasync function f() {\n    let\n    await 0;\n}\n"
  ],
  [
    "test262-language--statements--async-function--try-throw-finally-reject",
    "script",
    true,
    "standards",
    "// Copyright 2017 Caitlin Potter. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Caitlin Potter <caitp@igalia.com>\nesid: pending\ndescription: >\n  Implementations must defer rejecting an async function's Promise until after\n  all finally blocks have been evaluated.\nflags: [async]\n---*/\n\nasync function f() {\n  try {\n    throw \"early-throw\";\n  } finally {\n    await new Promise(function(resolve, reject) {\n      reject(\"override\");\n    });\n  }\n}\n\nf().then($DONE, function(value) {\n  assert.sameValue(value, \"override\", \"Awaited rejection in finally block\");\n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--async-function--unscopables-with",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/unscopables-with.case\n// - src/function-forms/default/async-func-decl.template\n/*---\ndescription: Symbol.unscopables behavior across scope boundaries (async function declaration)\nesid: sec-async-function-definitions\nfeatures: [globalThis, Symbol.unscopables, async-functions]\nflags: [generated, noStrict, async]\ninfo: |\n    14.6 Async Function Definitions\n\n    AsyncFunctionDeclaration :\n      async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n\n    ...\n    Let envRec be lex's EnvironmentRecord.\n    Let exists be ? envRec.HasBinding(name).\n\n    HasBinding\n\n    ...\n    If the withEnvironment flag of envRec is false, return true.\n    Let unscopables be ? Get(bindings, @@unscopables).\n    If Type(unscopables) is Object, then\n       Let blocked be ToBoolean(? Get(unscopables, N)).\n       If blocked is true, return false.\n\n    (The `with` Statement) Runtime Semantics: Evaluation\n\n    ...\n    Set the withEnvironment flag of newEnv’s EnvironmentRecord to true.\n    ...\n\n---*/\nlet count = 0;\nvar v = 1;\nglobalThis[Symbol.unscopables] = {\n  v: true,\n};\n\n{\n  count++;\n\n\nvar callCount = 0;\n\n// Stores a reference `ref` for case evaluation\nasync function ref(x) {\n  count++;\n  with (globalThis) {\n    count++;\n    assert.sameValue(v, undefined, 'The value of `v` is expected to equal `undefined`');\n  }\n  count++;\n  var v = x;\n  with (globalThis) {\n    count++;\n    assert.sameValue(v, 10, 'The value of `v` is 10');\n    v = 20;\n  }\n  assert.sameValue(v, 20, 'The value of `v` is 20');\n  assert.sameValue(globalThis.v, 1, 'The value of globalThis.v is 1');\n  callCount = callCount + 1;\n}\n\nref(10).then(() => {\n    assert.sameValue(callCount, 1, 'function invoked exactly once');\n}).then($DONE, $DONE);\n\n  count++;\n}\nassert.sameValue(count, 6, 'The value of `count` is 6');\n"
  ],
  [
    "test262-language--statements--async-generator--array-destructuring-param-strict-body",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/array-destructuring-param-strict-body.case\n// - src/function-forms/syntax/async-gen-func-decl.template\n/*---\ndescription: ArrayBindingPattern and Use Strict Directive are not allowed to coexist for the same function. (async generator function declaration)\nesid: sec-asyncgenerator-definitions-instantiatefunctionobject\nfeatures: [rest-parameters, async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    AsyncGeneratorDeclaration : async [no LineTerminator here] function * BindingIdentifier\n        ( FormalParameters ) { AsyncGeneratorBody }\n\n        [...]\n        3. Let F be ! AsyncGeneratorFunctionCreate(Normal, FormalParameters, AsyncGeneratorBody,\n            scope, strict).\n        [...]\n\n\n    13.3.3.4 Static Semantics: IsSimpleParameterList\n\n    BindingElement : BindingPattern\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\n\nasync function* f([element]) {\n  \"use strict\";\n}\n"
  ],
  [
    "test262-language--statements--async-generator--await-as-label-identifier-escaped",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-generators/await-as-label-identifier-escaped.case\n// - src/async-generators/syntax/async-declaration.template\n/*---\ndescription: await is a reserved keyword within generator function bodies and may not be used as a label identifier. (Async generator Function declaration)\nesid: prod-AsyncGeneratorDeclaration\nfeatures: [async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Async Generator Function Definitions\n\n    AsyncGeneratorDeclaration:\n      async [no LineTerminator here] function * BindingIdentifier ( FormalParameters ) {\n        AsyncGeneratorBody }\n\n\n    LabelIdentifier : Identifier\n\n    It is a Syntax Error if this production has a [Await] parameter and\n    StringValue of Identifier is \"await\".\n\n---*/\n$DONOTEVALUATE();\n\n\nasync function *gen() {\n  \\u0061wait: ;\n}\n"
  ],
  [
    "test262-language--statements--async-generator--dstr--dflt-ary-ptrn-rest-not-final-ary",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case\n// - src/dstr-binding/default/async-gen-func-decl-dflt.template\n/*---\ndescription: Rest element (array binding pattern) may not be followed by any element (async generator function declaration (default parameter))\nesid: sec-asyncgenerator-definitions-instantiatefunctionobject\nfeatures: [async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    AsyncGeneratorDeclaration : async [no LineTerminator here] function * BindingIdentifier\n        ( FormalParameters ) { AsyncGeneratorBody }\n\n        [...]\n        3. Let F be ! AsyncGeneratorFunctionCreate(Normal, FormalParameters, AsyncGeneratorBody,\n            scope, strict).\n        [...]\n\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\n\nvar callCount = 0;\nasync function* f([...[x], y] = [1, 2, 3]) {\n  \n  callCount = callCount + 1;\n};\nf().next().then(() => {\n    assert.sameValue(callCount, 1, 'invoked exactly once');\n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--async-generator--forbidden-ext--b1--async-gen-func-decl-forbidden-ext-direct-access-prop-arguments",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-direct-access-prop-arguments.case\n// - src/function-forms/forbidden-extensions/bullet-one/async-gen-func-decl.template\n/*---\ndescription: Forbidden extension, f.arguments (async generator function declaration)\nesid: sec-asyncgenerator-definitions-instantiatefunctionobject\nfeatures: [arrow-function, async-functions, async-iteration]\nflags: [generated, noStrict, async]\ninfo: |\n    AsyncGeneratorDeclaration : async [no LineTerminator here] function * BindingIdentifier\n        ( FormalParameters ) { AsyncGeneratorBody }\n\n\n    ECMAScript function objects defined using syntactic constructors in strict mode code must\n    not be created with own properties named \"caller\" or \"arguments\". Such own properties also\n    must not be created for function objects defined using an ArrowFunction, MethodDefinition,\n    GeneratorDeclaration, GeneratorExpression, AsyncGeneratorDeclaration, AsyncGeneratorExpression,\n    ClassDeclaration, ClassExpression, AsyncFunctionDeclaration, AsyncFunctionExpression, or\n    AsyncArrowFunction regardless of whether the definition is contained in strict mode code.\n    Built-in functions, strict functions created using the Function constructor, generator functions\n    created using the Generator constructor, async functions created using the AsyncFunction\n    constructor, and functions created using the bind method also must not be created with such own\n    properties.\n\n---*/\n\n\nvar callCount = 0;\nasync function* f() {\n  assert.sameValue(f.hasOwnProperty(\"arguments\"), false);\n  callCount++;\n}\n\nf().next()\n  .then(() => {\n    assert.sameValue(callCount, 1, 'function body evaluated');\n  }, $DONE).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--async-generator--yield-star-getiter-async-not-callable-boolean-throw",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-star-getiter-async-not-callable-boolean-throw.case\n// - src/async-generators/default/async-declaration.template\n/*---\ndescription: Throws a TypeError on a non-callable [Symbol.asyncIterator] (boolean) (Async generator Function declaration)\nesid: prod-AsyncGeneratorDeclaration\nfeatures: [Symbol.iterator, Symbol.asyncIterator, async-iteration]\nflags: [generated, async]\ninfo: |\n    Async Generator Function Definitions\n\n    AsyncGeneratorDeclaration:\n      async [no LineTerminator here] function * BindingIdentifier ( FormalParameters ) {\n        AsyncGeneratorBody }\n\n\n    YieldExpression: yield * AssignmentExpression\n\n    1. Let exprRef be the result of evaluating AssignmentExpression.\n    2. Let value be ? GetValue(exprRef).\n    3. Let generatorKind be ! GetGeneratorKind().\n    4. Let iterator be ? GetIterator(value, generatorKind).\n    ...\n\n    GetIterator ( obj [ , hint ] )\n\n    ...\n    3. If hint is async,\n      a. Set method to ? GetMethod(obj, @@asyncIterator).\n    ...\n\n    GetMethod ( V, P )\n\n    ...\n    2. Let func be ? GetV(V, P).\n    3. If func is either undefined or null, return undefined.\n    4. If IsCallable(func) is false, throw a TypeError exception.\n    ...\n\n---*/\nvar obj = {\n  get [Symbol.iterator]() {\n    throw new Test262Error('it should not get Symbol.iterator');\n  },\n  [Symbol.asyncIterator]: false\n};\n\n\n\nvar callCount = 0;\n\nasync function *gen() {\n  callCount += 1;\n  yield* obj;\n    throw new Test262Error('abrupt completion closes iter');\n\n}\n\nvar iter = gen();\n\niter.next().then(() => {\n  throw new Test262Error('Promise incorrectly fulfilled.');\n}, v => {\n  assert.sameValue(v.constructor, TypeError, \"TypeError\");\n\n  iter.next().then(({ done, value }) => {\n    assert.sameValue(done, true, 'the iterator is completed');\n    assert.sameValue(value, undefined, 'value is undefined');\n  }).then($DONE, $DONE);\n}).catch($DONE);\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--statements--block--early-errors--invalid-names-call-expression-bad-reference",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/invalid-private-names/call-expression-bad-reference.case\n// - src/invalid-private-names/default/block.template\n/*---\ndescription: bad reference in call expression (Invalid private names should throw a SyntaxError, block statement)\nesid: sec-static-semantics-early-errors\nfeatures: [class-fields-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ScriptBody:StatementList\n      It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List\n      as an argument is false unless the source code is eval code that is being\n      processed by a direct eval.\n\n    ModuleBody:ModuleItemList\n      It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List\n      as an argument is false.\n\n\n    Static Semantics: AllPrivateNamesValid\n\n    MemberExpression : MemberExpression . PrivateName\n\n    1. If StringValue of PrivateName is in names, return true.\n    2. Return false.\n\n    CallExpression : CallExpression . PrivateName\n\n    1. If StringValue of PrivateName is in names, return true.\n    2. Return false.\n\n---*/\n\n\n$DONOTEVALUATE();\n\n{ (() => {})().#x }\n"
  ],
  [
    "test262-language--statements--break--static-init-without-label",
    "script",
    false,
    "standards",
    "// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-break-statement\ndescription: IterationStatement search does not traverse static initialization block boundaries (no label specified)\ninfo: |\n  4.2.1 Static Semantics: Early Errors\n  BreakStatement : break ;\n\n  - It is a Syntax Error if this BreakStatement is not nested, directly or\n    indirectly (but not crossing function or static initialization block\n    boundaries), within an IterationStatement or a SwitchStatement.\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [class-static-block]\n---*/\n\n$DONOTEVALUATE();\n\nlabel: while(false) {\n  class C {\n    static {\n      break;\n    }\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--async-gen-meth-escaped-async",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-grammar-notation\ndescription: >\n  The `async` contextual keyword must not contain Unicode escape sequences.\ninfo: |\n  Terminal symbols are shown\n  in fixed width font, both in the productions of the grammars and throughout this\n  specification whenever the text directly refers to such a terminal symbol. These\n  are to appear in a script exactly as written. All terminal symbol code points\n  specified in this way are to be understood as the appropriate Unicode code points\n  from the Basic Latin range, as opposed to any similar-looking code points from\n  other Unicode ranges.\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [async-iteration]\n---*/\n\n$DONOTEVALUATE();\n\nclass C {\n    \\u0061sync* m(){}\n};\n"
  ],
  [
    "test262-language--statements--class--async-gen-method--await-as-label-identifier-escaped",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/async-generators/await-as-label-identifier-escaped.case\n// - src/async-generators/syntax/async-class-decl-method.template\n/*---\ndescription: await is a reserved keyword within generator function bodies and may not be used as a label identifier. (Async Generator method as a ClassDeclaration element)\nesid: prod-AsyncGeneratorMethod\nfeatures: [async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      MethodDefinition\n\n    MethodDefinition :\n      AsyncGeneratorMethod\n\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    LabelIdentifier : Identifier\n\n    It is a Syntax Error if this production has a [Await] parameter and\n    StringValue of Identifier is \"await\".\n\n---*/\n$DONOTEVALUATE();\n\n\nclass C { async *gen() {\n    \\u0061wait: ;\n}}\n"
  ],
  [
    "test262-language--statements--class--async-gen-method--params-trailing-comma-single",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/params-trailing-comma-single.case\n// - src/function-forms/default/cls-decl-async-gen-meth.template\n/*---\ndescription: A trailing comma should not increase the respective length, using a single parameter (class declaration async generator method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [async-iteration]\nflags: [generated, async]\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n\n    Trailing comma in the parameters list\n\n    14.1 Function Definitions\n\n    FormalParameters[Yield, Await] : FormalParameterList[?Yield, ?Await] ,\n---*/\n\nvar callCount = 0;\nclass C {\n  async *method(a,) {\n    assert.sameValue(a, 42);\n    callCount = callCount + 1;\n  }\n}\n\n// Stores a reference `ref` for case evaluation\nvar ref = C.prototype.method;\n\nref(42, 39).next().then(() => {\n    assert.sameValue(callCount, 1, 'method invoked exactly once');\n}).then($DONE, $DONE);\n\nassert.sameValue(ref.length, 1, 'length is properly set');\n"
  ],
  [
    "test262-language--statements--class--async-gen-method--rest-param-strict-body",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/rest-param-strict-body.case\n// - src/function-forms/syntax/cls-decl-async-gen-meth.template\n/*---\ndescription: RestParameter and Use Strict Directive are not allowed to coexist for the same function. (class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [rest-parameters, async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n\n    14.1.13 Static Semantics: IsSimpleParameterList\n\n    FormalParameters : FormalParameterList , FunctionRestParameter\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\nclass C {\n  async *method(a,...rest) {\n    \"use strict\";\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--async-gen-method--yield-star-sync-throw",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/async-generators/yield-star-sync-throw.case\n// - src/async-generators/default/async-class-decl-method.template\n/*---\ndescription: execution order for yield* with sync iterator and throw() (Async Generator method as a ClassDeclaration element)\nesid: prod-AsyncGeneratorMethod\nfeatures: [Symbol.iterator, async-iteration]\nflags: [generated, async]\ninfo: |\n    ClassElement :\n      MethodDefinition\n\n    MethodDefinition :\n      AsyncGeneratorMethod\n\n    Async Generator Function Definitions\n\n    AsyncGeneratorMethod :\n      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n\n    YieldExpression: yield * AssignmentExpression\n\n    ...\n    6. Repeat\n      ...\n      b. Else if received.[[Type]] is throw, then\n        i. Let throw be ? GetMethod(iterator, \"throw\").\n        ii. If throw is not undefined, then\n          1. Let innerResult be ? Call(throw, iterator, « received.[[Value]] »).\n          2. If generatorKind is async, then set innerResult to\n             ? Await(innerResult).\n          ...\n          5. Let done be ? IteratorComplete(innerResult).\n          6. If done is true, then\n            a. Return ? IteratorValue(innerResult).\n          7. Let received be GeneratorYield(innerResult).\n      ...\n\n    %AsyncFromSyncIteratorPrototype%.throw ( value )\n\n    ...\n    5. Let throw be GetMethod(syncIterator, \"throw\").\n    ...\n    8. Let throwResult be Call(throw, syncIterator, « value »).\n    ...\n    11. Let throwValue be IteratorValue(throwResult).\n    ...\n    13. Let throwDone be IteratorComplete(throwResult).\n    ...\n    16. Perform ! Call(valueWrapperCapability.[[Resolve]], undefined,\n        « throwValue »).\n    ...\n    18. Set onFulfilled.[[Done]] to throwDone.\n    19. Perform ! PerformPromiseThen(valueWrapperCapability.[[Promise]],\n        onFulfilled, undefined, promiseCapability).\n    ...\n\n---*/\nvar log = [];\nvar obj = {\n  [Symbol.iterator]() {\n    var throwCount = 0;\n    return {\n      name: \"syncIterator\",\n      get next() {\n        log.push({ name: \"get next\" });\n        return function() {\n          return {\n            value: \"next-value-1\",\n            done: false\n          };\n        };\n      },\n      get throw() {\n        log.push({\n          name: \"get throw\",\n          thisValue: this\n        });\n        return function() {\n          log.push({\n            name: \"call throw\",\n            thisValue: this,\n            args: [...arguments]\n          });\n\n          throwCount++;\n          if (throwCount == 1) {\n            return {\n              name: \"throw-result-1\",\n              get value() {\n                log.push({\n                  name: \"get throw value (1)\",\n                  thisValue: this\n                });\n                return \"throw-value-1\";\n              },\n              get done() {\n                log.push({\n                  name: \"get throw done (1)\",\n                  thisValue: this\n                });\n                return false;\n              }\n            };\n          }\n\n          return {\n            name: \"throw-result-2\",\n            get value() {\n              log.push({\n                name: \"get throw value (2)\",\n                thisValue: this\n              });\n              return \"throw-value-2\";\n            },\n            get done() {\n              log.push({\n                name: \"get throw done (2)\",\n                thisValue: this\n              });\n              return true;\n            }\n          };\n        };\n      }\n    };\n  }\n};\n\n\n\nvar callCount = 0;\n\nclass C { async *gen() {\n    callCount += 1;\n    log.push({ name: \"before yield*\" });\n      var v = yield* obj;\n      log.push({\n        name: \"after yield*\",\n        value: v\n      });\n      return \"return-value\";\n\n}}\n\nvar gen = C.prototype.gen;\n\nvar iter = gen();\n\nassert.sameValue(log.length, 0, \"log.length\");\n\niter.next().then(v => {\n  assert.sameValue(log[0].name, \"before yield*\");\n\n  assert.sameValue(log[1].name, \"get next\");\n\n  assert.sameValue(v.value, \"next-value-1\");\n  assert.sameValue(v.done, false);\n\n  assert.sameValue(log.length, 2, \"log.length\");\n\n  iter.throw(\"throw-arg-1\").then(v => {\n    assert.sameValue(log[2].name, \"get throw\");\n    assert.sameValue(log[2].thisValue.name, \"syncIterator\", \"get throw thisValue\");\n\n    assert.sameValue(log[3].name, \"call throw\");\n    assert.sameValue(log[3].thisValue.name, \"syncIterator\", \"throw thisValue\");\n    assert.sameValue(log[3].args.length, 1, \"throw args.length\");\n    assert.sameValue(log[3].args[0], \"throw-arg-1\", \"throw args[0]\");\n\n    assert.sameValue(log[4].name, \"get throw done (1)\");\n    assert.sameValue(log[4].thisValue.name, \"throw-result-1\", \"get throw done thisValue\");\n\n    assert.sameValue(log[5].name, \"get throw value (1)\");\n    assert.sameValue(log[5].thisValue.name, \"throw-result-1\", \"get throw value thisValue\");\n\n    assert.sameValue(v.value, \"throw-value-1\");\n    assert.sameValue(v.done, false);\n\n    assert.sameValue(log.length, 6, \"log.length\");\n\n    iter.throw().then(v => {\n      assert.sameValue(log[6].name, \"get throw\");\n      assert.sameValue(log[6].thisValue.name, \"syncIterator\", \"get throw thisValue\");\n\n      assert.sameValue(log[7].name, \"call throw\");\n      assert.sameValue(log[7].thisValue.name, \"syncIterator\", \"throw thisValue\");\n      assert.sameValue(log[7].args.length, 1, \"throw args.length\");\n      assert.sameValue(log[7].args[0], undefined, \"throw args[0]\");\n\n      assert.sameValue(log[8].name, \"get throw done (2)\");\n      assert.sameValue(log[8].thisValue.name, \"throw-result-2\", \"get throw done thisValue\");\n\n      assert.sameValue(log[9].name, \"get throw value (2)\");\n      assert.sameValue(log[9].thisValue.name, \"throw-result-2\", \"get throw value thisValue\");\n\n      assert.sameValue(log[10].name, \"after yield*\");\n      assert.sameValue(log[10].value, \"throw-value-2\");\n\n      assert.sameValue(v.value, \"return-value\");\n      assert.sameValue(v.done, true);\n\n      assert.sameValue(log.length, 11, \"log.length\");\n    }).then($DONE, $DONE);\n  }).catch($DONE);\n}).catch($DONE);\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--statements--class--async-gen-method-static--object-destructuring-param-strict-body",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/object-destructuring-param-strict-body.case\n// - src/function-forms/syntax/cls-decl-async-gen-meth-static.template\n/*---\ndescription: ObjectBindingPattern and Use Strict Directive are not allowed to coexist for the same function. (static class expression generator method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [rest-parameters, async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n\n    13.3.3.4 Static Semantics: IsSimpleParameterList\n\n    BindingElement : BindingPattern\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\n\nclass C {\n  static async *method({property}) {\n    \"use strict\";\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--async-method--array-destructuring-param-strict-body",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/array-destructuring-param-strict-body.case\n// - src/function-forms/syntax/cls-decl-async-meth.template\n/*---\ndescription: ArrayBindingPattern and Use Strict Directive are not allowed to coexist for the same function. (class declaration async method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [rest-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncMethod is strict mode code, let strict be true. Otherwise\n       let strict be false.\n    4. Let scope be the LexicalEnvironment of the running execution context.\n    5. Let closure be ! AsyncFunctionCreate(Method, UniqueFormalParameters, AsyncFunctionBody,\n       scope, strict).\n    [...]\n\n\n    13.3.3.4 Static Semantics: IsSimpleParameterList\n\n    BindingElement : BindingPattern\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\n\nclass C {\n  async method([element]) {\n    \"use strict\";\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--async-method--await-as-label-identifier",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-functions/await-as-label-identifier.case\n// - src/async-functions/syntax/async-class-decl-method.template\n/*---\ndescription: await is a reserved keyword within generator function bodies and may not be used as a label identifier. (Async method as a ClassDeclaration element)\nesid: prod-AsyncMethod\nfeatures: [async-functions]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      MethodDefinition\n\n    MethodDefinition :\n      AsyncMethod\n\n    Async Function Definitions\n\n    AsyncMethod :\n      async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n\n    LabelIdentifier : Identifier\n\n    It is a Syntax Error if this production has a [Await] parameter and\n    StringValue of Identifier is \"await\".\n\n---*/\n$DONOTEVALUATE();\n\n\nclass C {\n  async method() {\n    await: ;\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--async-method-static--await-as-label-identifier",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/async-functions/await-as-label-identifier.case\n// - src/async-functions/syntax/async-class-decl-static-method.template\n/*---\ndescription: await is a reserved keyword within generator function bodies and may not be used as a label identifier. (Static async method as a ClassDeclaration element)\nesid: prod-AsyncMethod\nfeatures: [async-functions]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      static MethodDefinition\n\n    MethodDefinition :\n      AsyncMethod\n\n    Async Function Definitions\n\n    AsyncMethod :\n      async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n\n    LabelIdentifier : Identifier\n\n    It is a Syntax Error if this production has a [Await] parameter and\n    StringValue of Identifier is \"await\".\n\n---*/\n$DONOTEVALUATE();\n\n\nclass C {\n  static async method() {\n    await: ;\n  }\n}\n\n"
  ],
  [
    "test262-language--statements--class--async-method-static--dflt-params-duplicates",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-duplicates.case\n// - src/function-forms/syntax/cls-decl-async-meth-static.template\n/*---\ndescription: It is a Syntax Error if BoundNames of FormalParameters contains any duplicate elements. (static class declaration async method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncMethod is strict mode code, let strict be true. Otherwise\n       let strict be false.\n    4. Let scope be the LexicalEnvironment of the running execution context.\n    5. Let closure be ! AsyncFunctionCreate(Method, UniqueFormalParameters, AsyncFunctionBody,\n       scope, strict).\n    [...]\n\n    14.1.2 Static Semantics: Early Errors\n\n    StrictFormalParameters : FormalParameters\n\n    - It is a Syntax Error if BoundNames of FormalParameters contains any\n      duplicate elements.\n\n    FormalParameters : FormalParameterList\n\n    - It is a Syntax Error if IsSimpleParameterList of FormalParameterList is\n      false and BoundNames of FormalParameterList contains any duplicate\n      elements.\n\n---*/\n$DONOTEVALUATE();\n\n\nclass C {\n  static async method(x = 0, x) {\n    \n  }\n}\n"
  ],
  [
    "test262-language--statements--class--async-method-static--forbidden-ext--b2--cls-decl-async-meth-static-forbidden-ext-indirect-access-own-prop-caller-value",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-indirect-access-own-prop-caller-value.case\n// - src/function-forms/forbidden-extensions/bullet-two/cls-decl-async-meth-static.template\n/*---\ndescription: Forbidden extension, o.caller (static class declaration async method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [arrow-function, async-functions, class]\nflags: [generated, noStrict, async]\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n\n    If an implementation extends any function object with an own property named \"caller\" the value of\n    that property, as observed using [[Get]] or [[GetOwnProperty]], must not be a strict function\n    object. If it is an accessor property, the function that is the value of the property's [[Get]]\n    attribute must never return a strict function when called.\n\n---*/\nvar CALLER_OWN_PROPERTY_DOES_NOT_EXIST = Symbol();\nfunction inner() {\n  // This property may exist, but is forbidden from having a value that is a strict function object\n  return inner.hasOwnProperty(\"caller\")\n    ? inner.caller\n    : CALLER_OWN_PROPERTY_DOES_NOT_EXIST;\n}\n\n\nvar callCount = 0;\nclass C {\n  static async method() {\n    /* implicit strict */\n    // This and the following conditional value is set in the test's .case file.\n    // For every test that has a \"true\" value here, there is a\n    // corresponding test that has a \"false\" value here.\n    // They are generated from two different case files, which use\n    let descriptor = Object.getOwnPropertyDescriptor(inner, \"caller\");\n    if (descriptor && descriptor.configurable && true) {\n      Object.defineProperty(inner, \"caller\", {value: 1});\n    }\n    var result = inner();\n    if (descriptor && descriptor.configurable && true) {\n      assert.sameValue(result, 1, 'If this test defined an own \"caller\" property on the inner function, then it should be accessible and should return the value it was set to.');\n    }\n\n    // \"CALLER_OWN_PROPERTY_DOES_NOT_EXIST\" is from\n    // forbidden-ext-indirect-access-prop-caller.case\n    //\n    // If the function object \"inner\" has an own property\n    // named \"caller\", then its value will be returned.\n    //\n    // If the function object \"inner\" DOES NOT have an\n    // own property named \"caller\", then the symbol\n    // CALLER_OWN_PROPERTY_DOES_NOT_EXIST will be returned.\n    if (result !== CALLER_OWN_PROPERTY_DOES_NOT_EXIST) {\n      assert.notSameValue(result, this.method);\n    }\n    callCount++;\n  }\n}\n\nC.method()\n  .then(() => {\n    assert.sameValue(callCount, 1, 'function body evaluated');\n  }, $DONE).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--class--async-method-static--rest-params-trailing-comma-early-error",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/rest-params-trailing-comma-early-error.case\n// - src/function-forms/syntax/cls-decl-async-meth-static.template\n/*---\ndescription: It's a syntax error if a FunctionRestParameter is followed by a trailing comma (static class declaration async method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncMethod is strict mode code, let strict be true. Otherwise\n       let strict be false.\n    4. Let scope be the LexicalEnvironment of the running execution context.\n    5. Let closure be ! AsyncFunctionCreate(Method, UniqueFormalParameters, AsyncFunctionBody,\n       scope, strict).\n    [...]\n\n    Trailing comma in the parameters list\n\n    14.1 Function Definitions\n\n    FormalParameters[Yield, Await] :\n        [empty]\n        FunctionRestParameter[?Yield, ?Await]\n        FormalParameterList[?Yield, ?Await]\n        FormalParameterList[?Yield, ?Await] ,\n        FormalParameterList[?Yield, ?Await] , FunctionRestParameter[?Yield, ?Await]\n---*/\n$DONOTEVALUATE();\n\n\nclass C {\n  static async method(...a,) {\n    \n  }\n}\n"
  ],
  [
    "test262-language--statements--class--class-name-ident-static",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2018 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-class-definitions\ndescription: >\n  `static` is not a valid class-name identifier.\ninfo: |\n  12.1.1 Static Semantics: Early Errors\n\n  Identifier : IdentifierName but not ReservedWord\n\n  It is a Syntax Error if this phrase is contained in strict mode code and the\n  StringValue of IdentifierName is: \"implements\", \"interface\", \"let\", \"package\",\n  \"private\", \"protected\", \"public\", \"static\", or \"yield\".\n\n  10.2.1 Strict Mode Code\n\n  All parts of a ClassDeclaration or a ClassExpression are strict mode code.\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nclass static {}\n"
  ],
  [
    "test262-language--statements--class--cpn-class-decl-accessors-computed-property-name-from-await-expression",
    "module",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/computed-property-names/computed-property-name-from-await-expression.case\n// - src/computed-property-names/evaluation/class-declaration-accessors.template\n/*---\ndescription: Computed property name from condition expression (ComputedPropertyName in ClassDeclaration)\nesid: prod-ComputedPropertyName\nfeatures: [computed-property-names, top-level-await]\nflags: [generated, async, module]\ninfo: |\n    ClassExpression:\n      classBindingIdentifier opt ClassTail\n\n    ClassTail:\n      ClassHeritage opt { ClassBody opt }\n\n    ClassBody:\n      ClassElementList\n\n    ClassElementList:\n      ClassElement\n\n    ClassElement:\n      MethodDefinition\n\n    MethodDefinition:\n      PropertyName ...\n      get PropertyName ...\n      set PropertyName ...\n\n    PropertyName:\n      ComputedPropertyName\n\n    ComputedPropertyName:\n      [ AssignmentExpression ]\n---*/\ntry {\n\n\nclass C {\n  get [await 9]() {\n    return 9;\n  }\n\n  set [await 9](v) {\n    return 9;\n  }\n\n  static get [await 9]() {\n    return 9;\n  }\n\n  static set [await 9](v) {\n    return 9;\n  }\n};\n\nlet c = new C();\n\nassert.sameValue(\n  c[await 9],\n  9\n);\nassert.sameValue(\n  c[await 9] = 9,\n  9\n);\n\nassert.sameValue(\n  C[await 9],\n  9\n);\nassert.sameValue(\n  C[await 9] = 9,\n  9\n);\nassert.sameValue(\n  c[String(await 9)],\n  9\n);\nassert.sameValue(\n  c[String(await 9)] = 9,\n  9\n);\n\nassert.sameValue(\n  C[String(await 9)],\n  9\n);\nassert.sameValue(\n  C[String(await 9)] = 9,\n  9\n);\n\n} catch (e) {\n  $DONE(e);\n}\n$DONE();\n"
  ],
  [
    "test262-language--statements--class--cpn-class-decl-computed-property-name-from-assignment-expression-logical-and",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/computed-property-names/computed-property-name-from-assignment-expression-logical-and.case\n// - src/computed-property-names/evaluation/class-declaration.template\n/*---\ndescription: Computed property name from assignment expression logical and (ComputedPropertyName in ClassDeclaration)\nesid: prod-ComputedPropertyName\nfeatures: [computed-property-names, logical-assignment-operators]\nflags: [generated]\ninfo: |\n    ClassExpression:\n      classBindingIdentifier opt ClassTail\n\n    ClassTail:\n      ClassHeritage opt { ClassBody opt }\n\n    ClassBody:\n      ClassElementList\n\n    ClassElementList:\n      ClassElement\n\n    ClassElement:\n      MethodDefinition\n\n    MethodDefinition:\n      PropertyName ...\n      get PropertyName ...\n      set PropertyName ...\n\n    PropertyName:\n      ComputedPropertyName\n\n    ComputedPropertyName:\n      [ AssignmentExpression ]\n---*/\nlet x = 0;\n\n\nclass C {\n  [x &&= 1]() {\n    return 2;\n  }\n  static [x &&= 1]() {\n    return 2;\n  }\n};\n\nlet c = new C();\n\nassert.sameValue(\n  c[x &&= 1](),\n  2\n);\nassert.sameValue(\n  C[x &&= 1](),\n  2\n);\nassert.sameValue(\n  c[String(x &&= 1)](),\n  2\n);\nassert.sameValue(\n  C[String(x &&= 1)](),\n  2\n);\n\nassert.sameValue(x, 0);\n"
  ],
  [
    "test262-language--statements--class--cpn-class-decl-computed-property-name-from-math",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/computed-property-names/computed-property-name-from-math.case\n// - src/computed-property-names/evaluation/class-declaration.template\n/*---\ndescription: Computed property name from math (ComputedPropertyName in ClassDeclaration)\nesid: prod-ComputedPropertyName\nfeatures: [computed-property-names, exponentiation]\nflags: [generated]\ninfo: |\n    ClassExpression:\n      classBindingIdentifier opt ClassTail\n\n    ClassTail:\n      ClassHeritage opt { ClassBody opt }\n\n    ClassBody:\n      ClassElementList\n\n    ClassElementList:\n      ClassElement\n\n    ClassElement:\n      MethodDefinition\n\n    MethodDefinition:\n      PropertyName ...\n      get PropertyName ...\n      set PropertyName ...\n\n    PropertyName:\n      ComputedPropertyName\n\n    ComputedPropertyName:\n      [ AssignmentExpression ]\n---*/\n\n\nclass C {\n  [1 + 2 - 3 * 4 / 5 ** 6]() {\n    return 2.999232;\n  }\n  static [1 + 2 - 3 * 4 / 5 ** 6]() {\n    return 2.999232;\n  }\n};\n\nlet c = new C();\n\nassert.sameValue(\n  c[1 + 2 - 3 * 4 / 5 ** 6](),\n  2.999232\n);\nassert.sameValue(\n  C[1 + 2 - 3 * 4 / 5 ** 6](),\n  2.999232\n);\nassert.sameValue(\n  c[String(1 + 2 - 3 * 4 / 5 ** 6)](),\n  2.999232\n);\nassert.sameValue(\n  C[String(1 + 2 - 3 * 4 / 5 ** 6)](),\n  2.999232\n);\n"
  ],
  [
    "test262-language--statements--class--definition--early-errors-class-method-eval-in-formal-parameters",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2016 Microsoft, Inc. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Brian Terlson <brian.terlson@microsoft.com>\nesid: pending\ndescription: It is a SyntaxError if FormalParameters contains eval in strict mode\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\nclass Foo {\n  async foo(eval) { }\n}\n"
  ],
  [
    "test262-language--statements--class--dstr--async-gen-meth-ary-ptrn-empty",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-empty.case\n// - src/dstr-binding/default/cls-decl-async-gen-meth.template\n/*---\ndescription: No iteration occurs for an \"empty\" array binding pattern (class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [generators, async-iteration]\nflags: [generated, async]\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n\n    13.3.3.6 Runtime Semantics: IteratorBindingInitialization\n\n    ArrayBindingPattern : [ ]\n\n    1. Return NormalCompletion(empty).\n\n---*/\nvar iterations = 0;\nvar iter = function*() {\n  iterations += 1;\n}();\n\n\nvar callCount = 0;\nclass C {\n  async *method([]) {\n    assert.sameValue(iterations, 0);\n    callCount = callCount + 1;\n  }\n};\n\nnew C().method(iter).next().then(() => {\n    assert.sameValue(callCount, 1, 'invoked exactly once');    \n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--class--dstr--async-gen-meth-static-dflt-ary-ptrn-rest-not-final-id",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-id.case\n// - src/dstr-binding/default/cls-decl-async-gen-meth-static-dflt.template\n/*---\ndescription: Rest element (identifier) may not be followed by any element (static class expression async generator method (default parameter))\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\n\nvar callCount = 0;\nclass C {\n  static async *method([...x, y] = [1, 2, 3]) {\n    \n    callCount = callCount + 1;\n  }\n};\n\nC.method().next().then(() => {\n    assert.sameValue(callCount, 1, 'invoked exactly once');    \n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--class--dstr--async-private-gen-meth-static-ary-init-iter-close",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-init-iter-close.case\n// - src/dstr-binding/default/cls-decl-async-private-gen-meth-static.template\n/*---\ndescription: Iterator is closed when not exhausted by pattern evaluation (private static class expression async generator method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [Symbol.iterator, class, class-static-methods-private, async-iteration]\nflags: [generated, async]\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n\n    13.3.3.5 Runtime Semantics: BindingInitialization\n\n    BindingPattern : ArrayBindingPattern\n\n    [...]\n    4. If iteratorRecord.[[done]] is false, return ? IteratorClose(iterator,\n       result).\n    [...]\n\n---*/\nvar doneCallCount = 0;\nvar iter = {};\niter[Symbol.iterator] = function() {\n  return {\n    next: function() {\n      return { value: null, done: false };\n    },\n    return: function() {\n      doneCallCount += 1;\n      return {};\n    }\n  };\n};\n\n\nvar callCount = 0;\nclass C {\n  static async * #method([x]) {\n    assert.sameValue(doneCallCount, 1);\n    callCount = callCount + 1;\n  }\n\n  static get method() {\n    return this.#method;\n  }\n};\n\nC.method(iter).next().then(() => {\n    assert.sameValue(callCount, 1, 'invoked exactly once');    \n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--class--dstr--async-private-gen-meth-static-ary-ptrn-rest-not-final-id",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-id.case\n// - src/dstr-binding/default/cls-decl-async-private-gen-meth-static.template\n/*---\ndescription: Rest element (identifier) may not be followed by any element (private static class expression async generator method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [class, class-static-methods-private, async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    Runtime Semantics: PropertyDefinitionEvaluation\n\n    AsyncGeneratorMethod :\n        async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )\n            { AsyncGeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.\n       Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,\n       AsyncGeneratorBody, scope, strict).\n    [...]\n\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\n\nvar callCount = 0;\nclass C {\n  static async * #method([...x, y]) {\n    \n    callCount = callCount + 1;\n  }\n\n  static get method() {\n    return this.#method;\n  }\n};\n\nC.method([1, 2, 3]).next().then(() => {\n    assert.sameValue(callCount, 1, 'invoked exactly once');    \n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--class--dstr--meth-dflt-obj-ptrn-rest-skip-non-enumerable",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case\n// - src/dstr-binding/default/cls-decl-meth-dflt.template\n/*---\ndescription: Rest object doesn't contain non-enumerable properties (class expression method (default parameter))\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [object-rest, destructuring-binding, default-parameters]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n---*/\nvar o = {a: 3, b: 4};\nObject.defineProperty(o, \"x\", { value: 4, enumerable: false });\n\nvar callCount = 0;\nclass C {\n  method({...rest} = o) {\n    assert.sameValue(rest.x, undefined);\n\n    verifyProperty(rest, \"a\", {\n      enumerable: true,\n      writable: true,\n      configurable: true,\n      value: 3\n    });\n\n    verifyProperty(rest, \"b\", {\n      enumerable: true,\n      writable: true,\n      configurable: true,\n      value: 4\n    });\n    callCount = callCount + 1;\n  }\n};\n\nnew C().method();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--statements--class--dstr--private-gen-meth-static-ary-ptrn-rest-id-exhausted",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case\n// - src/dstr-binding/default/cls-decl-private-gen-meth-static.template\n/*---\ndescription: RestElement applied to an exhausted iterator (private static class expression generator method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [Symbol.iterator, class, class-static-methods-private, generators, destructuring-binding]\nflags: [generated]\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod : * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.6 Runtime Semantics: IteratorBindingInitialization\n    BindingRestElement : ... BindingIdentifier\n    1. Let lhs be ResolveBinding(StringValue of BindingIdentifier,\n       environment).\n    2. ReturnIfAbrupt(lhs). 3. Let A be ArrayCreate(0). 4. Let n=0. 5. Repeat,\n       [...]\n       b. If iteratorRecord.[[done]] is true, then\n          i. If environment is undefined, return PutValue(lhs, A).\n          ii. Return InitializeReferencedBinding(lhs, A).\n\n---*/\n\nvar callCount = 0;\nclass C {\n  static * #method([, , ...x]) {\n    assert(Array.isArray(x));\n    assert.sameValue(x.length, 0);\n    callCount = callCount + 1;\n  }\n\n  static get method() {\n    return this.#method;\n  }\n};\n\nC.method([1, 2]).next();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--statements--class--dstr--private-gen-meth-static-ary-ptrn-rest-init-ary",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-init-ary.case\n// - src/dstr-binding/default/cls-decl-private-gen-meth-static.template\n/*---\ndescription: Rest element (nested array pattern) does not support initializer (private static class expression generator method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [class, class-static-methods-private, generators, destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod : * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nclass C {\n  static * #method([...[ x ] = []]) {\n    \n    callCount = callCount + 1;\n  }\n\n  static get method() {\n    return this.#method;\n  }\n};\n\nC.method([]).next();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--statements--class--dstr--private-gen-meth-static-dflt-ary-ptrn-elem-ary-rest-iter",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case\n// - src/dstr-binding/default/cls-decl-private-gen-meth-static-dflt.template\n/*---\ndescription: BindingElement with array binding pattern and initializer is not used (private static class expression generator method (default parameter))\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [class, class-static-methods-private, generators, destructuring-binding, default-parameters]\nflags: [generated]\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod : * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.6 Runtime Semantics: IteratorBindingInitialization\n\n    BindingElement : BindingPatternInitializer opt\n\n    1. If iteratorRecord.[[done]] is false, then\n       a. Let next be IteratorStep(iteratorRecord.[[iterator]]).\n       [...]\n       e. Else,\n          i. Let v be IteratorValue(next).\n          [...]\n    4. Return the result of performing BindingInitialization of BindingPattern\n       with v and environment as the arguments.\n---*/\nvar values = [2, 1, 3];\nvar initCount = 0;\n\nvar callCount = 0;\nclass C {\n  static * #method([[...x] = function() { initCount += 1; }()] = [values]) {\n    assert(Array.isArray(x));\n    assert.sameValue(x[0], 2);\n    assert.sameValue(x[1], 1);\n    assert.sameValue(x[2], 3);\n    assert.sameValue(x.length, 3);\n    assert.notSameValue(x, values);\n    assert.sameValue(initCount, 0);\n    callCount = callCount + 1;\n  }\n\n  static get method() {\n    return this.#method;\n  }\n};\n\nC.method().next();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--statements--class--dstr--private-gen-meth-static-dflt-ary-ptrn-rest-not-final-id",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-id.case\n// - src/dstr-binding/default/cls-decl-private-gen-meth-static-dflt.template\n/*---\ndescription: Rest element (identifier) may not be followed by any element (private static class expression generator method (default parameter))\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [class, class-static-methods-private, generators, destructuring-binding, default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod : * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nclass C {\n  static * #method([...x, y] = [1, 2, 3]) {\n    \n    callCount = callCount + 1;\n  }\n\n  static get method() {\n    return this.#method;\n  }\n};\n\nC.method().next();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--statements--class--dstr--private-gen-meth-static-dflt-obj-ptrn-rest-skip-non-enumerable",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case\n// - src/dstr-binding/default/cls-decl-private-gen-meth-static-dflt.template\n/*---\ndescription: Rest object doesn't contain non-enumerable properties (private static class expression generator method (default parameter))\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [object-rest, class, class-static-methods-private, generators, destructuring-binding, default-parameters]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod : * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n---*/\nvar o = {a: 3, b: 4};\nObject.defineProperty(o, \"x\", { value: 4, enumerable: false });\n\nvar callCount = 0;\nclass C {\n  static * #method({...rest} = o) {\n    assert.sameValue(rest.x, undefined);\n\n    verifyProperty(rest, \"a\", {\n      enumerable: true,\n      writable: true,\n      configurable: true,\n      value: 3\n    });\n\n    verifyProperty(rest, \"b\", {\n      enumerable: true,\n      writable: true,\n      configurable: true,\n      value: 4\n    });\n    callCount = callCount + 1;\n  }\n\n  static get method() {\n    return this.#method;\n  }\n};\n\nC.method().next();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--statements--class--dstr--private-meth-dflt-ary-ptrn-rest-not-final-obj",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case\n// - src/dstr-binding/default/cls-decl-private-meth-dflt.template\n/*---\ndescription: Rest element (object binding pattern) may not be followed by any element (private class expression method (default parameter))\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [class, class-methods-private, destructuring-binding, default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nclass C {\n  #method([...{ x }, y] = [1, 2, 3]) {\n    \n    callCount = callCount + 1;\n  }\n\n  get method() {\n    return this.#method;\n  }\n};\n\nnew C().method();\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--statements--class--dstr--private-meth-static-ary-init-iter-close",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-init-iter-close.case\n// - src/dstr-binding/default/cls-decl-private-meth-static.template\n/*---\ndescription: Iterator is closed when not exhausted by pattern evaluation (private static class expression method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [Symbol.iterator, class, class-static-methods-private, destructuring-binding]\nflags: [generated]\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.5 Runtime Semantics: BindingInitialization\n\n    BindingPattern : ArrayBindingPattern\n\n    [...]\n    4. If iteratorRecord.[[done]] is false, return ? IteratorClose(iterator,\n       result).\n    [...]\n\n---*/\nvar doneCallCount = 0;\nvar iter = {};\niter[Symbol.iterator] = function() {\n  return {\n    next: function() {\n      return { value: null, done: false };\n    },\n    return: function() {\n      doneCallCount += 1;\n      return {};\n    }\n  };\n};\n\nvar callCount = 0;\nclass C {\n  static #method([x]) {\n    assert.sameValue(doneCallCount, 1);\n    callCount = callCount + 1;\n  }\n\n  static get method() {\n    return this.#method;\n  }\n};\n\nC.method(iter);\nassert.sameValue(callCount, 1, 'method invoked exactly once');\n"
  ],
  [
    "test262-language--statements--class--elements--after-same-line-gen-private-method-usage",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/private-method-usage.case\n// - src/class-elements/productions/cls-decl-after-same-line-gen.template\n/*---\ndescription: PrivateName CallExpression usage (private method) (field definitions after a generator in the same line)\nesid: prod-FieldDefinition\nfeatures: [class-methods-private, generators, class, class-fields-public]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    Updated Productions\n\n    CallExpression[Yield, Await]:\n      CoverCallExpressionAndAsyncArrowHead[?Yield, ?Await]\n      SuperCall[?Yield, ?Await]\n      CallExpression[?Yield, ?Await]Arguments[?Yield, ?Await]\n      CallExpression[?Yield, ?Await][Expression[+In, ?Yield, ?Await]]\n      CallExpression[?Yield, ?Await].IdentifierName\n      CallExpression[?Yield, ?Await]TemplateLiteral[?Yield, ?Await]\n      CallExpression[?Yield, ?Await].PrivateName\n\n---*/\n\n\nclass C {\n  *m() { return 42; } #m() { return 'test262'; };\n  method() {\n    return this.#m();\n  }\n}\n\nvar c = new C();\n\nassert.sameValue(c.m().next().value, 42);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"m\"),\n  \"m doesn't appear as an own property on the C instance\"\n);\nassert.sameValue(c.m, C.prototype.m);\n\nverifyProperty(C.prototype, \"m\", {\n  enumerable: false,\n  configurable: true,\n  writable: true,\n});\n\nassert.sameValue(c.method(), 'test262');\n"
  ],
  [
    "test262-language--statements--class--elements--after-same-line-static-async-method-computed-symbol-names",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/computed-symbol-names.case\n// - src/class-elements/productions/cls-decl-after-same-line-static-async-method.template\n/*---\ndescription: Computed property symbol names (field definitions after a static async method in the same line)\nesid: prod-FieldDefinition\nfeatures: [class-fields-public, Symbol, computed-property-names, class, async-functions]\nflags: [generated, async]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassElement:\n      ...\n      FieldDefinition ;\n\n    FieldDefinition:\n      ClassElementName Initializer_opt\n\n    ClassElementName:\n      PropertyName\n\n---*/\nvar x = Symbol();\nvar y = Symbol();\n\n\n\nclass C {\n  static async m() { return 42; } [x]; [y] = 42;\n  \n}\n\nvar c = new C();\n\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"m\"),\n  \"m doesn't appear as an own property on the C instance\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"m\"),\n  \"m doesn't appear as an own property on the C prototype\"\n);\n\nverifyProperty(C, \"m\", {\n  enumerable: false,\n  configurable: true,\n  writable: true,\n}, {restore: true});\n\nC.m().then(function(v) {\n  assert.sameValue(v, 42);\n\n  function assertions() {\n    // Cover $DONE handler for async cases.\n    function $DONE(error) {\n      if (error) {\n        throw new Test262Error('Test262:AsyncTestFailure')\n      }\n    }\n    assert(\n      !Object.prototype.hasOwnProperty.call(C.prototype, x),\n      \"Symbol x doesn't appear as an own property on C prototype\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(C, x),\n      \"Symbol x doesn't appear as an own property on C constructor\"\n    );\n\n    verifyProperty(c, x, {\n      value: undefined,\n      enumerable: true,\n      writable: true,\n      configurable: true\n    });\n\n    assert(\n      !Object.prototype.hasOwnProperty.call(C.prototype, y),\n      \"Symbol y doesn't appear as an own property on C prototype\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(C, y),\n      \"Symbol y doesn't appear as an own property on C constructor\"\n    );\n\n    verifyProperty(c, y, {\n      value: 42,\n      enumerable: true,\n      writable: true,\n      configurable: true\n    });\n\n    assert(\n      !Object.prototype.hasOwnProperty.call(C.prototype, \"x\"),\n      \"x doesn't appear as an own property on C prototype\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(C, \"x\"),\n      \"x doesn't appear as an own property on C constructor\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(c, \"x\"),\n      \"x doesn't appear as an own property on C instance\"\n    );\n\n    assert(\n      !Object.prototype.hasOwnProperty.call(C.prototype, \"y\"),\n      \"y doesn't appear as an own property on C prototype\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(C, \"y\"),\n      \"y doesn't appear as an own property on C constructor\"\n    );\n    assert(\n      !Object.prototype.hasOwnProperty.call(c, \"y\"),\n      \"y doesn't appear as an own property on C instance\"\n    );\n  }\n\n  return Promise.resolve(assertions());\n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--class--elements--after-same-line-static-async-method-static-private-methods-with-fields",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/static-private-methods-with-fields.case\n// - src/class-elements/productions/cls-decl-after-same-line-static-async-method.template\n/*---\ndescription: static private methods with fields (field definitions after a static async method in the same line)\nesid: prod-FieldDefinition\nfeatures: [class-static-methods-private, class-static-fields-private, class, class-fields-public, async-functions]\nflags: [generated, async]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassElement :\n      ...\n      static FieldDefinition ;\n\n    FieldDefinition :\n      ClassElementName Initializer_opt\n\n    ClassElementName :\n      PrivateName\n\n    PrivateName :\n      # IdentifierName\n\n---*/\n\n\nclass C {\n  static async m() { return 42; } static #xVal; static #yVal;\n  static #x(value) {\n    this.#xVal = value;\n    return this.#xVal;\n  }\n  static #y(value) {\n    this.#yVal = value;\n    return this.#yVal;\n  }\n  static x() {\n    return this.#x(42);\n  }\n  static y() {\n    return this.#y(43);\n  }\n}\n\nvar c = new C();\n\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"m\"),\n  \"m doesn't appear as an own property on the C instance\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"m\"),\n  \"m doesn't appear as an own property on the C prototype\"\n);\n\nverifyProperty(C, \"m\", {\n  enumerable: false,\n  configurable: true,\n  writable: true,\n}, {restore: true});\n\nC.m().then(function(v) {\n  assert.sameValue(v, 42);\n\n  function assertions() {\n    // Cover $DONE handler for async cases.\n    function $DONE(error) {\n      if (error) {\n        throw new Test262Error('Test262:AsyncTestFailure')\n      }\n    }\n    // Test the private methods do not appear as properties before set to value\n    assert(!Object.prototype.hasOwnProperty.call(C.prototype, \"#x\"), \"test 1\");\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#x\"), \"test 2\");\n    assert(!Object.prototype.hasOwnProperty.call(c, \"#x\"), \"test 3\");\n\n    assert(!Object.prototype.hasOwnProperty.call(C.prototype, \"#y\"), \"test 4\");\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#y\"), \"test 5\");\n    assert(!Object.prototype.hasOwnProperty.call(c, \"#y\"), \"test 6\");\n\n    assert(!Object.prototype.hasOwnProperty.call(C.prototype, \"#xVal\"), \"test 7\");\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#xVal\"), \"test 8\");\n    assert(!Object.prototype.hasOwnProperty.call(c, \"#xVal\"), \"test 9\");\n\n    assert(!Object.prototype.hasOwnProperty.call(C.prototype, \"#yVal\"), \"test 10\");\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#yVal\"), \"test 11\");\n    assert(!Object.prototype.hasOwnProperty.call(c, \"#yVal\"), \"test 12\");\n\n    // Test if private fields can be sucessfully accessed and set to value\n    assert.sameValue(C.x(), 42, \"test 13\");\n    assert.sameValue(C.y(), 43, \"test 14\");\n\n    // Test the private fields do not appear as properties before after set to value\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#x\"), \"test 15\");\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#y\"), \"test 16\");\n\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#xVal\"), \"test 17\");\n    assert(!Object.prototype.hasOwnProperty.call(C, \"#yVal\"), \"test 18\");\n  }\n\n  return Promise.resolve(assertions());\n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--class--elements--after-same-line-static-gen-static-private-methods-with-fields",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/static-private-methods-with-fields.case\n// - src/class-elements/productions/cls-decl-after-same-line-static-gen.template\n/*---\ndescription: static private methods with fields (field definitions after a static generator in the same line)\nesid: prod-FieldDefinition\nfeatures: [class-static-methods-private, class-static-fields-private, generators, class, class-fields-public]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassElement :\n      ...\n      static FieldDefinition ;\n\n    FieldDefinition :\n      ClassElementName Initializer_opt\n\n    ClassElementName :\n      PrivateName\n\n    PrivateName :\n      # IdentifierName\n\n---*/\n\n\nclass C {\n  static *m() { return 42; } static #xVal; static #yVal;\n  static #x(value) {\n    this.#xVal = value;\n    return this.#xVal;\n  }\n  static #y(value) {\n    this.#yVal = value;\n    return this.#yVal;\n  }\n  static x() {\n    return this.#x(42);\n  }\n  static y() {\n    return this.#y(43);\n  }\n}\n\nvar c = new C();\n\nassert.sameValue(C.m().next().value, 42);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"m\"),\n  \"m doesn't appear as an own property on the C instance\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"m\"),\n  \"m doesn't appear as an own property on the C prototype\"\n);\n\nverifyProperty(C, \"m\", {\n  enumerable: false,\n  configurable: true,\n  writable: true,\n});\n\n// Test the private methods do not appear as properties before set to value\nassert(!Object.prototype.hasOwnProperty.call(C.prototype, \"#x\"), \"test 1\");\nassert(!Object.prototype.hasOwnProperty.call(C, \"#x\"), \"test 2\");\nassert(!Object.prototype.hasOwnProperty.call(c, \"#x\"), \"test 3\");\n\nassert(!Object.prototype.hasOwnProperty.call(C.prototype, \"#y\"), \"test 4\");\nassert(!Object.prototype.hasOwnProperty.call(C, \"#y\"), \"test 5\");\nassert(!Object.prototype.hasOwnProperty.call(c, \"#y\"), \"test 6\");\n\nassert(!Object.prototype.hasOwnProperty.call(C.prototype, \"#xVal\"), \"test 7\");\nassert(!Object.prototype.hasOwnProperty.call(C, \"#xVal\"), \"test 8\");\nassert(!Object.prototype.hasOwnProperty.call(c, \"#xVal\"), \"test 9\");\n\nassert(!Object.prototype.hasOwnProperty.call(C.prototype, \"#yVal\"), \"test 10\");\nassert(!Object.prototype.hasOwnProperty.call(C, \"#yVal\"), \"test 11\");\nassert(!Object.prototype.hasOwnProperty.call(c, \"#yVal\"), \"test 12\");\n\n// Test if private fields can be sucessfully accessed and set to value\nassert.sameValue(C.x(), 42, \"test 13\");\nassert.sameValue(C.y(), 43, \"test 14\");\n\n// Test the private fields do not appear as properties before after set to value\nassert(!Object.prototype.hasOwnProperty.call(C, \"#x\"), \"test 15\");\nassert(!Object.prototype.hasOwnProperty.call(C, \"#y\"), \"test 16\");\n\nassert(!Object.prototype.hasOwnProperty.call(C, \"#xVal\"), \"test 17\");\nassert(!Object.prototype.hasOwnProperty.call(C, \"#yVal\"), \"test 18\");\n"
  ],
  [
    "test262-language--statements--class--elements--arrow-body-private-indirect-eval-err-contains-newtarget",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/eval-err-contains-newtarget.case\n// - src/class-elements/initializer-eval-newtarget/cls-decl-private-fields-indirect-eval-arrow-body.template\n/*---\ndescription: error if `new.target` in StatementList of eval (indirect eval)\nesid: sec-performeval-rules-in-initializer\nfeatures: [class, new.target, class-fields-private]\nflags: [generated]\ninfo: |\n    Additional Early Error Rules for Eval Inside Initializer\n    These static semantics are applied by PerformEval when a direct eval call occurs inside a class field initializer.\n    ScriptBody : StatementList\n\n      ...\n      The remaining eval rules apply as outside a constructor, inside a method, and inside a function.\n\n    Additional Early Error Rules for Eval Outside Functions\n    These static semantics are applied by PerformEval when a direct eval call occurs outside of any function.\n    ScriptBody : StatementList\n\n      It is a Syntax Error if StatementList Contains NewTarget.\n\n---*/\n\n\nclass C {\n  #x = (0, eval)('() => new.target;');\n}\n\nassert.throws(SyntaxError, function() {\n  new C().x();\n});\n\n"
  ],
  [
    "test262-language--statements--class--elements--comp-name-init-err-contains-arguments",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/init-err-contains-arguments.case\n// - src/class-elements/initializer-error/cls-decl-fields-comp-name.template\n/*---\ndescription: Syntax error if `arguments` used in class field (computed ClassElementName)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-public, computed-property-names]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n      FieldDefinition:\n        PropertyNameInitializeropt\n\n      - It is a Syntax Error if ContainsArguments of Initializer is true.\n\n    Static Semantics: ContainsArguments\n      IdentifierReference : Identifier\n\n      1. If the StringValue of Identifier is \"arguments\", return true.\n      ...\n      For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nvar x = \"string\";\nclass C {\n  [x] = arguments;\n}\n"
  ],
  [
    "test262-language--statements--class--elements--fields-duplicate-privatenames",
    "script",
    false,
    "standards",
    "// Copyright 2017 Valerie Young.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: Syntax error if the same private field defined twice\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-private]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n  Static Semantics: Early Errors\n\n    ClassBody : ClassElementList\n    It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries.\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  #x;\n  #x;\n}\n"
  ],
  [
    "test262-language--statements--class--elements--fields-string-name-static-propname-constructor",
    "script",
    false,
    "standards",
    "// Copyright (C) 2017 Valerie Young. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: static class field forbid PropName 'constructor' (early error -- PropName of StringLiteral is forbidden value)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-static-fields-public]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: PropName\n    ...\n    LiteralPropertyName : StringLiteral\n      Return the String value whose code units are the SV of the StringLiteral.\n\n\n    // This test file tests the following early error:\n    Static Semantics: Early Errors\n\n      ClassElement : staticFieldDefinition;\n        It is a Syntax Error if PropName of FieldDefinition is \"prototype\" or \"constructor\".\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  static 'constructor';\n}\n"
  ],
  [
    "test262-language--statements--class--elements--gen-private-method--yield-identifier-spread-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/generators/yield-identifier-spread-strict.case\n// - src/generators/default/class-decl-private-method.template\n/*---\ndescription: It's an early error if the AssignmentExpression is a function body with yield as an identifier in strict mode. (Generator private method as a ClassDeclaration element)\nesid: prod-GeneratorPrivateMethod\nfeatures: [object-spread, generators, class-methods-private]\nflags: [generated, onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      PrivateMethodDefinition\n\n    MethodDefinition :\n      GeneratorMethod\n\n    14.4 Generator Function Definitions\n\n    GeneratorMethod :\n      * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\n\nclass C {\n    *#gen() {\n        callCount += 1;\n        return {\n             ...(function() {\n                var yield;\n                throw new Test262Error();\n             }()),\n          }\n    }\n    get gen() { return this.#gen; }\n}\n\nconst c = new C();\n\n// Test the private fields do not appear as properties before set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C constructor\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C instance\"\n);\n\nvar iter = c.gen();\n\n\n\nassert.sameValue(callCount, 1);\n\n// Test the private fields do not appear as properties after set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C constructor\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C instance\"\n);\n"
  ],
  [
    "test262-language--statements--class--elements--gen-private-method--yield-spread-obj",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/generators/yield-spread-obj.case\n// - src/generators/default/class-decl-private-method.template\n/*---\ndescription: Use yield value in a object spread position (Generator private method as a ClassDeclaration element)\nesid: prod-GeneratorPrivateMethod\nfeatures: [object-spread, generators, class-methods-private]\nflags: [generated]\ninfo: |\n    ClassElement :\n      PrivateMethodDefinition\n\n    MethodDefinition :\n      GeneratorMethod\n\n    14.4 Generator Function Definitions\n\n    GeneratorMethod :\n      * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n\nvar callCount = 0;\n\nclass C {\n    *#gen() {\n        callCount += 1;\n        yield {\n            ...yield,\n            y: 1,\n            ...yield yield,\n          };\n    }\n    get gen() { return this.#gen; }\n}\n\nconst c = new C();\n\n// Test the private fields do not appear as properties before set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C constructor\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C instance\"\n);\n\nvar iter = c.gen();\n\niter.next();\niter.next({ x: 42 });\niter.next({ x: 'lol' });\nvar item = iter.next({ y: 39 });\n\nassert.sameValue(item.value.x, 42);\nassert.sameValue(item.value.y, 39);\nassert.sameValue(Object.keys(item.value).length, 2);\nassert.sameValue(item.done, false);\n\nassert.sameValue(callCount, 1);\n\n// Test the private fields do not appear as properties after set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C constructor\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C instance\"\n);\n"
  ],
  [
    "test262-language--statements--class--elements--gen-private-method-static--yield-identifier-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/generators/yield-identifier-strict.case\n// - src/generators/default/class-decl-static-private-method.template\n/*---\ndescription: It's an early error if the generator body has another function body with yield as an identifier in strict mode. (Static generator private method as a ClassDeclaration element)\nesid: prod-GeneratorPrivateMethod\nfeatures: [generators, class-static-methods-private]\nflags: [generated, onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      static PrivateMethodDefinition\n\n    MethodDefinition :\n      GeneratorMethod\n\n    14.4 Generator Function Definitions\n\n    GeneratorMethod :\n      * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\n\nclass C {\n    static *#gen() {\n        callCount += 1;\n        (function() {\n            var yield;\n            throw new Test262Error();\n          }())\n    }\n    static get gen() { return this.#gen; }\n}\n\n// Test the private fields do not appear as properties before set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C constructor\"\n);\n\nvar iter = C.gen();\n\n\n\nassert.sameValue(callCount, 1);\n\n// Test the private fields do not appear as properties before set to value\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"#gen\"),\n  \"Private field '#gen' does not appear as an own property on C constructor\"\n);\n"
  ],
  [
    "test262-language--statements--class--elements--nested-literal-name-init-err-contains-super",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/init-err-contains-super.case\n// - src/class-elements/initializer-error/cls-decl-fields-literal-name-nested.template\n/*---\ndescription: Syntax error if `super()` used in class field (literal ClassElementName)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-public]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n      FieldDefinition:\n        PropertyNameInitializeropt\n\n      - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true.\n\n---*/\n\n$DONOTEVALUATE();\n\nclass C {\n  x = () => super();\n}\n"
  ],
  [
    "test262-language--statements--class--elements--nested-private-typeof-init-err-contains-super",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/init-err-contains-super.case\n// - src/class-elements/initializer-error/cls-decl-fields-private-typeof-nested.template\n/*---\ndescription: Syntax error if `super()` used in class field (private field, typeof expression)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-public, class-fields-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n      FieldDefinition:\n        PropertyNameInitializeropt\n\n      - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true.\n\n---*/\n\n$DONOTEVALUATE();\n\nclass C {\n  #x = () => typeof super();\n}\n"
  ],
  [
    "test262-language--statements--class--elements--nested-static-string-literal-name-init-err-contains-super",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/init-err-contains-super.case\n// - src/class-elements/initializer-error/cls-decl-fields-static-string-literal-name-nested.template\n/*---\ndescription: Syntax error if `super()` used in class field (static string literal ClassElementName)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-public, class-static-fields-public]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n      FieldDefinition:\n        PropertyNameInitializeropt\n\n      - It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true.\n\n---*/\n\n$DONOTEVALUATE();\n\nclass C {\n  static 'x' = () => super();\n}\n"
  ],
  [
    "test262-language--statements--class--elements--new-no-sc-line-method-computed-names",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/computed-names.case\n// - src/class-elements/productions/cls-decl-new-no-sc-line-method.template\n/*---\ndescription: Computed property names (field definitions followed by a method in a new line without a semicolon)\nesid: prod-FieldDefinition\nfeatures: [class-fields-public, computed-property-names, class]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    ClassElement:\n      ...\n      FieldDefinition ;\n\n    FieldDefinition:\n      ClassElementName Initializer_opt\n\n    ClassElementName:\n      PropertyName\n\n---*/\nvar x = \"b\";\n\n\n\nclass C {\n  [x] = 42; [10] = \"meep\"; [\"not initialized\"]\n  m() { return 42; }\n  \n}\n\nvar c = new C();\n\nassert.sameValue(c.m(), 42);\nassert.sameValue(c.m, C.prototype.m);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"m\"),\n  \"m doesn't appear as an own property on the C instance\"\n);\n\nverifyProperty(C.prototype, \"m\", {\n  enumerable: false,\n  configurable: true,\n  writable: true,\n});\n\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"b\"),\n  \"b doesn't appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"b\"),\n  \"b doesn't appear as an own property on C constructor\"\n);\n\nverifyProperty(c, \"b\", {\n  value: 42,\n  enumerable: true,\n  writable: true,\n  configurable: true\n});\n\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"x\"),\n  \"x doesn't appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"x\"),\n  \"x doesn't appear as an own property on C constructor\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(c, \"x\"),\n  \"x doesn't appear as an own property on C instance\"\n);\n\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"10\"),\n  \"10 doesn't appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"10\"),\n  \"10 doesn't appear as an own property on C constructor\"\n);\n\nverifyProperty(c, \"10\", {\n  value: \"meep\",\n  enumerable: true,\n  writable: true,\n  configurable: true\n});\n\nassert(\n  !Object.prototype.hasOwnProperty.call(C.prototype, \"not initialized\"),\n  \"'not initialized' doesn't appear as an own property on C prototype\"\n);\nassert(\n  !Object.prototype.hasOwnProperty.call(C, \"not initialized\"),\n  \"'not initialized' doesn't appear as an own property on C constructor\"\n);\n\nverifyProperty(c, \"not initialized\", {\n  value: undefined,\n  enumerable: true,\n  writable: true,\n  configurable: true\n});\n"
  ],
  [
    "test262-language--statements--class--elements--private-accessor-name--inst-private-name-u2118",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/accessor-names/private-name-u2118.case\n// - src/accessor-names/private/cls-private-decl-inst.template\n/*---\ndescription: Private IdentifierName - ℘ (Class declaration, private instance method)\nfeatures: [class, class-methods-private]\nflags: [generated]\ninfo: |\n    ClassElement :\n      MethodDefinition\n      static MethodDefinition\n      FieldDefinition ;\n      ;\n\n    FieldDefinition :\n      ClassElementName Initializer _opt\n\n    ClassElementName :\n      PropertyName\n      PrivateName\n\n    PrivateName ::\n      # IdentifierName\n\n    Initializer :\n      = AssignmentExpression\n\n    IdentifierName ::\n      IdentifierStart\n      IdentifierName IdentifierPart\n\n    IdentifierStart ::\n      UnicodeIDStart\n      $\n      _\n      \\ UnicodeEscapeSequence\n\n    IdentifierPart::\n      UnicodeIDContinue\n      $\n      \\ UnicodeEscapeSequence\n      <ZWNJ> <ZWJ>\n\n    UnicodeIDStart::\n      any Unicode code point with the Unicode property \"ID_Start\"\n\n    UnicodeIDContinue::\n      any Unicode code point with the Unicode property \"ID_Continue\"\n\n\n    NOTE 3\n    The sets of code points with Unicode properties \"ID_Start\" and\n    \"ID_Continue\" include, respectively, the code points with Unicode\n    properties \"Other_ID_Start\" and \"Other_ID_Continue\".\n\n---*/\n\nvar stringSet;\n\nclass C {\n  get #℘() { return 'get string'; }\n  set #℘(param) { stringSet = param; }\n\n  getPrivateReference() {\n    return this.#℘;\n  }\n\n  setPrivateReference(value) {\n    this.#℘ = value;\n  }\n};\n\nvar inst = new C();\n\nassert.sameValue(inst.getPrivateReference(), 'get string');\n\ninst.setPrivateReference('set string');\nassert.sameValue(stringSet, 'set string');\n"
  ],
  [
    "test262-language--statements--class--elements--private-accessor-name--static-private-name-common",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/accessor-names/private-name-common.case\n// - src/accessor-names/private/cls-private-decl-static.template\n/*---\ndescription: Private IdentifierName - common (Class declaration, static method)\nfeatures: [class, class-static-methods-private]\nflags: [generated]\ninfo: |\n    ClassElement :\n      MethodDefinition\n      static MethodDefinition\n      FieldDefinition ;\n      ;\n\n    FieldDefinition :\n      ClassElementName Initializer _opt\n\n    ClassElementName :\n      PropertyName\n      PrivateName\n\n    PrivateName ::\n      # IdentifierName\n\n    Initializer :\n      = AssignmentExpression\n\n    IdentifierName ::\n      IdentifierStart\n      IdentifierName IdentifierPart\n\n    IdentifierStart ::\n      UnicodeIDStart\n      $\n      _\n      \\ UnicodeEscapeSequence\n\n    IdentifierPart::\n      UnicodeIDContinue\n      $\n      \\ UnicodeEscapeSequence\n      <ZWNJ> <ZWJ>\n\n    UnicodeIDStart::\n      any Unicode code point with the Unicode property \"ID_Start\"\n\n    UnicodeIDContinue::\n      any Unicode code point with the Unicode property \"ID_Continue\"\n\n\n    NOTE 3\n    The sets of code points with Unicode properties \"ID_Start\" and\n    \"ID_Continue\" include, respectively, the code points with Unicode\n    properties \"Other_ID_Start\" and \"Other_ID_Continue\".\n\n---*/\n\nvar stringSet;\n\nclass C {\n  static get #test262() { return 'get string'; }\n  static set #test262(param) { stringSet = param; }\n\n  static getPrivateReference() {\n    return this.#test262;\n  }\n\n  static setPrivateReference(value) {\n    this.#test262 = value;\n  }\n}\n\nassert.sameValue(C.getPrivateReference(), 'get string');\n\nC.setPrivateReference('set string');\nassert.sameValue(stringSet, 'set string');\n\n"
  ],
  [
    "test262-language--statements--class--elements--private-static-field-shadowed-by-getter-on-nested-class",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/private-static-field-shadowed-by-getter-on-nested-class.case\n// - src/class-elements/default/cls-decl.template\n/*---\ndescription: PrivateName of private static field can be shadowed on inner classes by a private getter (field definitions in a class declaration)\nesid: prod-FieldDefinition\nfeatures: [class-static-fields-private, class-static-fields-public, class-methods-private, class]\nflags: [generated]\ninfo: |\n    Updated Productions\n\n    CallExpression[Yield, Await]:\n      CoverCallExpressionAndAsyncArrowHead[?Yield, ?Await]\n      SuperCall[?Yield, ?Await]\n      CallExpression[?Yield, ?Await]Arguments[?Yield, ?Await]\n      CallExpression[?Yield, ?Await][Expression[+In, ?Yield, ?Await]]\n      CallExpression[?Yield, ?Await].IdentifierName\n      CallExpression[?Yield, ?Await]TemplateLiteral[?Yield, ?Await]\n      CallExpression[?Yield, ?Await].PrivateIdentifier\n\n    ClassTail : ClassHeritage { ClassBody }\n      ...\n      6. Let classPrivateEnvironment be NewDeclarativeEnvironment(outerPrivateEnvironment).\n      7. Let classPrivateEnvRec be classPrivateEnvironment's EnvironmentRecord.\n      ...\n      15. Set the running execution context's LexicalEnvironment to classScope.\n      16. Set the running execution context's PrivateEnvironment to classPrivateEnvironment.\n      ...\n      33. If PrivateBoundIdentifiers of ClassBody contains a Private Name P such that P's [[Kind]] field is either \"method\" or \"accessor\" and P's [[Brand]] is F,\n        a. PrivateBrandAdd(F, F).\n      34. For each item fieldRecord in order from staticFields,\n        a. Perform ? DefineField(F, field).\n\n      FieldDefinition : ClassElementName Initializer_opt\n        1. Let name be the result of evaluating ClassElementName.\n        2. ReturnIfAbrupt(name).\n        3. If Initializer_opt is present,\n          a. Let lex be the Lexical Environment of the running execution context.\n          b. Let formalParameterList be an instance of the production FormalParameters : [empty].\n          c. Let privateScope be the PrivateEnvironment of the running execution context.\n          d. Let initializer be FunctionCreate(Method, formalParameterList, Initializer, lex, true, privateScope).\n          e. Perform MakeMethod(initializer, homeObject).\n          f. Let isAnonymousFunctionDefinition be IsAnonymousFunctionDefinition(Initializer).\n        4. Else,\n          a. Let initializer be empty.\n          b. Let isAnonymousFunctionDeclaration be false.\n        5. Return a Record { [[Name]]: name, [[Initializer]]: initializer, [[IsAnonymousFunctionDefinition]]: isAnonymousFunctionDefinition }.\n\n    MemberExpression : MemberExpression.PrivateIdentifier\n      1. Let baseReference be the result of evaluating MemberExpression.\n      2. Let baseValue be ? GetValue(baseReference).\n      3. Let bv be ? RequireObjectCoercible(baseValue).\n      4. Let fieldNameString be the StringValue of PrivateIdentifier.\n      5. Return MakePrivateReference(bv, fieldNameString).\n\n    MakePrivateReference(baseValue, privateIdentifier)\n      1. Let env be the running execution context's PrivateEnvironment.\n      2. Let privateNameBinding be ? ResolveBinding(privateIdentifier, env).\n      3. Let privateName be GetValue(privateNameBinding).\n      4. Assert: privateName is a Private Name.\n      5. Return a value of type Reference whose base value is baseValue, whose referenced name is privateName, whose strict reference flag is true.\n\n---*/\n\n\nclass C {\n  static #m = 'outer class';\n\n  static fieldAccess() {\n    return this.#m;\n  }\n\n  static B = class {\n    get #m() { return 'inner class'; }\n\n    static access(o) {\n      return o.#m;\n    }\n  }\n}\n\nassert.sameValue(C.fieldAccess(), 'outer class');\n\nlet b = new C.B();\n\nassert.sameValue(C.B.access(b), 'inner class');\n\nassert.throws(TypeError, function() {\n  C.B.access(C);\n}, 'accessed private getter from an arbritary object');\n"
  ],
  [
    "test262-language--statements--class--elements--privatemethods-on-proxy",
    "script",
    true,
    "standards",
    "// Copyright (C) 2019 Caio Lima. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: Successfully access private method on Proxy objects without using [[Get]]\nesid: sec-getvalue\ninfo: |\n  GetValue(V)\n    ...\n    5. If IsPropertyReference(V), then\n      ...\n      b. If IsPrivateReference(V), then\n        i. Let env be the running execution context's PrivateNameEnvironment.\n        ii. Let field be ? ResolveBinding(GetReferencedName(V), env).\n        iii. Assert: field is a Private Name.\n        iv. Return ? PrivateFieldGet(field, base).\n      c. Return ? base.[[Get]](GetReferencedName(V), GetThisValue(V)).\n  PrivateFieldGet(P, O)\n    ...\n    4. Perform ? PrivateBrandCheck(O, P).\n    5. If P.[[Kind]] is \"method\",\n      a. Return P.[[Value]].\n      ...\nincludes: [compareArray.js]\nfeatures: [class, class-methods-private, Proxy]\n---*/\n\nlet arr = [];\n\nclass ProxyBase {\n  constructor() {\n    return new Proxy(this, {\n      get: function (obj, prop) {\n        arr.push(prop);\n        return obj[prop];\n      }\n    });\n  }\n}\n\nclass Test extends ProxyBase {\n  #f() {\n    return 3;\n  }\n  method() {\n    return this.#f();\n  }\n}\n\nlet t = new Test();\nlet r = t.method();\nassert.sameValue(r, 3);\n\nassert.compareArray(arr, ['method']);\n\n"
  ],
  [
    "test262-language--statements--class--elements--prod-private-getter-before-super-return-in-constructor",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/prod-private-getter-before-super-return-in-constructor.case\n// - src/class-elements/default/cls-decl.template\n/*---\ndescription: Private getters are installed \"when super returns\" and no earlier (call in constructor) (field definitions in a class declaration)\nesid: prod-FieldDefinition\nfeatures: [class-methods-private, class]\nflags: [generated]\ninfo: |\n    SuperCall: super Arguments\n      1. Let newTarget be GetNewTarget().\n      2. If newTarget is undefined, throw a ReferenceError exception.\n      3. Let func be ? GetSuperConstructor().\n      4. Let argList be ArgumentListEvaluation of Arguments.\n      5. ReturnIfAbrupt(argList).\n      6. Let result be ? Construct(func, argList, newTarget).\n      7. Let thisER be GetThisEnvironment( ).\n      8. Let F be thisER.[[FunctionObject]].\n      9. Assert: F is an ECMAScript function object.\n      10. Perform ? InitializeInstanceElements(result, F).\n\n    EDITOR'S NOTE:\n      Private fields are added to the object one by one, interspersed with\n      evaluation of the initializers, following the construction of the\n      receiver. These semantics allow for a later initializer to refer to\n      a previous private field.\n\n---*/\n\n\nclass C {\n  constructor() {\n      this.f();\n  }\n\n}\n\nclass D extends C {\n    f() { this.#m; }\n    get #m() { return 42; }\n}\n\nassert(D.prototype.hasOwnProperty('f'));\nassert.throws(TypeError, function() {\n    var d = new D();\n}, 'private getters are not installed before super returns');\n"
  ],
  [
    "test262-language--statements--class--elements--static-private-getter-access-on-inner-class",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/static-private-getter-access-on-inner-class.case\n// - src/class-elements/default/cls-decl.template\n/*---\ndescription: static private getter access inside of an inner class (field definitions in a class declaration)\nesid: prod-FieldDefinition\nfeatures: [class-static-methods-private, class-static-fields-public, class]\nflags: [generated]\ninfo: |\n    PrivateFieldGet (P, O)\n      1. Assert: P is a Private Name.\n      2. If O is not an object, throw a TypeError exception.\n      3. If P.[[Kind]] is \"field\",\n      ...\n      4. Perform ? PrivateBrandCheck(O, P).\n      5. If P.[[Kind]] is \"method\",\n        a. Return P.[[Value]].\n      ...\n\n    PrivateBrandCheck(O, P)\n      1. If O.[[PrivateBrands]] does not contain an entry e such that SameValue(e, P.[[Brand]]) is true,\n        a. Throw a TypeError exception.\n\n---*/\n\n\nclass C {\n  static get #f() {\n    return 'Test262';\n  }\n\n  static Inner = class {\n    static access(o) {\n      return o.#f;\n    }\n  }\n}\n\nassert.sameValue(C.Inner.access(C), 'Test262');\nassert.throws(TypeError, function() {\n  C.Inner.access(C.Inner);\n}, 'Accessed static private getter from an object which did not contain it');\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--delete--field-delete-twice-covered-err-delete-call-expression-private-method-async-gen",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/err-delete-call-expression-private-method-async-gen.case\n// - src/class-elements/delete-error/cls-decl-field-delete-twice-covered.template\n/*---\ndescription: It's a SyntaxError if delete operator is applied to CallExpression.PrivateName async generator (in field, recursively covered)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class-methods-private, async-iteration, class, class-fields-private, class-fields-public]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n      UnaryExpression : delete UnaryExpression\n\n      It is a Syntax Error if the UnaryExpression is contained in strict mode\n      code and the derived UnaryExpression is\n      PrimaryExpression : IdentifierReference ,\n      MemberExpression : MemberExpression.PrivateName , or\n      CallExpression : CallExpression.PrivateName .\n\n      It is a Syntax Error if the derived UnaryExpression is\n      PrimaryExpression : CoverParenthesizedExpressionAndArrowParameterList and\n      CoverParenthesizedExpressionAndArrowParameterList ultimately derives a\n      phrase that, if used in place of UnaryExpression, would produce a\n      Syntax Error according to these rules. This rule is recursively applied.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  #x;\n  g = this.f;\n  x = delete ((g().#m));\n\n  f() {\n  return this;\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--delete--field-delete-twice-covered-err-delete-member-expression-private-no-reference",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/err-delete-member-expression-private-no-reference.case\n// - src/class-elements/delete-error/cls-decl-field-delete-twice-covered.template\n/*---\ndescription: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName no referencing class element (in field, recursively covered)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class, class-fields-private, class-fields-public]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n      UnaryExpression : delete UnaryExpression\n\n      It is a Syntax Error if the UnaryExpression is contained in strict mode\n      code and the derived UnaryExpression is\n      PrimaryExpression : IdentifierReference ,\n      MemberExpression : MemberExpression.PrivateName , or\n      CallExpression : CallExpression.PrivateName .\n\n      It is a Syntax Error if the derived UnaryExpression is\n      PrimaryExpression : CoverParenthesizedExpressionAndArrowParameterList and\n      CoverParenthesizedExpressionAndArrowParameterList ultimately derives a\n      phrase that, if used in place of UnaryExpression, would produce a\n      Syntax Error according to these rules. This rule is recursively applied.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  #x;\n  \n  x = delete ((this.#m));\n\n  \n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--delete--method-delete-twice-covered-err-delete-call-expression-private-method-accessor-get",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/err-delete-call-expression-private-method-accessor-get.case\n// - src/class-elements/delete-error/cls-decl-method-delete-twice-covered.template\n/*---\ndescription: It's a SyntaxError if delete operator is applied to CallExpression.PrivateName accessor get method (in method, recursively covered)\nesid: sec-class-definitions-static-semantics-early-errors\nfeatures: [class-methods-private, class-fields-public, class, class-fields-private]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    This file must never use the onlyStrict flag as the strict mode should always\n    be observed inside class bodies.\n\n    Static Semantics: Early Errors\n\n      UnaryExpression : delete UnaryExpression\n\n      It is a Syntax Error if the UnaryExpression is contained in strict mode\n      code and the derived UnaryExpression is\n      PrimaryExpression : IdentifierReference ,\n      MemberExpression : MemberExpression.PrivateName , or\n      CallExpression : CallExpression.PrivateName .\n\n      It is a Syntax Error if the derived UnaryExpression is\n      PrimaryExpression : CoverParenthesizedExpressionAndArrowParameterList and\n      CoverParenthesizedExpressionAndArrowParameterList ultimately derives a\n      phrase that, if used in place of UnaryExpression, would produce a\n      Syntax Error according to these rules. This rule is recursively applied.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  #x;\n\n  x() {\n    var g = this.f;\n    delete ((g().#m));\n  }\n\n  f() {\n  return this;\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--grammar-fields-same-line-error",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-fields-same-line-error.case\n// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template\n/*---\ndescription: SyntaxError (class declaration)\nesid: prod-ClassElement\nfeatures: [class-fields-public, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      MethodDefinition\n      static MethodDefinition\n      FieldDefinition ;\n      ;\n\n    FieldDefinition :\n      ClassElementName Initializer _opt\n\n    ClassElementName :\n      PropertyName\n      PrivateName\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  x y\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--grammar-private-field-on-object-destructuring",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-private-field-on-object-destructuring.case\n// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template\n/*---\ndescription: Acessing private field from object destructuring pattern is not a valid syntax (class declaration)\nesid: prod-ClassElement\nfeatures: [class-fields-private, destructuring-binding, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Updated Productions\n\n    ObjectAssignmentPattern[Yield, Await]:\n       {}\n       {AssignmentRestProperty[?Yield, ?Await]}\n       {AssignmentPropertyList[?Yield, ?Await]}\n       {AssignmentPropertyList[?Yield, ?Await],AssignmentRestProperty[?Yield, ?Await]opt}\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  #x = 1;\n\n  destructureX() {\n    const { #x: x } = this;\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--grammar-privatemeth-duplicate-get-get",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatemeth-duplicate-get-get.case\n// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template\n/*---\ndescription: It's a SyntaxError if a class contains multiple private getters with the same name (class declaration)\nesid: prod-ClassElement\nfeatures: [class-methods-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n    ClassBody : ClassElementList\n        It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  get #m() {}\n  get #m() {}\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--grammar-privatemeth-duplicate-meth-staticfield",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatemeth-duplicate-meth-staticfield.case\n// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template\n/*---\ndescription: It's a SyntaxError if a class contains a private method and a private static field with the same name (class declaration)\nesid: prod-ClassElement\nfeatures: [class-methods-private, class-static-fields-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Static Semantics: Early Errors\n\n    ClassBody : ClassElementList\n        It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  static #m;\n  #m() {}\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--grammar-privatename-identifier-invalid-ues",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatename-identifier-invalid-ues.case\n// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template\n/*---\ndescription: Valid PrivateName Syntax (class declaration)\nesid: prod-ClassElement\nfeatures: [class-fields-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      MethodDefinition\n      static MethodDefinition\n      FieldDefinition ;\n      ;\n\n    FieldDefinition :\n      ClassElementName Initializer _opt\n\n    ClassElementName :\n      PropertyName\n      PrivateName\n\n    PrivateName ::\n      # IdentifierName\n\n    IdentifierName ::\n      IdentifierStart\n      IdentifierName IdentifierPart\n\n    IdentifierStart ::\n      UnicodeIDStart\n      $\n      _\n      \\ UnicodeEscapeSequence\n\n    IdentifierPart::\n      UnicodeIDContinue\n      $\n      \\ UnicodeEscapeSequence\n      <ZWNJ> <ZWJ>\n\n    UnicodeIDStart::\n      any Unicode code point with the Unicode property \"ID_Start\"\n\n    UnicodeIDContinue::\n      any Unicode code point with the Unicode property \"ID_Continue\"\n\n\n    NOTE 3\n    The sets of code points with Unicode properties \"ID_Start\" and\n    \"ID_Continue\" include, respectively, the code points with Unicode\n    properties \"Other_ID_Start\" and \"Other_ID_Continue\".\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  #\\u0000;\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--grammar-privatename-whitespace-error-gen-meth",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatename-whitespace-error-gen-meth.case\n// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template\n/*---\ndescription: No space allowed between sigil and IdentifierName (Generator Method) (class declaration)\nesid: prod-ClassElement\nfeatures: [generators, class-methods-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Updated Productions\n\n    ClassElementName :\n      PropertyName\n      PrivateName\n\n    PrivateName ::\n      # IdentifierName\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  * # m() {}\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--grammar-privatename-whitespace-error-static-field",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-privatename-whitespace-error-static-field.case\n// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template\n/*---\ndescription: No space allowed between sigil and IdentifierName (Static Field) (class declaration)\nesid: prod-ClassElement\nfeatures: [class-static-fields-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Updated Productions\n\n    ClassElementName :\n      PropertyName\n      PrivateName\n\n    PrivateName ::\n      # IdentifierName\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  static # x;\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--grammar-special-meth-contains-super-async-gen",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-special-meth-contains-super-async-gen.case\n// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template\n/*---\ndescription: Async Generator Methods cannot contain direct super (class declaration)\nesid: prod-ClassElement\nfeatures: [async-iteration, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Class Definitions / Static Semantics: Early Errors\n\n    ClassElement : MethodDefinition\n        It is a Syntax Error if PropName of MethodDefinition is not \"constructor\" and HasDirectSuper of MethodDefinition is true.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C extends Function{\n  async * method() {\n      super();\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--grammar-static-async-meth-super",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-static-async-meth-super.case\n// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template\n/*---\ndescription: Static Async Methods cannot contain direct super (class declaration)\nesid: prod-ClassElement\nfeatures: [async-functions, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Class Definitions / Static Semantics: Early Errors\n\n    ClassElement : static MethodDefinition\n        It is a Syntax Error if HasDirectSuper of MethodDefinition is true.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C extends Function{\n  static async method() {\n      super();\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--grammar-static-private-async-meth-constructor",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-static-private-async-meth-constructor.case\n// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template\n/*---\ndescription: Static Async Private Methods cannot be named constructor (class declaration)\nesid: prod-ClassElement\nfeatures: [async-functions, class-static-methods-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Class Definitions / Static Semantics: Early Errors\n\n    ClassElementName : PrivateName ;\n        It is a Syntax Error if StringValue of PrivateName is \"#constructor\"\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  static async #constructor() {}\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--grammar-static-private-gen-meth-constructor",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-static-private-gen-meth-constructor.case\n// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template\n/*---\ndescription: Static Generator Private Methods cannot be named constructor (class declaration)\nesid: prod-ClassElement\nfeatures: [generators, class-static-methods-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Class Definitions / Static Semantics: Early Errors\n\n    ClassElementName : PrivateName ;\n        It is a Syntax Error if StringValue of PrivateName is \"#constructor\"\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  static * #constructor() {}\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--grammar-static-private-meth-constructor",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/class-elements/grammar-static-private-meth-constructor.case\n// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template\n/*---\ndescription: Static Private Methods cannot be named constructor (class declaration)\nesid: prod-ClassElement\nfeatures: [class-static-methods-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Class Definitions / Static Semantics: Early Errors\n\n    ClassElementName : PrivateName ;\n        It is a Syntax Error if StringValue of PrivateName is \"#constructor\"\n\n---*/\n\n\n$DONOTEVALUATE();\n\nclass C {\n  static #constructor() {}\n}\n"
  ],
  [
    "test262-language--statements--class--elements--syntax--early-errors--invalid-names--fields-init-heritage-call-expression-this",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/invalid-private-names/call-expression-this.case\n// - src/invalid-private-names/default/cls-decl-field-initializer-heritage.template\n/*---\ndescription: this evaluated in call expression (Invalid private names should throw a SyntaxError, class field initializer in class declaration)\nesid: sec-static-semantics-early-errors\nfeatures: [class-fields-private, class]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ScriptBody:StatementList\n      It is a Syntax Error if AllPrivateNamesValid of StatementList with an empty List\n      as an argument is false unless the source code is eval code that is being\n      processed by a direct eval.\n\n    ModuleBody:ModuleItemList\n      It is a Syntax Error if AllPrivateNamesValid of ModuleItemList with an empty List\n      as an argument is false.\n\n    Static Semantics: AllPrivateNamesValid\n\n    ClassBody : ClassElementList\n    1. Let newNames be the concatenation of names with PrivateBoundNames of ClassBody.\n    2. Return AllPrivateNamesValid of ClassElementList with the argument newNames.\n\n    For all other grammatical productions, recurse on subexpressions/substatements,\n    passing in the names of the caller. If all pieces return true, then return true.\n    If any returns false, return false.\n\n\n    Static Semantics: AllPrivateNamesValid\n\n    MemberExpression : MemberExpression . PrivateName\n\n    1. If StringValue of PrivateName is in names, return true.\n    2. Return false.\n\n    CallExpression : CallExpression . PrivateName\n\n    1. If StringValue of PrivateName is in names, return true.\n    2. Return false.\n\n---*/\n\n\n\n$DONOTEVALUATE();\n\nclass Parent {\n  #x = 42;\n}\n\nclass C extends Parent {\n  f = (() => this)().#x\n}\n"
  ],
  [
    "test262-language--statements--class--gen-method--dflt-params-rest",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-rest.case\n// - src/function-forms/syntax/cls-decl-gen-meth.template\n/*---\ndescription: RestParameter does not support an initializer (class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [default-parameters, generators]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod : * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n\n    14.1 Function Definitions\n\n    Syntax\n\n    FunctionRestParameter[Yield] :\n\n      BindingRestElement[?Yield]\n\n    13.3.3 Destructuring Binding Patterns\n\n    Syntax\n\n    BindingRestElement[Yield] :\n\n      ...BindingIdentifier[?Yield]\n      ...BindingPattern[?Yield]\n\n---*/\n$DONOTEVALUATE();\n\nclass C {\n  *method(...x = []) {\n    \n  }\n}\n"
  ],
  [
    "test262-language--statements--class--gen-method--object-destructuring-param-strict-body",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/object-destructuring-param-strict-body.case\n// - src/function-forms/syntax/cls-decl-gen-meth.template\n/*---\ndescription: ObjectBindingPattern and Use Strict Directive are not allowed to coexist for the same function. (class expression method)\nesid: sec-class-definitions-runtime-semantics-evaluation\nfeatures: [rest-parameters, generators]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod : * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n\n    13.3.3.4 Static Semantics: IsSimpleParameterList\n\n    BindingElement : BindingPattern\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\nclass C {\n  *method({property}) {\n    \"use strict\";\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--gen-method--yield-as-binding-identifier",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/generators/yield-as-binding-identifier.case\n// - src/generators/syntax/class-decl-method.template\n/*---\ndescription: yield is a reserved keyword within generator function bodies and may not be used as a binding identifier. (Generator method as a ClassDeclaration element)\nesid: prod-GeneratorMethod\nfeatures: [generators]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      MethodDefinition\n\n    MethodDefinition :\n      GeneratorMethod\n\n    14.4 Generator Function Definitions\n\n    GeneratorMethod :\n      * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n\n    BindingIdentifier : Identifier\n\n    It is a Syntax Error if this production has a [Yield] parameter and\n    StringValue of Identifier is \"yield\".\n\n---*/\n$DONOTEVALUATE();\n\nclass C { *gen() {\n    var yield;\n}}\n"
  ],
  [
    "test262-language--statements--class--gen-method--yield-identifier-spread-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/generators/yield-identifier-spread-strict.case\n// - src/generators/default/class-decl-method.template\n/*---\ndescription: It's an early error if the AssignmentExpression is a function body with yield as an identifier in strict mode. (Generator method as a ClassDeclaration element)\nesid: prod-GeneratorMethod\nfeatures: [object-spread, generators]\nflags: [generated, onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassElement :\n      MethodDefinition\n\n    MethodDefinition :\n      GeneratorMethod\n\n    14.4 Generator Function Definitions\n\n    GeneratorMethod :\n      * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\n\nclass C { *gen() {\n    callCount += 1;\n    return {\n         ...(function() {\n            var yield;\n            throw new Test262Error();\n         }()),\n      }\n}}\n\nvar gen = C.prototype.gen;\n\nvar iter = gen();\n\n\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--statements--class--gen-method--yield-spread-obj",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/generators/yield-spread-obj.case\n// - src/generators/default/class-decl-method.template\n/*---\ndescription: Use yield value in a object spread position (Generator method as a ClassDeclaration element)\nesid: prod-GeneratorMethod\nfeatures: [object-spread, generators]\nflags: [generated]\ninfo: |\n    ClassElement :\n      MethodDefinition\n\n    MethodDefinition :\n      GeneratorMethod\n\n    14.4 Generator Function Definitions\n\n    GeneratorMethod :\n      * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n\nvar callCount = 0;\n\nclass C { *gen() {\n    callCount += 1;\n    yield {\n        ...yield,\n        y: 1,\n        ...yield yield,\n      };\n}}\n\nvar gen = C.prototype.gen;\n\nvar iter = gen();\n\niter.next();\niter.next({ x: 42 });\niter.next({ x: 'lol' });\nvar item = iter.next({ y: 39 });\n\nassert.sameValue(item.value.x, 42);\nassert.sameValue(item.value.y, 39);\nassert.sameValue(Object.keys(item.value).length, 2);\nassert.sameValue(item.done, false);\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--statements--class--gen-method-static--dflt-params-duplicates",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-duplicates.case\n// - src/function-forms/syntax/cls-decl-gen-meth-static.template\n/*---\ndescription: It is a Syntax Error if BoundNames of FormalParameters contains any duplicate elements. (static class expression generator method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [default-parameters, generators]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.4.13 Runtime Semantics: PropertyDefinitionEvaluation\n\n    GeneratorMethod : * PropertyName ( StrictFormalParameters ) { GeneratorBody }\n\n    1. Let propKey be the result of evaluating PropertyName.\n    2. ReturnIfAbrupt(propKey).\n    3. If the function code for this GeneratorMethod is strict mode code,\n       let strict be true. Otherwise let strict be false.\n    4. Let scope be the running execution context's LexicalEnvironment.\n    5. Let closure be GeneratorFunctionCreate(Method,\n       StrictFormalParameters, GeneratorBody, scope, strict).\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n\n    14.1.2 Static Semantics: Early Errors\n\n    StrictFormalParameters : FormalParameters\n\n    - It is a Syntax Error if BoundNames of FormalParameters contains any\n      duplicate elements.\n\n    FormalParameters : FormalParameterList\n\n    - It is a Syntax Error if IsSimpleParameterList of FormalParameterList is\n      false and BoundNames of FormalParameterList contains any duplicate\n      elements.\n\n---*/\n$DONOTEVALUATE();\n\nclass C {\n  static *method(x = 0, x) {\n    \n  }\n}\n"
  ],
  [
    "test262-language--statements--class--gen-method-static--forbidden-ext--b2--cls-decl-gen-meth-static-forbidden-ext-indirect-access-prop-caller",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-indirect-access-prop-caller.case\n// - src/function-forms/forbidden-extensions/bullet-two/cls-decl-gen-meth-static.template\n/*---\ndescription: Forbidden extension, o.caller (static class expression generator method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [class, generators]\nflags: [generated, noStrict]\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n\n    If an implementation extends any function object with an own property named \"caller\" the value of\n    that property, as observed using [[Get]] or [[GetOwnProperty]], must not be a strict function\n    object. If it is an accessor property, the function that is the value of the property's [[Get]]\n    attribute must never return a strict function when called.\n\n---*/\nvar CALLER_OWN_PROPERTY_DOES_NOT_EXIST = Symbol();\nfunction inner() {\n  // This property may exist, but is forbidden from having a value that is a strict function object\n  return inner.hasOwnProperty(\"caller\")\n    ? inner.caller\n    : CALLER_OWN_PROPERTY_DOES_NOT_EXIST;\n}\n\nvar callCount = 0;\nclass C {\n  static *method() {\n    /* implicit strict */\n    // This and the following conditional value is set in the test's .case file.\n    // For every test that has a \"true\" value here, there is a\n    // corresponding test that has a \"false\" value here.\n    // They are generated from two different case files, which use\n    let descriptor = Object.getOwnPropertyDescriptor(inner, \"caller\");\n    if (descriptor && descriptor.configurable && false) {\n      Object.defineProperty(inner, \"caller\", {});\n    }\n    var result = inner();\n    if (descriptor && descriptor.configurable && false) {\n      assert.sameValue(result, 1, 'If this test defined an own \"caller\" property on the inner function, then it should be accessible and should return the value it was set to.');\n    }\n\n    // \"CALLER_OWN_PROPERTY_DOES_NOT_EXIST\" is from\n    // forbidden-ext-indirect-access-prop-caller.case\n    //\n    // If the function object \"inner\" has an own property\n    // named \"caller\", then its value will be returned.\n    //\n    // If the function object \"inner\" DOES NOT have an\n    // own property named \"caller\", then the symbol\n    // CALLER_OWN_PROPERTY_DOES_NOT_EXIST will be returned.\n    if (result !== CALLER_OWN_PROPERTY_DOES_NOT_EXIST) {\n      assert.notSameValue(result, this.method);\n    }\n    callCount++;\n  }\n}\n\nC.method().next();\n\nassert.sameValue(callCount, 1, 'method body evaluated');\n"
  ],
  [
    "test262-language--statements--class--method--object-destructuring-param-strict-body",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/object-destructuring-param-strict-body.case\n// - src/function-forms/syntax/cls-decl-meth.template\n/*---\ndescription: ObjectBindingPattern and Use Strict Directive are not allowed to coexist for the same function. (class expression method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [rest-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.4 Static Semantics: IsSimpleParameterList\n\n    BindingElement : BindingPattern\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\nclass C {\n  method({property}) {\n    \"use strict\";\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--method--rest-params-trailing-comma-early-error",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/rest-params-trailing-comma-early-error.case\n// - src/function-forms/syntax/cls-decl-meth.template\n/*---\ndescription: It's a syntax error if a FunctionRestParameter is followed by a trailing comma (class expression method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n           i. Let status be the result of performing\n              PropertyDefinitionEvaluation for m with arguments proto and\n              false.\n        [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    Trailing comma in the parameters list\n\n    14.1 Function Definitions\n\n    FormalParameters[Yield, Await] :\n        [empty]\n        FunctionRestParameter[?Yield, ?Await]\n        FormalParameterList[?Yield, ?Await]\n        FormalParameterList[?Yield, ?Await] ,\n        FormalParameterList[?Yield, ?Await] , FunctionRestParameter[?Yield, ?Await]\n---*/\n$DONOTEVALUATE();\n\nclass C {\n  method(...a,) {\n    \n  }\n}\n"
  ],
  [
    "test262-language--statements--class--method-static--dflt-params-rest",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/dflt-params-rest.case\n// - src/function-forms/syntax/cls-decl-meth-static.template\n/*---\ndescription: RestParameter does not support an initializer (static class expression method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    14.1 Function Definitions\n\n    Syntax\n\n    FunctionRestParameter[Yield] :\n\n      BindingRestElement[?Yield]\n\n    13.3.3 Destructuring Binding Patterns\n\n    Syntax\n\n    BindingRestElement[Yield] :\n\n      ...BindingIdentifier[?Yield]\n      ...BindingPattern[?Yield]\n\n---*/\n$DONOTEVALUATE();\n\nclass C {\n  static method(...x = []) {\n    \n  }\n}\n"
  ],
  [
    "test262-language--statements--class--method-static--object-destructuring-param-strict-body",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/function-forms/object-destructuring-param-strict-body.case\n// - src/function-forms/syntax/cls-decl-meth-static.template\n/*---\ndescription: ObjectBindingPattern and Use Strict Directive are not allowed to coexist for the same function. (static class expression method)\nesid: sec-runtime-semantics-bindingclassdeclarationevaluation\nfeatures: [rest-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    ClassDeclaration : class BindingIdentifier ClassTail\n\n    1. Let className be StringValue of BindingIdentifier.\n    2. Let value be the result of ClassDefinitionEvaluation of ClassTail with\n       argument className.\n    [...]\n\n    14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n    21. For each ClassElement m in order from methods\n        a. If IsStatic of m is false, then\n        b. Else,\n           Let status be the result of performing PropertyDefinitionEvaluation for\n           m with arguments F and false.\n    [...]\n\n    14.3.8 Runtime Semantics: DefineMethod\n\n    MethodDefinition : PropertyName ( StrictFormalParameters ) { FunctionBody }\n\n    [...]\n    6. Let closure be FunctionCreate(kind, StrictFormalParameters, FunctionBody,\n       scope, strict). If functionPrototype was passed as a parameter then pass its\n       value as the functionPrototype optional argument of FunctionCreate.\n    [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.4 Static Semantics: IsSimpleParameterList\n\n    BindingElement : BindingPattern\n\n    1. Return false.\n\n    14.1.2 Static Semantics: Early Errors\n\n    FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n    FunctionDeclaration : function ( FormalParameters ) { FunctionBody }\n    FunctionExpression : function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.2.1 Static Semantics: Early Errors\n\n    ArrowFunction : ArrowParameters => ConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of ConciseBody is true and\n      IsSimpleParameterList of ArrowParameters is false.\n\n    14.3.1 Static Semantics: Early Errors\n\n    MethodDefinition : PropertyName ( UniqueFormalParameters ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    MethodDefinition : set PropertyName ( PropertySetParameterList ) { FunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of FunctionBody is true and\n      IsSimpleParameterList of PropertySetParameterList is false.\n\n    14.4.1 Static Semantics: Early Errors\n\n    GeneratorMethod : * PropertyName ( UniqueFormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    GeneratorDeclaration : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n    GeneratorExpression : function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of GeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    14.5.1 Static Semantics: Early Errors\n\n    AsyncGeneratorMethod : async * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncGeneratorDeclaration : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorDeclaration : async function * ( FormalParameters ) { AsyncGeneratorBody }\n    AsyncGeneratorExpression : async function * BindingIdentifier ( FormalParameters ) { AsyncGeneratorBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.7.1 Static Semantics: Early Errors\n\n    AsyncMethod : async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of UniqueFormalParameters is false.\n\n    AsyncFunctionDeclaration : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionDeclaration : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function ( FormalParameters ) { AsyncFunctionBody }\n    AsyncFunctionExpression : async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncFunctionBody is true and\n      IsSimpleParameterList of FormalParameters is false.\n\n    14.8.1 Static Semantics: Early Errors\n\n    AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody\n\n    - It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is true and\n      IsSimpleParameterList of CoverCallExpressionAndAsyncArrowHead is false.\n\n---*/\n$DONOTEVALUATE();\n\nclass C {\n  static method({property}) {\n    \"use strict\";\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--private-static-setter-non-static-getter-early-error",
    "script",
    false,
    "standards",
    "// Copyright (C) 2019 Caio Lima (Igalia SL). All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: pending\ndescription: >\n    It is a Syntax Error if we declare a static private setter and a private instance getter\nfeatures: [class-static-methods-private, class-methods-private]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nclass C {\n  static set #f(v) {}\n  get #f() {}\n}\n\n"
  ],
  [
    "test262-language--statements--class--static-init-invalid-yield",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-class-definitions\ndescription: The \"Yield\" parsing context does not apply to the block's statement list\ninfo: |\n  Syntax\n\n  [...]\n\n  ClassStaticBlockStatementList :\n     StatementList[~Yield, +Await, ~Return]opt\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [class-static-block]\n---*/\n\n$DONOTEVALUATE();\n\nfunction * g() {\n  class C {\n    static {\n      yield;\n    }\n  }\n}\n"
  ],
  [
    "test262-language--statements--class--static-init-scope-private",
    "script",
    true,
    "standards",
    "// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-runtime-semantics-classstaticblockdefinitionevaluation\ndescription: Shares environment record for privately-scoped bindings\ninfo: |\n  ClassStaticBlock : static { ClassStaticBlockBody }\n\n    1. Let lex be the running execution context's LexicalEnvironment.\n    2. Let privateScope be the running execution context's PrivateEnvironment.\n    3. Let body be OrdinaryFunctionCreate(Method, « », ClassStaticBlockBody, lex, privateScope).\nfeatures: [class-fields-private, class-static-block]\n---*/\n\nvar probe;\n\nclass C {\n  static #test262 = 'private';\n\n  static {\n    probe = C.#test262;\n  }\n}\n\nassert.sameValue(probe, 'private');\n"
  ],
  [
    "test262-language--statements--class--static-init-scope-var-close",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-runtime-semantics-classstaticblockdefinitionevaluation\ndescription: Destruction of environment record for variable-scoped bindings\ninfo: |\n  ClassStaticBlock : static { ClassStaticBlockBody }\n\n    1. Let lex be the running execution context's LexicalEnvironment.\n    2. Let privateScope be the running execution context's PrivateEnvironment.\n    3. Let body be OrdinaryFunctionCreate(Method, « », ClassStaticBlockBody, lex, privateScope).\nfeatures: [class-static-block]\n---*/\n\nvar test262 = 'outer scope';\nvar probe;\n\nclass C {\n  static {\n    var test262 = 'first block';\n  }\n  static {\n    probe = test262;\n  }\n}\n\nassert.sameValue(probe, 'outer scope');\n"
  ],
  [
    "test262-language--statements--class--static-method-param-yield",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-method-definitions\nes6id: 14.3\ndescription: >\n  YieldExpression cannot be used within the FormalParameters of a class method\ninfo: |\n  MethodDefinition[Yield] :\n\n    PropertyName[?Yield] ( StrictFormalParameters ) { FunctionBody }\nfeatures: [generators, default-parameters]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nclass C {\n  static m(x = yield) {}\n}\n"
  ],
  [
    "test262-language--statements--class--subclass--builtin-objects--DataView--super-must-be-called",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 24.2.2\ndescription: Super need to be called to initialize internals\ninfo: |\n  24.2.2 The DataView Constructor\n\n  ...\n\n  The DataView constructor is designed to be subclassable. It may be used as the\n  value of an extends clause of a class definition. Subclass constructors that\n  intend to inherit the specified DataView behaviour must include a super call\n  to the DataView constructor to create and initialize subclass instances with\n  the internal state necessary to support the DataView.prototype built-in\n  methods.\n---*/\n\nclass DV1 extends DataView {\n  constructor() {}\n}\n\nvar buffer = new ArrayBuffer(1);\n\nassert.throws(ReferenceError, function() {\n  new DV1(buffer);\n});\n\nclass DV2 extends DataView {\n  constructor(length) {\n    super(length);\n  }\n}\n\nnew DV2(buffer);\n"
  ],
  [
    "test262-language--statements--class--subclass--builtin-objects--Date--regular-subclassing",
    "script",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 20.3.2\ndescription: Subclassing the String object\ninfo: |\n  20.3.2 The Date Constructor\n\n  ...\n\n  The Date constructor is a single function whose behaviour is overloaded based\n  upon the number and types of its arguments.\n\n  The Date constructor is designed to be subclassable. It may be used as the\n  value of an extends clause of a class definition. Subclass constructors that\n  intend to inherit the specified Date behaviour must include a super call to\n  the Date constructor to create and initialize the subclass instance with a\n  [[DateValue]] internal slot.\n---*/\n\nclass D extends Date {}\n\nvar d1 = new D(1859, '10', 24, 11);\nassert.sameValue(d1.getFullYear(), 1859);\nassert.sameValue(d1.getMonth(), 10);\nassert.sameValue(d1.getDate(), 24);\n\nvar d2 = new D(-3474558000000);\nassert.sameValue(d2.getUTCFullYear(), 1859);\nassert.sameValue(d2.getUTCMonth(), 10);\nassert.sameValue(d2.getUTCDate(), 24);\n\nvar d3 = new D();\nvar d4 = new Date();\nassert.sameValue(d3.getFullYear(), d4.getFullYear());\nassert.sameValue(d3.getMonth(), d4.getMonth());\nassert.sameValue(d3.getDate(), d4.getDate());\n"
  ],
  [
    "test262-language--statements--class--subclass--builtin-objects--Error--super-must-be-called",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 19.5.1\ndescription: Super need to be called to initialize internals\ninfo: |\n  19.5.1 The Error Constructor\n\n  ...\n  The Error constructor is designed to be subclassable. It may be used as the\n  alue of an extends clause of a class definition. Subclass constructors that\n  intend to inherit the specified Error behaviour must include a super call to\n  the Error constructor to create and initialize subclass instances with a\n  [[ErrorData]] internal slot.\n---*/\n\nclass CustomError extends Error {\n  constructor() {}\n}\n\nassert.throws(ReferenceError, function() {\n  new CustomError('foo');\n});\n"
  ],
  [
    "test262-language--statements--class--subclass--builtin-objects--Object--constructor-return-undefined-throws",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 9.2.2\ndescription: Throws a ReferenceError if constructor result is undefined\ninfo: |\n  9.2.2 [[Construct]] ( argumentsList, newTarget)\n\n  ...\n  11. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n  ...\n  13. If result.[[type]] is return, then\n    a. If Type(result.[[value]]) is Object, return\n    NormalCompletion(result.[[value]]).\n    ...\n    c. If result.[[value]] is not undefined, throw a TypeError exception.\n  ...\n  15. Return envRec.GetThisBinding().\n\n  8.1.1.3.4 GetThisBinding ()\n\n  ...\n  3. If envRec.[[thisBindingStatus]] is \"uninitialized\", throw a ReferenceError\n  exception.\n  ...\n\n---*/\n\nclass Obj extends Object {\n  constructor() {\n    return undefined;\n  }\n}\n\nclass Obj2 extends Object {\n  constructor() {}\n}\n\nassert.throws(ReferenceError, function() {\n  new Obj();\n});\n\nassert.throws(ReferenceError, function() {\n  new Obj2();\n});\n"
  ],
  [
    "test262-language--statements--class--subclass--builtin-objects--Promise--regular-subclassing",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 25.4.3\ndescription: Subclassing the Promise object\ninfo: |\n  25.4.3 The Promise Constructor\n\n  ...\n\n  The Promise constructor is designed to be subclassable. It may be used as the\n  value in an extends clause of a class definition. Subclass constructors that\n  intend to inherit the specified Promise behaviour must include a super call\n  to the Promise constructor to create and initialize the subclass instance with\n  the internal state necessary to support the Promise and Promise.prototype\n  built-in methods.\n---*/\n\nclass Prom extends Promise {}\n\nassert.throws(TypeError, function() {\n  new Prom();\n});\n\nvar calledExecutor = false;\nvar executorArguments;\n\nvar prom1 = new Prom(function() {\n  calledExecutor = true;\n  executorArguments = arguments;\n});\n\nassert(calledExecutor);\nassert.sameValue(executorArguments.length, 2);\nassert.sameValue(typeof executorArguments[0], \"function\");\nassert.sameValue(typeof executorArguments[1], \"function\");\n"
  ],
  [
    "test262-language--statements--class--subclass--builtin-objects--Proxy--no-prototype-throws",
    "script",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 14.5.14\ndescription: The Proxy Object is not subclasseable without a prototype\ninfo: |\n  14.5.14 Runtime Semantics: ClassDefinitionEvaluation\n\n  5. If ClassHeritageopt is not present, then\n    ...\n  6. Else\n    ...\n    e. If superclass is null, then\n      ...\n    f. Else if IsConstructor(superclass) is false, throw a TypeError exception.\n    g. Else\n      ...\n      ii. Let protoParent be Get(superclass, \"prototype\").\n      iii. ReturnIfAbrupt(protoParent).\n      iv. If Type(protoParent) is neither Object nor Null, throw a TypeError exception.\n\n  26.2.1 The Proxy Constructor\n\n  The Proxy constructor is the %Proxy% intrinsic object and the initial value of\n  the Proxy property of the global object. When called as a constructor it\n  creates and initializes a new proxy exotic object. Proxy is not intended to be\n  called as a function and will throw an exception when called in that manner.\n---*/\n\nassert.throws(TypeError, function() {\n  class P extends Proxy {}\n});\n"
  ],
  [
    "test262-language--statements--class--subclass--builtin-objects--Set--regular-subclassing",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 23.2.1\ndescription: Subclassing the Set object\ninfo: |\n  23.2.1 The Set Constructor\n\n  ...\n\n  The Set constructor is designed to be subclassable. It may be used as the\n  value in an extends clause of a class definition. Subclass constructors that\n  intend to inherit the specified Set behaviour must include a super call to the\n  Set constructor to create and initialize the subclass instance with the\n  internal state necessary to support the Set.prototype built-in methods.\n---*/\n\nclass S extends Set {}\n\nvar set = new S([{}, {}]);\n\nassert.sameValue(set.size, 2);\n\nset.add({});\n\nassert.sameValue(set.size, 3);\n"
  ],
  [
    "test262-language--statements--class--subclass--builtin-objects--String--super-must-be-called",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 21.1.1\ndescription: Super need to be called to initialize internals\ninfo: |\n  21.1.1 The String Constructor\n\n  ...\n  The String constructor is designed to be subclassable. It may be used as the\n  value of an extends clause of a class definition. Subclass constructors that\n  intend to inherit the specified String behaviour must include a super call to\n  the String constructor to create and initialize the subclass instance with a\n  [[StringData]] internal slot.\n---*/\n\nclass S1 extends String {\n  constructor() {}\n}\n\nassert.throws(ReferenceError, function() {\n  new S1();\n});\n\nclass S2 extends String {\n  constructor() {\n    super();\n  }\n}\n\nnew S2();\n"
  ],
  [
    "test262-language--statements--class--subclass--builtin-objects--Symbol--new-symbol-with-super-throws",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 19.4.1\ndescription: Symbol subclass called with the new operator throws on super()\ninfo: |\n  19.4.1 The Symbol Constructor\n\n  ...\n  The Symbol constructor is not intended to be used with the new operator or to\n  be subclassed. It may be used as the value of an extends clause of a class\n  definition but a super call to the Symbol constructor will cause an exception.\n\n  19.4.1.1 Symbol ( [ description ] )\n\n  ...\n  1. If NewTarget is not undefined, throw a TypeError exception.\nfeatures: [Symbol]\n---*/\n\nclass S1 extends Symbol {}\n\nassert.throws(TypeError, function() {\n  new S1();\n});\n\nclass S2 extends Symbol {\n  constructor() {\n    super();\n  }\n}\n\nassert.throws(TypeError, function() {\n  new S2();\n});\n\n"
  ],
  [
    "test262-language--statements--class--subclass-builtins--subclass-ArrayBuffer",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/subclass-builtins/ArrayBuffer.case\n// - src/subclass-builtins/default/statement.template\n/*---\ndescription: new SubArrayBuffer() instanceof ArrayBuffer (Subclass instanceof Heritage)\nfeatures: [TypedArray, ArrayBuffer]\nflags: [generated]\n---*/\n\n\nclass Subclass extends ArrayBuffer {}\n\nconst sub = new Subclass();\nassert(sub instanceof Subclass);\nassert(sub instanceof ArrayBuffer);\n"
  ],
  [
    "test262-language--statements--class--subclass-builtins--subclass-BigUint64Array",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/subclass-builtins/BigUint64Array.case\n// - src/subclass-builtins/default/statement.template\n/*---\ndescription: new SubBigUint64Array() instanceof BigUint64Array (Subclass instanceof Heritage)\nfeatures: [TypedArray, BigInt]\nflags: [generated]\n---*/\n\n\nclass Subclass extends BigUint64Array {}\n\nconst sub = new Subclass();\nassert(sub instanceof Subclass);\nassert(sub instanceof BigUint64Array);\n"
  ],
  [
    "test262-language--statements--class--subclass-builtins--subclass-Float32Array",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/subclass-builtins/Float32Array.case\n// - src/subclass-builtins/default/statement.template\n/*---\ndescription: new SubFloat32Array() instanceof Float32Array (Subclass instanceof Heritage)\nfeatures: [TypedArray, Float32Array]\nflags: [generated]\n---*/\n\n\nclass Subclass extends Float32Array {}\n\nconst sub = new Subclass();\nassert(sub instanceof Subclass);\nassert(sub instanceof Float32Array);\n"
  ],
  [
    "test262-language--statements--class--subclass-builtins--subclass-Int8Array",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/subclass-builtins/Int8Array.case\n// - src/subclass-builtins/default/statement.template\n/*---\ndescription: new SubInt8Array() instanceof Int8Array (Subclass instanceof Heritage)\nfeatures: [TypedArray, Int8Array]\nflags: [generated]\n---*/\n\n\nclass Subclass extends Int8Array {}\n\nconst sub = new Subclass();\nassert(sub instanceof Subclass);\nassert(sub instanceof Int8Array);\n"
  ],
  [
    "test262-language--statements--class--subclass-builtins--subclass-Uint32Array",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/subclass-builtins/Uint32Array.case\n// - src/subclass-builtins/default/statement.template\n/*---\ndescription: new SubUint32Array() instanceof Uint32Array (Subclass instanceof Heritage)\nfeatures: [TypedArray, Uint32Array]\nflags: [generated]\n---*/\n\n\nclass Subclass extends Uint32Array {}\n\nconst sub = new Subclass();\nassert(sub instanceof Subclass);\nassert(sub instanceof Uint32Array);\n"
  ],
  [
    "test262-language--statements--class--subclass-builtins--subclass-Uint8ClampedArray",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/subclass-builtins/Uint8ClampedArray.case\n// - src/subclass-builtins/default/statement.template\n/*---\ndescription: new SubUint8ClampedArray() instanceof Uint8ClampedArray (Subclass instanceof Heritage)\nfeatures: [TypedArray, Uint8ClampedArray]\nflags: [generated]\n---*/\n\n\nclass Subclass extends Uint8ClampedArray {}\n\nconst sub = new Subclass();\nassert(sub instanceof Subclass);\nassert(sub instanceof Uint8ClampedArray);\n"
  ],
  [
    "test262-language--statements--class--subclass-builtins--subclass-WeakMap",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/subclass-builtins/WeakMap.case\n// - src/subclass-builtins/default/statement.template\n/*---\ndescription: new SubWeakMap() instanceof WeakMap (Subclass instanceof Heritage)\nfeatures: [WeakMap]\nflags: [generated]\n---*/\n\n\nclass Subclass extends WeakMap {}\n\nconst sub = new Subclass();\nassert(sub instanceof Subclass);\nassert(sub instanceof WeakMap);\n"
  ],
  [
    "test262-language--statements--class--subclass-builtins--subclass-WeakSet",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/subclass-builtins/WeakSet.case\n// - src/subclass-builtins/default/statement.template\n/*---\ndescription: new SubWeakSet() instanceof WeakSet (Subclass instanceof Heritage)\nfeatures: [WeakSet]\nflags: [generated]\n---*/\n\n\nclass Subclass extends WeakSet {}\n\nconst sub = new Subclass();\nassert(sub instanceof Subclass);\nassert(sub instanceof WeakSet);\n"
  ],
  [
    "test262-language--statements--class--syntax--early-errors--class-definition-evaluation-block-duplicate-binding",
    "script",
    false,
    "standards",
    "// Copyright (C) 2015 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 13.1.1\ndescription: >\n    Block : { StatementList }\n\n    It is a Syntax Error if the LexicallyDeclaredNames of StatementList contains any duplicate entries.\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n{\n  class A {}\n  class A {}\n}\n"
  ],
  [
    "test262-language--statements--class--syntax--escaped-static",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-grammar-notation\ndescription: >\n  The `static` contextual keyword must not contain Unicode escape sequences.\ninfo: |\n  Terminal symbols are shown\n  in fixed width font, both in the productions of the grammars and throughout this\n  specification whenever the text directly refers to such a terminal symbol. These\n  are to appear in a script exactly as written. All terminal symbol code points\n  specified in this way are to be understood as the appropriate Unicode code points\n  from the Basic Latin range, as opposed to any similar-looking code points from\n  other Unicode ranges.\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nclass C {\n  st\\u0061tic m() {}\n}\n"
  ],
  [
    "test262-language--statements--continue--S12.7_A5_T2",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: |\n    When \"continue Identifier\" is evaluated Identifier must be label in the\n    label set of an enclosing (but not crossing function boundaries)\n    IterationStatement\nes5id: 12.7_A5_T2\ndescription: Identifier is a function name\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nLABEL_OUT : var x=0, y=0;\nLABEL_DO_LOOP : do {\n   LABEL_IN : x++;\n   if(x===10)break;\n   continue IN_DO_FUNC;\n   LABEL_IN_2 : y++;\n   function IN_DO_FUNC(){}\n} while(0);\n\nLABEL_ANOTHER_LOOP : do {\n    ;\n} while(0);\n\nfunction OUT_FUNC(){};\n"
  ],
  [
    "test262-language--statements--continue--shadowing-loop-variable-in-same-scope-as-continue",
    "script",
    true,
    "standards",
    "// Copyright (C) 2014 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 13.12\ndescription: >\n    shadowing loop variable in same scope as continue\n---*/\nvar count = 0;\nfor (let x = 0; x < 10;) {\n  x++;\n  count++;\n  {\n    let x = \"hello\";\n    continue;\n  }\n}\nassert.sameValue(count, 10, \"The value of `count` is `10`\");\n"
  ],
  [
    "test262-language--statements--continue--static-init-with-label",
    "script",
    false,
    "standards",
    "// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-continue-statement\ndescription: IterationStatement search does not traverse static initialization block boundaries (label specified)\ninfo: |\n  4.1.1 Static Semantics: Early Errors\n    ContinueStatement : continue ;\n    ContinueStatement : continue LabelIdentifier ;\n\n    - It is a Syntax Error if this ContinueStatement is not nested, directly or\n      indirectly (but not crossing function or static initialization block\n      boundaries), within an IterationStatement.\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [class-static-block]\n---*/\n\n$DONOTEVALUATE();\n\nlabel: while(false) {\n  class C {\n    static {\n      continue label;\n    }\n  }\n}\n"
  ],
  [
    "test262-language--statements--do-while--S12.6.1_A6_T2",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: Expression in \"do-while\" IterationStatement is bracketed with braces\nes5id: 12.6.1_A6_T2\ndescription: Checking if execution of \"do{} while 0\" fails\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n//////////////////////////////////////////////////////////////////////////////\n//CHECK#1\ndo break; while 0;\n//\n//////////////////////////////////////////////////////////////////////////////\n"
  ],
  [
    "test262-language--statements--do-while--decl-async-fun",
    "script",
    false,
    "standards",
    "// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-do-while-statement\ndescription: >\n  AsyncFunctionDeclaration is not allowed in statement position\ninfo: |\n  ExpressionStatement[Yield, Await] :\n    [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]\n    Expression[+In, ?Yield, ?Await] ;\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [async-functions]\n---*/\n\n$DONOTEVALUATE();\n\ndo async function f() {} while (false)\n"
  ],
  [
    "test262-language--statements--do-while--decl-gen",
    "script",
    false,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Generator declaration not allowed in statement position\nesid: sec-do-while-statement\nes6id: 13.7.2\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [generators]\n---*/\n\n$DONOTEVALUATE();\n\ndo function* g() {} while (false)\n"
  ],
  [
    "test262-language--statements--for--decl-gen",
    "script",
    false,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Generator declaration not allowed in statement position\nesid: sec-for-statement\nes6id: 13.7.4\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [generators]\n---*/\n\n$DONOTEVALUATE();\n\nfor ( ; false; ) function* g() {}\n"
  ],
  [
    "test262-language--statements--for--dstr--let-ary-ptrn-rest-ary-empty",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-ary-empty.case\n// - src/dstr-binding/default/for-let.template\n/*---\ndescription: Rest element containing an \"empty\" array pattern (for statement)\nesid: sec-for-statement-runtime-semantics-labelledevaluation\nfeatures: [generators, destructuring-binding]\nflags: [generated]\ninfo: |\n    IterationStatement :\n        for ( LexicalDeclaration Expressionopt ; Expressionopt ) Statement\n\n    [...]\n    7. Let forDcl be the result of evaluating LexicalDeclaration.\n    [...]\n\n    LexicalDeclaration : LetOrConst BindingList ;\n\n    1. Let next be the result of evaluating BindingList.\n    2. ReturnIfAbrupt(next).\n    3. Return NormalCompletion(empty).\n\n    BindingList : BindingList , LexicalBinding\n\n    1. Let next be the result of evaluating BindingList.\n    2. ReturnIfAbrupt(next).\n    3. Return the result of evaluating LexicalBinding.\n\n    LexicalBinding : BindingPattern Initializer\n\n    1. Let rhs be the result of evaluating Initializer.\n    2. Let value be GetValue(rhs).\n    3. ReturnIfAbrupt(value).\n    4. Let env be the running execution context’s LexicalEnvironment.\n    5. Return the result of performing BindingInitialization for BindingPattern\n       using value and env as the arguments.\n\n    13.3.3.6 Runtime Semantics: IteratorBindingInitialization\n\n    BindingRestElement : ... BindingPattern\n\n    1. Let A be ArrayCreate(0).\n    [...]\n    3. Repeat\n       [...]\n       b. If iteratorRecord.[[done]] is true, then\n          i. Return the result of performing BindingInitialization of\n             BindingPattern with A and environment as the arguments.\n       [...]\n\n    13.3.3.6 Runtime Semantics: IteratorBindingInitialization\n\n    ArrayBindingPattern : [ ]\n\n    1. Return NormalCompletion(empty).\n\n---*/\nvar iterations = 0;\nvar iter = function*() {\n  iterations += 1;\n}();\n\nvar iterCount = 0;\n\nfor (let [...[]] = iter; iterCount < 1; ) {\n  assert.sameValue(iterations, 1);\n\n  iterCount += 1;\n}\n\nassert.sameValue(iterCount, 1, 'Iteration occurred as expected');\n"
  ],
  [
    "test262-language--statements--for--dstr--var-ary-ptrn-rest-init-ary",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-init-ary.case\n// - src/dstr-binding/default/for-var.template\n/*---\ndescription: Rest element (nested array pattern) does not support initializer (for statement)\nesid: sec-for-statement-runtime-semantics-labelledevaluation\nfeatures: [destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    IterationStatement :\n        for ( var VariableDeclarationList ; Expressionopt ; Expressionopt ) Statement\n\n    1. Let varDcl be the result of evaluating VariableDeclarationList.\n    [...]\n\n    13.3.2.4 Runtime Semantics: Evaluation\n\n    VariableDeclarationList : VariableDeclarationList , VariableDeclaration\n\n    1. Let next be the result of evaluating VariableDeclarationList.\n    2. ReturnIfAbrupt(next).\n    3. Return the result of evaluating VariableDeclaration.\n\n    VariableDeclaration : BindingPattern Initializer\n\n    1. Let rhs be the result of evaluating Initializer.\n    2. Let rval be GetValue(rhs).\n    3. ReturnIfAbrupt(rval).\n    4. Return the result of performing BindingInitialization for BindingPattern\n       passing rval and undefined as arguments.\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar iterCount = 0;\n\nfor (var [...[ x ] = []] = []; iterCount < 1; ) {\n  \n  iterCount += 1;\n}\n\nassert.sameValue(iterCount, 1, 'Iteration occurred as expected');\n"
  ],
  [
    "test262-language--statements--for-await-of--async-func-dstr-const-ary-ptrn-elision-exhausted",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case\n// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template\n/*---\ndescription: Elision accepts exhausted iterator (for-await-of statement)\nesid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation\nfeatures: [generators, destructuring-binding, async-iteration]\nflags: [generated, async]\ninfo: |\n    IterationStatement :\n        for await ( ForDeclaration of AssignmentExpression ) Statement\n\n    [...]\n    2. Return ? ForIn/OfBodyEvaluation(ForDeclaration, Statement, keyResult,\n        lexicalBinding, labelSet, async).\n\n    13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation\n\n    [...]\n    4. Let destructuring be IsDestructuring of lhs.\n    [...]\n    6. Repeat\n       [...]\n       j. If destructuring is false, then\n          [...]\n       k. Else\n          i. If lhsKind is assignment, then\n             [...]\n          ii. Else if lhsKind is varBinding, then\n              [...]\n          iii. Else,\n               1. Assert: lhsKind is lexicalBinding.\n               2. Assert: lhs is a ForDeclaration.\n               3. Let status be the result of performing BindingInitialization\n                  for lhs passing nextValue and iterationEnv as arguments.\n          [...]\n\n    13.3.3.6 Runtime Semantics: IteratorBindingInitialization\n\n    ArrayBindingPattern : [ Elision ]\n\n    1. Return the result of performing\n       IteratorDestructuringAssignmentEvaluation of Elision with iteratorRecord\n       as the argument.\n\n    12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation\n\n    Elision : ,\n\n    1. If iteratorRecord.[[done]] is false, then\n       [...]\n    2. Return NormalCompletion(empty).\n\n---*/\nvar iter = function*() {}();\niter.next();\n\nvar iterCount = 0;\n\nasync function fn() {\n  for await (const [,] of [iter]) {\n    \n\n    iterCount += 1;\n  }\n}\n\nfn()\n  .then(() => assert.sameValue(iterCount, 1, 'iteration occurred as expected'), $DONE)\n  .then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--for-await-of--async-gen-decl-dstr-array-elem-iter-rtrn-close-null",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-assignment-for-await/array-elem-iter-rtrn-close-null.case\n// - src/dstr-assignment-for-await/async-generator/async-gen-decl.template\n/*---\ndescription: IteratorClose throws a TypeError when `return` returns a non-Object value (for-await-of statement in an async generator declaration)\nesid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation\nfeatures: [Symbol.iterator, generators, destructuring-binding, async-iteration]\nflags: [generated, async]\ninfo: |\n    IterationStatement :\n      for await ( LeftHandSideExpression of AssignmentExpression ) Statement\n\n    1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,\n       AssignmentExpression, iterate).\n    2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,\n       keyResult, assignment, labelSet).\n\n    13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation\n\n    [...]\n    5. If destructuring is true and if lhsKind is assignment, then\n       a. Assert: lhs is a LeftHandSideExpression.\n       b. Let assignmentPattern be the parse of the source text corresponding to\n          lhs using AssignmentPattern as the goal symbol.\n    [...]\n\n    ArrayAssignmentPattern : [ AssignmentElementList ]\n\n    [...]\n    4. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, result).\n    5. Return result.\n\n    7.4.6 IteratorClose( iterator, completion )\n\n    [...]\n    5. Let innerResult be Call(return, iterator, « »).\n    6. If completion.[[Type]] is throw, return Completion(completion).\n    7. If innerResult.[[Type]] is throw, return Completion(innerResult).\n    8. If Type(innerResult.[[Value]]) is not Object, throw a TypeError exception.\n\n---*/\nlet unreachable = 0;\nlet nextCount = 0;\nlet returnCount = 0;\nlet iterator = {\n  next() {\n    nextCount += 1;\n    return {done: false, value: undefined};\n  },\n  return() {\n    returnCount += 1;\n    return null;\n  }\n};\nlet iterable = {\n  [Symbol.iterator]() {\n    return iterator;\n  }\n};\n\nlet iterCount = 0;\nasync function * fn() {\n  for await ([ {} = yield ] of [iterable]) {\n    unreachable += 1;\n    iterCount += 1;\n  }\n}\n\nlet iter = fn();\n\niter.next().then(result => {\n  assert.sameValue(nextCount, 1);\n  assert.sameValue(returnCount, 0);\n  assert.sameValue(result.value, undefined);\n  assert.sameValue(result.done, false);\n\n  iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {\n    assert.sameValue(nextCount, 1);\n    assert.sameValue(returnCount, 1);\n    assert.sameValue(unreachable, 0);\n    assert.sameValue(constructor, TypeError);\n  }).then($DONE, $DONE);\n}, $DONE).catch($DONE);\n"
  ],
  [
    "test262-language--statements--for-await-of--async-gen-decl-dstr-array-elem-put-const",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-assignment-for-await/array-elem-put-const.case\n// - src/dstr-assignment-for-await/default/async-gen-decl.template\n/*---\ndescription: The assignment target should obey `const` semantics. (for-await-of statement in an async generator declaration)\nesid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation\nfeatures: [const, destructuring-binding, async-iteration]\nflags: [generated, async]\ninfo: |\n    IterationStatement :\n      for await ( LeftHandSideExpression of AssignmentExpression ) Statement\n\n    1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,\n       AssignmentExpression, iterate).\n    2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,\n       keyResult, assignment, labelSet).\n\n    13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation\n\n    [...]\n    5. If destructuring is true and if lhsKind is assignment, then\n       a. Assert: lhs is a LeftHandSideExpression.\n       b. Let assignmentPattern be the parse of the source text corresponding to\n          lhs using AssignmentPattern as the goal symbol.\n    [...]\n---*/\nconst c = null;\n\nlet iterCount = 0;\nasync function * fn() {\n  for await ([ c ] of [[1]]) {\n    \n    iterCount += 1;\n  }\n}\n\nlet promise = fn().next();\n\npromise.then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {\n  assert.sameValue(iterCount, 0);\n  assert.sameValue(constructor, TypeError);\n}).then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--for-await-of--async-gen-decl-dstr-obj-empty-symbol",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-assignment-for-await/obj-empty-symbol.case\n// - src/dstr-assignment-for-await/default/async-gen-decl.template\n/*---\ndescription: An ObjectAssignmentPattern without an AssignmentPropertyList requires an object-coercible value (symbol value) (for-await-of statement in an async generator declaration)\nesid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation\nfeatures: [Symbol, destructuring-binding, async-iteration]\nflags: [generated, async]\ninfo: |\n    IterationStatement :\n      for await ( LeftHandSideExpression of AssignmentExpression ) Statement\n\n    1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,\n       AssignmentExpression, iterate).\n    2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,\n       keyResult, assignment, labelSet).\n\n    13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation\n\n    [...]\n    5. If destructuring is true and if lhsKind is assignment, then\n       a. Assert: lhs is a LeftHandSideExpression.\n       b. Let assignmentPattern be the parse of the source text corresponding to\n          lhs using AssignmentPattern as the goal symbol.\n    [...]\n---*/\nlet s = Symbol();\n\nlet iterCount = 0;\nasync function * fn() {\n  for await ({} of [s]) {\n    \n    iterCount += 1;\n  }\n}\n\nlet promise = fn().next();\n\npromise\n  .then(() => assert.sameValue(iterCount, 1, 'iteration occurred as expected'), $DONE)\n  .then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--for-await-of--async-gen-decl-dstr-obj-rest-symbol-val",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-assignment-for-await/obj-rest-symbol-val.case\n// - src/dstr-assignment-for-await/default/async-gen-decl.template\n/*---\ndescription: RestBindingInitialization creates a new object if lhs is a Symbol (for-await-of statement in an async generator declaration)\nesid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation\nfeatures: [object-rest, Symbol, destructuring-binding, async-iteration]\nflags: [generated, async]\ninfo: |\n    IterationStatement :\n      for await ( LeftHandSideExpression of AssignmentExpression ) Statement\n\n    1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,\n       AssignmentExpression, iterate).\n    2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,\n       keyResult, assignment, labelSet).\n\n    13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation\n\n    [...]\n    5. If destructuring is true and if lhsKind is assignment, then\n       a. Assert: lhs is a LeftHandSideExpression.\n       b. Let assignmentPattern be the parse of the source text corresponding to\n          lhs using AssignmentPattern as the goal symbol.\n    [...]\n---*/\nlet rest;\n\n\nlet iterCount = 0;\nasync function * fn() {\n  for await ({...rest} of [Symbol(\"foo\")]) {\n    assert.notSameValue(rest, undefined);\n    assert.notSameValue(rest, null);\n    assert(rest instanceof Object);\n\n    iterCount += 1;\n  }\n}\n\nlet promise = fn().next();\n\npromise\n  .then(() => assert.sameValue(iterCount, 1, 'iteration occurred as expected'), $DONE)\n  .then($DONE, $DONE);\n"
  ],
  [
    "test262-language--statements--for-await-of--async-gen-dstr-const-obj-ptrn-init-err",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2019 Aleksey Shvayka. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-iteration-statements\ndescription: >\n  Initializer is not allowed in head's ForDeclaration position.\ninfo: |\n  IterationStatement:\n    for await (ForDeclaration of AssignmentExpression) Statement\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [async-iteration]\n---*/\n\n$DONOTEVALUATE();\n\nasync function fn() {\n  for await (const {x} = 1 of []) {}\n}\n"
  ],
  [
    "test262-language--statements--for-await-of--ticks-with-async-iter-resolved-promise-and-constructor-lookup",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2019 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-runtime-semantics-forin-div-ofbodyevaluation-lhs-stmt-iterator-lhskind-labelset\ndescription: >\n  Ensure the number of ticks and Promise constructor lookups is correct with custom async iterator.\ninfo: |\n  13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation ( lhs, stmt, iteratorRecord, iterationKind,\n                                                        lhsKind, labelSet [ , iteratorKind ] )\n  6.2.3.1 Await\n\nincludes: [compareArray.js]\nflags: [async]\nfeatures: [async-iteration]\n---*/\n\n// The expected event log.\nvar expected = [\n  // Before entering loop.\n  \"pre\",\n\n  // Await promise resolved.\n  \"tick 1\",\n\n  // In loop body.\n  \"loop\",\n\n  // Await promise resolved\n  \"tick 2\",\n\n  // After exiting loop.\n  \"post\",\n];\n\n// The actual event log.\nvar actual = [];\n\n// Custom async iterator directly using a synchronous iterator.\nfunction toAsyncIterator(iterable) {\n  return {\n    [Symbol.asyncIterator]() {\n      return iterable[Symbol.iterator]();\n    }\n  };\n}\n\n// Test function using for-await with a single, already resolved Promise.\nasync function f() {\n  var p = Promise.resolve(0);\n  actual.push(\"pre\");\n  for await (var x of toAsyncIterator([p])) {\n    actual.push(\"loop\");\n  }\n  actual.push(\"post\");\n}\n\n// Count the number of ticks needed to complete the loop and compare the actual log.\nPromise.resolve(0)\n  .then(() => actual.push(\"tick 1\"))\n  .then(() => actual.push(\"tick 2\"))\n  .then(() => {\n    assert.compareArray(actual, expected, \"Ticks and constructor lookups\");\n}).then($DONE, $DONE);\n\n// Redefine `Promise.constructor` in order to intercept \"constructor\" lookups from PromiseResolve.\n// (Perform last so that the lookups from SpeciesConstructor in `then` aren't logged.)\nObject.defineProperty(Promise.prototype, \"constructor\", {\n  get() {\n    actual.push(\"constructor\");\n    return Promise;\n  },\n  configurable: true,\n});\n\n// Start the asynchronous function.\nf();\n"
  ],
  [
    "test262-language--statements--for-in--decl-async-fun",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-for-in-and-for-of-statements\ndescription: >\n  AsyncFunctionDeclaration is not allowed in statement position\ninfo: |\n  ExpressionStatement[Yield, Await] :\n    [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]\n    Expression[+In, ?Yield, ?Await] ;\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [async-functions]\n---*/\n\n$DONOTEVALUATE();\n\nfor (var x in {}) async function f() {}\n"
  ],
  [
    "test262-language--statements--for-in--decl-async-gen",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-for-in-and-for-of-statements\ndescription: >\n  AsyncGeneratorDeclaration is not allowed in statement position\ninfo: |\n  ExpressionStatement[Yield, Await] :\n    [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]\n    Expression[+In, ?Yield, ?Await] ;\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [async-iteration]\n---*/\n\n$DONOTEVALUATE();\n\nfor (var x in {}) async function* g() {}\n"
  ],
  [
    "test262-language--statements--for-in--decl-let",
    "script",
    false,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Lexical declaration (let) not allowed in statement position\nesid: sec-for-in-and-for-of-statements\nes6id: 13.7.5\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nfor (var x in {}) let y;\n"
  ],
  [
    "test262-language--statements--for-in--dstr--array-elem-nested-memberexpr-optchain-prop-ref-init",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-assignment/array-elem-nested-memberexpr-optchain-prop-ref-init.case\n// - src/dstr-assignment/syntax/for-in.template\n/*---\ndescription: It is a Syntax Error if LeftHandSideExpression of an DestructuringAssignmentTarget is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType(LeftHandSideExpression) is not simple Using Object (MemberExpression OptionalChain .IdentifierName Initializer) (For..in statement)\nesid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation\nfeatures: [optional-chaining, destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    IterationStatement :\n      for ( LeftHandSideExpression of AssignmentExpression ) Statement\n\n    1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,\n       AssignmentExpression, iterate).\n    2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,\n       keyResult, assignment, labelSet).\n\n    13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation\n\n    [...]\n    4. If destructuring is true and if lhsKind is assignment, then\n       a. Assert: lhs is a LeftHandSideExpression.\n       b. Let assignmentPattern be the parse of the source text corresponding to\n          lhs using AssignmentPattern as the goal symbol.\n    [...]\n\n    Syntax\n\n    AssignmentElement : DestructuringAssignmentTarget Initializer_opt\n    DestructuringAssignmentTarget : LeftHandSideExpression\n\n    Static Semantics: Early Errors\n\n    OptionalExpression:\n      MemberExpression OptionalChain\n      CallExpression OptionalChain\n      OptionalExpression OptionalChain\n\n    OptionalChain:\n      ?. [ Expression ]\n      ?. IdentifierName\n      ?. Arguments \n      ?. TemplateLiteral\n      OptionalChain [ Expression ]\n      OptionalChain .IdentifierName\n      OptionalChain Arguments \n      OptionalChain TemplateLiteral\n\n    DestructuringAssignmentTarget : LeftHandSideExpression\n\n    - It is a Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget(LeftHandSideExpression) is not true.\n\n    Static Semantics: IsValidSimpleAssignmentTarget\n\n    LeftHandSideExpression : OptionalExpression\n      1. Return false.\n\n---*/\n$DONOTEVALUATE();\nvar x = {};\n\nfor ([x?.y = 42] in [[23]]) ;\n"
  ],
  [
    "test262-language--statements--for-in--dstr--obj-id-identifier-yield-expr",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-assignment/obj-id-identifier-yield-expr.case\n// - src/dstr-assignment/syntax/for-in.template\n/*---\ndescription: yield is not a valid IdentifierReference in an AssignmentProperty within generator function bodies. (For..in statement)\nesid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation\nfeatures: [generators, destructuring-binding]\nflags: [generated, noStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    IterationStatement :\n      for ( LeftHandSideExpression of AssignmentExpression ) Statement\n\n    1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,\n       AssignmentExpression, iterate).\n    2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,\n       keyResult, assignment, labelSet).\n\n    13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation\n\n    [...]\n    4. If destructuring is true and if lhsKind is assignment, then\n       a. Assert: lhs is a LeftHandSideExpression.\n       b. Let assignmentPattern be the parse of the source text corresponding to\n          lhs using AssignmentPattern as the goal symbol.\n    [...]\n---*/\n$DONOTEVALUATE();\n(function*() {\n\nfor ({ yield } in [{}]) ;\n\n});\n"
  ],
  [
    "test262-language--statements--for-in--dstr--obj-rest-not-last-element-invalid",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-assignment/obj-rest-not-last-element-invalid.case\n// - src/dstr-assignment/syntax/for-in.template\n/*---\ndescription: Object rest element needs to be the last AssignmenProperty in ObjectAssignmentPattern. (For..in statement)\nesid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation\nfeatures: [object-rest, destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    IterationStatement :\n      for ( LeftHandSideExpression of AssignmentExpression ) Statement\n\n    1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,\n       AssignmentExpression, iterate).\n    2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,\n       keyResult, assignment, labelSet).\n\n    13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation\n\n    [...]\n    4. If destructuring is true and if lhsKind is assignment, then\n       a. Assert: lhs is a LeftHandSideExpression.\n       b. Let assignmentPattern be the parse of the source text corresponding to\n          lhs using AssignmentPattern as the goal symbol.\n    [...]\n---*/\n$DONOTEVALUATE();\nvar rest, b;\n\nfor ({...rest, b} in [{}\n]) ;\n"
  ],
  [
    "test262-language--statements--for-of--cptn-decl-abrupt-empty",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nes6id: 13.7.5.11\ndescription: >\n    Completion value when head has a declaration and iteration is cancelled\ninfo: |\n    IterationStatement : for ( var ForBinding of AssignmentExpression ) Statement\n\n    1. Let keyResult be the result of performing ForIn/OfHeadEvaluation( « »,\n       AssignmentExpression, iterate).\n    2. ReturnIfAbrupt(keyResult).\n    3. Return ForIn/OfBodyEvaluation(ForBinding, Statement, keyResult,\n       varBinding, labelSet).\n\n    13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation\n\n    [...]\n    2. Let V = undefined.\n    [...]\n    5. Repeat\n       a. Let nextResult be IteratorStep(iterator).\n       b. ReturnIfAbrupt(nextResult).\n       c. If nextResult is false, return NormalCompletion(V).\n       [...]\n       k. Let result be the result of evaluating stmt.\n       [...]\n       m. If LoopContinues(result, labelSet) is false, return\n          IteratorClose(iterator, UpdateEmpty(result, V)).\n---*/\n\nassert.sameValue(eval('1; for (var a of [0]) { break; }'), undefined);\nassert.sameValue(eval('2; for (var b of [0]) { 3; break; }'), 3);\n\nassert.sameValue(\n  eval('4; outer: do { for (var a of [0]) { continue outer; } } while (false)'),\n  undefined\n);\nassert.sameValue(\n  eval('5; outer: do { for (var b of [0]) { 6; continue outer; } } while (false)'),\n  6\n);\n"
  ],
  [
    "test262-language--statements--for-of--decl-async-fun",
    "script",
    false,
    "standards",
    "// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-for-in-and-for-of-statements\ndescription: >\n  AsyncFunctionDeclaration is not allowed in statement position\ninfo: |\n  ExpressionStatement[Yield, Await] :\n    [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]\n    Expression[+In, ?Yield, ?Await] ;\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [async-functions]\n---*/\n\n$DONOTEVALUATE();\n\nfor (var x of []) async function f() {}\n"
  ],
  [
    "test262-language--statements--for-of--decl-async-gen",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-for-in-and-for-of-statements\ndescription: >\n  AsyncGeneratorDeclaration is not allowed in statement position\ninfo: |\n  ExpressionStatement[Yield, Await] :\n    [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]\n    Expression[+In, ?Yield, ?Await] ;\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [async-iteration]\n---*/\n\n$DONOTEVALUATE();\n\nfor (var x of []) async function* g() {}\n"
  ],
  [
    "test262-language--statements--for-of--dstr--array-elem-put-obj-literal-optchain-prop-ref-init",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-assignment/array-elem-put-obj-literal-optchain-prop-ref-init.case\n// - src/dstr-assignment/syntax/for-of.template\n/*---\ndescription: It is a Syntax Error if LeftHandSideExpression of an DestructuringAssignmentTarget is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType(LeftHandSideExpression) is not simple Using Object (For..of statement)\nesid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation\nfeatures: [optional-chaining, destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    IterationStatement :\n      for ( LeftHandSideExpression of AssignmentExpression ) Statement\n\n    1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,\n       AssignmentExpression, iterate).\n    2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,\n       keyResult, assignment, labelSet).\n\n    13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation\n\n    [...]\n    4. If destructuring is true and if lhsKind is assignment, then\n       a. Assert: lhs is a LeftHandSideExpression.\n       b. Let assignmentPattern be the parse of the source text corresponding to\n          lhs using AssignmentPattern as the goal symbol.\n    [...]\n\n    Syntax\n\n    AssignmentElement : DestructuringAssignmentTarget Initializer_opt\n    DestructuringAssignmentTarget : LeftHandSideExpression\n\n    Static Semantics: Early Errors\n\n    OptionalExpression:\n      MemberExpression OptionalChain\n      CallExpression OptionalChain\n      OptionalExpression OptionalChain\n\n    OptionalChain:\n      ?. [ Expression ]\n      ?. IdentifierName\n      ?. Arguments \n      ?. TemplateLiteral\n      OptionalChain [ Expression ]\n      OptionalChain .IdentifierName\n      OptionalChain Arguments \n      OptionalChain TemplateLiteral\n\n    DestructuringAssignmentTarget : LeftHandSideExpression\n\n    - It is a Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget(LeftHandSideExpression) is not true.\n\n    Static Semantics: IsValidSimpleAssignmentTarget\n\n    LeftHandSideExpression : OptionalExpression\n      1. Return false.\n\n---*/\n$DONOTEVALUATE();\n\nfor ([{\n  set y(val) {\n    throw new Test262Error('The property should not be accessed.');\n  }\n}?.y = 42] of [[23]]) ;\n"
  ],
  [
    "test262-language--statements--for-of--dstr--obj-id-identifier-yield-expr",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-assignment/obj-id-identifier-yield-expr.case\n// - src/dstr-assignment/syntax/for-of.template\n/*---\ndescription: yield is not a valid IdentifierReference in an AssignmentProperty within generator function bodies. (For..of statement)\nesid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation\nfeatures: [generators, destructuring-binding]\nflags: [generated, noStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    IterationStatement :\n      for ( LeftHandSideExpression of AssignmentExpression ) Statement\n\n    1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,\n       AssignmentExpression, iterate).\n    2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,\n       keyResult, assignment, labelSet).\n\n    13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation\n\n    [...]\n    4. If destructuring is true and if lhsKind is assignment, then\n       a. Assert: lhs is a LeftHandSideExpression.\n       b. Let assignmentPattern be the parse of the source text corresponding to\n          lhs using AssignmentPattern as the goal symbol.\n    [...]\n---*/\n$DONOTEVALUATE();\n(function*() {\n\nfor ({ yield } of [{}]) ;\n\n});\n"
  ],
  [
    "test262-language--statements--for-of--head-const-bound-names-dup",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: The head's declaration may not contain duplicate entries\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    It is a Syntax Error if the BoundNames of ForDeclaration contains any\n    duplicate entries.\nesid: sec-for-in-and-for-of-statements\nes6id: 13.7.5\n---*/\n\n$DONOTEVALUATE();\n\nfor (const [x, x] of []) {}\n"
  ],
  [
    "test262-language--statements--function--dstr--ary-ptrn-elem-ary-elision-init",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case\n// - src/dstr-binding/default/func-decl.template\n/*---\ndescription: BindingElement with array binding pattern and initializer is used (function declaration)\nesid: sec-function-definitions-runtime-semantics-instantiatefunctionobject\nfeatures: [generators, destructuring-binding]\nflags: [generated]\ninfo: |\n    FunctionDeclaration :\n        function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n        [...]\n        3. Let F be FunctionCreate(Normal, FormalParameters, FunctionBody,\n           scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.6 Runtime Semantics: IteratorBindingInitialization\n\n    BindingElement : BindingPatternInitializer opt\n\n    [...]\n    2. If iteratorRecord.[[done]] is true, let v be undefined.\n    3. If Initializer is present and v is undefined, then\n       a. Let defaultValue be the result of evaluating Initializer.\n       b. Let v be ? GetValue(defaultValue).\n    4. Return the result of performing BindingInitialization of BindingPattern\n       with v and environment as the arguments.\n\n---*/\nvar first = 0;\nvar second = 0;\nfunction* g() {\n  first += 1;\n  yield;\n  second += 1;\n};\n\nvar callCount = 0;\nfunction f([[,] = g()]) {\n  assert.sameValue(first, 1);\n  assert.sameValue(second, 0);\n  callCount = callCount + 1;\n};\nf([]);\nassert.sameValue(callCount, 1, 'function invoked exactly once');\n"
  ],
  [
    "test262-language--statements--function--dstr--ary-ptrn-rest-not-final-id",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-id.case\n// - src/dstr-binding/default/func-decl.template\n/*---\ndescription: Rest element (identifier) may not be followed by any element (function declaration)\nesid: sec-function-definitions-runtime-semantics-instantiatefunctionobject\nfeatures: [destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    FunctionDeclaration :\n        function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n        [...]\n        3. Let F be FunctionCreate(Normal, FormalParameters, FunctionBody,\n           scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nfunction f([...x, y]) {\n  \n  callCount = callCount + 1;\n};\nf([1, 2, 3]);\nassert.sameValue(callCount, 1, 'function invoked exactly once');\n"
  ],
  [
    "test262-language--statements--function--dstr--dflt-ary-ptrn-elem-id-iter-step-err",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-elem-id-iter-step-err.case\n// - src/dstr-binding/error/func-decl-dflt.template\n/*---\ndescription: Error forwarding when IteratorStep returns an abrupt completion (function declaration (default parameter))\nesid: sec-function-definitions-runtime-semantics-instantiatefunctionobject\nfeatures: [Symbol.iterator, destructuring-binding, default-parameters]\nflags: [generated]\ninfo: |\n    FunctionDeclaration :\n        function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n        [...]\n        3. Let F be FunctionCreate(Normal, FormalParameters, FunctionBody,\n           scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3.6 Runtime Semantics: IteratorBindingInitialization\n\n    SingleNameBinding : BindingIdentifier Initializeropt\n\n    [...]\n    4. If iteratorRecord.[[done]] is false, then\n       a. Let next be IteratorStep(iteratorRecord.[[iterator]]).\n       b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.\n       c. ReturnIfAbrupt(next).\n\n---*/\nvar g = {};\ng[Symbol.iterator] = function() {\n  return {\n    next: function() {\n      throw new Test262Error();\n    }\n  };\n};\n\nfunction f([x] = g) {}\n\nassert.throws(Test262Error, function() {\n  f();\n});\n"
  ],
  [
    "test262-language--statements--function--dstr--dflt-ary-ptrn-rest-not-final-obj",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case\n// - src/dstr-binding/default/func-decl-dflt.template\n/*---\ndescription: Rest element (object binding pattern) may not be followed by any element (function declaration (default parameter))\nesid: sec-function-definitions-runtime-semantics-instantiatefunctionobject\nfeatures: [destructuring-binding, default-parameters]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    FunctionDeclaration :\n        function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n        [...]\n        3. Let F be FunctionCreate(Normal, FormalParameters, FunctionBody,\n           scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\nfunction f([...{ x }, y] = [1, 2, 3]) {\n  \n  callCount = callCount + 1;\n};\nf();\nassert.sameValue(callCount, 1, 'function invoked exactly once');\n"
  ],
  [
    "test262-language--statements--function--dstr--obj-ptrn-rest-getter",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-rest-getter.case\n// - src/dstr-binding/default/func-decl.template\n/*---\ndescription: Getter is called when obj is being deconstructed to a rest Object (function declaration)\nesid: sec-function-definitions-runtime-semantics-instantiatefunctionobject\nfeatures: [object-rest, destructuring-binding]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    FunctionDeclaration :\n        function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n        [...]\n        3. Let F be FunctionCreate(Normal, FormalParameters, FunctionBody,\n           scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n---*/\nvar count = 0;\n\nvar callCount = 0;\nfunction f({...x}) {\n  assert.sameValue(count, 1);\n\n  verifyProperty(x, \"v\", {\n    enumerable: true,\n    writable: true,\n    configurable: true,\n    value: 2\n  });\n  callCount = callCount + 1;\n};\nf({ get v() { count++; return 2; } });\nassert.sameValue(callCount, 1, 'function invoked exactly once');\n"
  ],
  [
    "test262-language--statements--function--scope-body-lex-distinct",
    "script",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-functiondeclarationinstantiation\ndescription: >\n    Creation of new lexical environment (distinct from the variable\n    environment) for the function body outside of strict mode\ninfo: |\n    [...]\n    29. If strict is false, then\n        a. Let lexEnv be NewDeclarativeEnvironment(varEnv).\n        b. NOTE: Non-strict functions use a separate lexical Environment Record\n           for top-level lexical declarations so that a direct eval can\n           determine whether any var scoped declarations introduced by the eval\n           code conflict with pre-existing top-level lexically scoped\n           declarations.  This is not needed for strict functions because a\n           strict direct eval always places all declarations into a new\n           Environment Record.\n    [...]\n\n    18.2.1.3 Runtime Semantics: EvalDeclarationInstantiation\n\n    [...]\n    5. If strict is false, then\n       [...]\n       b. Let thisLex be lexEnv.\n       c. Assert: The following loop will terminate.\n       d. Repeat while thisLex is not the same as varEnv,\n          i. Let thisEnvRec be thisLex's EnvironmentRecord.\n          ii. If thisEnvRec is not an object Environment Record, then\n              1. NOTE: The environment of with statements cannot contain any\n                 lexical declaration so it doesn't need to be checked for\n                 var/let hoisting conflicts.\n              2. For each name in varNames, do\n                 a. If thisEnvRec.HasBinding(name) is true, then\n                    i. Throw a SyntaxError exception.\n                    ii. NOTE: Annex B.3.5 defines alternate semantics for the\n                        above step.\n                 b. NOTE: A direct eval will not hoist var declaration over a\n                    like-named lexical declaration.\n          iii. Let thisLex be thisLex's outer environment reference.\nflags: [noStrict]\nfeatures: [let]\n---*/\n\nfunction f() {\n  let x;\n  eval('var x;');\n}\n\nassert.throws(SyntaxError, function() {\n  f();\n});\n"
  ],
  [
    "test262-language--statements--function--unscopables-with-in-nested-fn",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/unscopables-with-in-nested-fn.case\n// - src/function-forms/default/func-decl.template\n/*---\ndescription: Symbol.unscopables behavior across scope boundaries (function declaration)\nesid: sec-function-definitions-runtime-semantics-instantiatefunctionobject\nfeatures: [globalThis, Symbol.unscopables]\nflags: [generated, noStrict]\ninfo: |\n    FunctionDeclaration :\n        function BindingIdentifier ( FormalParameters ) { FunctionBody }\n\n        [...]\n        3. Let F be FunctionCreate(Normal, FormalParameters, FunctionBody,\n           scope, strict).\n        [...]\n\n    9.2.1 [[Call]] ( thisArgument, argumentsList)\n\n    [...]\n    7. Let result be OrdinaryCallEvaluateBody(F, argumentsList).\n    [...]\n\n    9.2.1.3 OrdinaryCallEvaluateBody ( F, argumentsList )\n\n    1. Let status be FunctionDeclarationInstantiation(F, argumentsList).\n    [...]\n\n    9.2.12 FunctionDeclarationInstantiation(func, argumentsList)\n\n    [...]\n    23. Let iteratorRecord be Record {[[iterator]]:\n        CreateListIterator(argumentsList), [[done]]: false}.\n    24. If hasDuplicates is true, then\n        [...]\n    25. Else,\n        b. Let formalStatus be IteratorBindingInitialization for formals with\n           iteratorRecord and env as arguments.\n    [...]\n\n    ...\n    Let envRec be lex's EnvironmentRecord.\n    Let exists be ? envRec.HasBinding(name).\n\n    HasBinding\n\n    ...\n    If the withEnvironment flag of envRec is false, return true.\n    Let unscopables be ? Get(bindings, @@unscopables).\n    If Type(unscopables) is Object, then\n       Let blocked be ToBoolean(? Get(unscopables, N)).\n       If blocked is true, return false.\n\n    (The `with` Statement) Runtime Semantics: Evaluation\n\n    ...\n    Set the withEnvironment flag of newEnv’s EnvironmentRecord to true.\n    ...\n\n---*/\nlet count = 0;\nvar v = 1;\nglobalThis[Symbol.unscopables] = {\n  v: true,\n};\n\n{\n  count++;\n\nvar callCount = 0;\n// Stores a reference `ref` for case evaluation\nfunction ref(x) {\n  (function() {\n    count++;\n    with (globalThis) {\n      count++;\n      assert.sameValue(v, 1, 'The value of `v` is 1');\n    }\n  })();\n  (function() {\n    count++;\n    var v = x;\n    with (globalThis) {\n      count++;\n      assert.sameValue(v, 10, 'The value of `v` is 10');\n      v = 20;\n    }\n    assert.sameValue(v, 20, 'The value of `v` is 20');\n    assert.sameValue(globalThis.v, 1, 'The value of globalThis.v is 1');\n  })();\n  assert.sameValue(v, 1, 'The value of `v` is 1');\n  assert.sameValue(globalThis.v, 1, 'The value of globalThis.v is 1');\n  callCount = callCount + 1;\n}\n\nref(10);\n\nassert.sameValue(callCount, 1, 'function invoked exactly once');\n\n  count++;\n}\nassert.sameValue(count, 6, 'The value of `count` is 6');\n"
  ],
  [
    "test262-language--statements--function--use-strict-with-non-simple-param",
    "script",
    false,
    "standards",
    "// Copyright (C) 2015 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-function-definitions-static-semantics-early-errors\ndescription: >\n  A SyntaxError is thrown if a function contains a non-simple parameter list and a UseStrict directive.\ninfo: |\n  Static Semantics: Early Errors\n\n  It is a Syntax Error if ContainsUseStrict of FunctionBody is true and IsSimpleParameterList of FormalParameters is false.\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nfunction f(a = 0) {\n  \"use strict\";\n}\n"
  ],
  [
    "test262-language--statements--generators--forbidden-ext--b1--gen-func-decl-forbidden-ext-direct-access-prop-caller",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/function-forms/forbidden-ext-direct-access-prop-caller.case\n// - src/function-forms/forbidden-extensions/bullet-one/gen-func-decl.template\n/*---\ndescription: Forbidden extension, o.caller (generator function declaration)\nesid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject\nfeatures: [generators]\nflags: [generated, noStrict]\ninfo: |\n    GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }\n\n\n    ECMAScript function objects defined using syntactic constructors in strict mode code must\n    not be created with own properties named \"caller\" or \"arguments\". Such own properties also\n    must not be created for function objects defined using an ArrowFunction, MethodDefinition,\n    GeneratorDeclaration, GeneratorExpression, AsyncGeneratorDeclaration, AsyncGeneratorExpression,\n    ClassDeclaration, ClassExpression, AsyncFunctionDeclaration, AsyncFunctionExpression, or\n    AsyncArrowFunction regardless of whether the definition is contained in strict mode code.\n    Built-in functions, strict functions created using the Function constructor, generator functions\n    created using the Generator constructor, async functions created using the AsyncFunction\n    constructor, and functions created using the bind method also must not be created with such own\n    properties.\n\n---*/\n\nvar callCount = 0;\nfunction* f() {\n  assert.sameValue(f.hasOwnProperty(\"caller\"), false);\n  callCount++;\n}\n\nf().next();\nassert.sameValue(callCount, 1, 'generator function body evaluated');\n\n"
  ],
  [
    "test262-language--statements--generators--yield-identifier-spread-strict",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/generators/yield-identifier-spread-strict.case\n// - src/generators/default/declaration.template\n/*---\ndescription: It's an early error if the AssignmentExpression is a function body with yield as an identifier in strict mode. (Generator Function declaration)\nesid: prod-GeneratorDeclaration\nfeatures: [object-spread, generators]\nflags: [generated, onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    14.4 Generator Function Definitions\n\n    GeneratorDeclaration :\n      function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n$DONOTEVALUATE();\n\nvar callCount = 0;\n\nfunction *gen() {\n  callCount += 1;\n  return {\n       ...(function() {\n          var yield;\n          throw new Test262Error();\n       }()),\n    }\n}\n\nvar iter = gen();\n\n\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--statements--generators--yield-spread-obj",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/generators/yield-spread-obj.case\n// - src/generators/default/declaration.template\n/*---\ndescription: Use yield value in a object spread position (Generator Function declaration)\nesid: prod-GeneratorDeclaration\nfeatures: [object-spread, generators]\nflags: [generated]\ninfo: |\n    14.4 Generator Function Definitions\n\n    GeneratorDeclaration :\n      function * BindingIdentifier ( FormalParameters ) { GeneratorBody }\n\n\n    Spread Properties\n\n    PropertyDefinition[Yield]:\n      (...)\n      ...AssignmentExpression[In, ?Yield]\n\n---*/\n\nvar callCount = 0;\n\nfunction *gen() {\n  callCount += 1;\n  yield {\n      ...yield,\n      y: 1,\n      ...yield yield,\n    };\n}\n\nvar iter = gen();\n\niter.next();\niter.next({ x: 42 });\niter.next({ x: 'lol' });\nvar item = iter.next({ y: 39 });\n\nassert.sameValue(item.value.x, 42);\nassert.sameValue(item.value.y, 39);\nassert.sameValue(Object.keys(item.value).length, 2);\nassert.sameValue(item.done, false);\n\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--statements--if--tco-else-body",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Statement within statement is a candidate for tail-call optimization.\nesid: sec-static-semantics-hascallintailposition\nflags: [onlyStrict]\nfeatures: [tail-call-optimization]\nincludes: [tcoHelper.js]\n---*/\n\nvar callCount = 0;\n(function f(n) {\n  if (n === 0) {\n    callCount += 1\n    return;\n  }\n  if (false) { } else { return f(n - 1); }\n}($MAX_ITERATIONS));\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--statements--labeled--cptn-break",
    "script",
    true,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-labelled-statements-runtime-semantics-labelledevaluation\nes6id: 13.13.14\ndescription: Completion value when LabelledItem returns a \"break\" completion\ninfo: |\n  LabelledStatement : LabelIdentifier : LabelledItem\n\n  1. Let label be the StringValue of LabelIdentifier.\n  2. Append label as an element of labelSet.\n  3. Let stmtResult be LabelledEvaluation of LabelledItem with argument\n     labelSet.\n  4. If stmtResult.[[Type]] is break and SameValue(stmtResult.[[Target]],\n     label) is true, then\n     a. Let stmtResult be NormalCompletion(stmtResult.[[Value]]).\n---*/\n\nassert.sameValue(eval('test262id: { 5; break test262id; 9; }'), 5);\n"
  ],
  [
    "test262-language--statements--labeled--decl-gen",
    "script",
    false,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Generator declaration not allowed in statement position\nesid: sec-labelled-statements\nes6id: 13.13\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [generators]\n---*/\n\n$DONOTEVALUATE();\n\nlabel: function* g() {}\n"
  ],
  [
    "test262-language--statements--labeled--static-init-invalid-await",
    "script",
    false,
    "standards",
    "// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-class-definitions-static-semantics-early-errors\ndescription: Restriction on `await`\ninfo: |\n  LabelIdentifier : Identifier\n\n  - It is a Syntax Error if the code matched by this production is nested,\n    directly or indirectly (but not crossing function or static initialization\n    block boundaries), within a ClassStaticBlock and the StringValue of\n    Identifier is \"await\".\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [class-static-block]\n---*/\n\n$DONOTEVALUATE();\n\nclass C {\n  static {\n    await: 0;\n  }\n}\n"
  ],
  [
    "test262-language--statements--labeled--value-await-module-escaped",
    "module",
    false,
    "standards",
    "// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-identifiers-static-semantics-early-errors\ndescription: >\n  `await` is a reserved identifier in module code and may not be used as a label.\ninfo: |\n  Identifier : IdentifierName but not ReservedWord\n\n  It is a Syntax Error if the goal symbol of the syntactic grammar is Module and\n  the StringValue of IdentifierName is \"await\".\nnegative:\n  phase: parse\n  type: SyntaxError\nflags: [module]\n---*/\n\n$DONOTEVALUATE();\n\naw\\u0061it: 1;\n"
  ],
  [
    "test262-language--statements--let--dstr--ary-ptrn-elem-id-init-exhausted",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case\n// - src/dstr-binding/default/let-stmt.template\n/*---\ndescription: Destructuring initializer with an exhausted iterator (`let` statement)\nesid: sec-let-and-const-declarations-runtime-semantics-evaluation\nfeatures: [destructuring-binding]\nflags: [generated]\ninfo: |\n    LexicalBinding : BindingPattern Initializer\n\n    1. Let rhs be the result of evaluating Initializer.\n    2. Let value be GetValue(rhs).\n    3. ReturnIfAbrupt(value).\n    4. Let env be the running execution context's LexicalEnvironment.\n    5. Return the result of performing BindingInitialization for BindingPattern\n       using value and env as the arguments.\n\n    13.3.3.6 Runtime Semantics: IteratorBindingInitialization\n\n    SingleNameBinding : BindingIdentifier Initializeropt\n\n    [...]\n    5. If iteratorRecord.[[done]] is true, let v be undefined.\n    6. If Initializer is present and v is undefined, then\n       a. Let defaultValue be the result of evaluating Initializer.\n       b. Let v be GetValue(defaultValue).\n       [...]\n    7. If environment is undefined, return PutValue(lhs, v).\n    8. Return InitializeReferencedBinding(lhs, v).\n---*/\n\nlet [x = 23] = [];\n\nassert.sameValue(x, 23);\n"
  ],
  [
    "test262-language--statements--let--dstr--ary-ptrn-rest-not-final-obj",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case\n// - src/dstr-binding/default/let-stmt.template\n/*---\ndescription: Rest element (object binding pattern) may not be followed by any element (`let` statement)\nesid: sec-let-and-const-declarations-runtime-semantics-evaluation\nfeatures: [destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    LexicalBinding : BindingPattern Initializer\n\n    1. Let rhs be the result of evaluating Initializer.\n    2. Let value be GetValue(rhs).\n    3. ReturnIfAbrupt(value).\n    4. Let env be the running execution context's LexicalEnvironment.\n    5. Return the result of performing BindingInitialization for BindingPattern\n       using value and env as the arguments.\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nlet [...{ x }, y] = [1, 2, 3];\n\n\n"
  ],
  [
    "test262-language--statements--let--static-init-await-binding-invalid",
    "script",
    false,
    "standards",
    "// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-class-definitions-static-semantics-early-errors\ndescription: BindingIdentifier may not be `await` within class static blocks\ninfo: |\n  BindingIdentifier : Identifier\n\n  [...]\n  - It is a Syntax Error if the code matched by this production is nested,\n    directly or indirectly (but not crossing function or static initialization\n    block boundaries), within a ClassStaticBlock and the StringValue of\n    Identifier is \"await\".\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [class-static-block]\n---*/\n\n$DONOTEVALUATE();\n\nclass C {\n  static {\n    let await;\n  }\n}\n"
  ],
  [
    "test262-language--statements--let--syntax--let-newline-yield-in-generator-function",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 Mozilla Corporation. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Jeff Walden <jwalden+code@mit.edu>\nesid: sec-let-and-const-declarations\ndescription: >\n  `let yield` does not permit ASI in between, as `yield` is a BindingIdentifier\ninfo: |\n  `yield` is a perfectly cromulent binding name in any context grammatically, just\n  prohibited by static semantics in some contexts.  Therefore ASI can never apply\n  between `let` (where a LexicalDeclaration is permitted) and `yield`,\n  so a subsequent `0` where `=` was expected is a syntax error.\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [generators]\n---*/\n\n$DONOTEVALUATE();\n\nfunction* f() {\n    let\n    yield 0;\n}\n"
  ],
  [
    "test262-language--statements--switch--syntax--redeclaration--async-function-name-redeclaration-attempt-with-generator",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/declarations/generator.case\n// - src/declarations/redeclare/switch-attempt-to-redeclare-async-function-declaration.template\n/*---\ndescription: redeclaration with GeneratorDeclaration (AsyncFunctionDeclaration in SwitchStatement)\nesid: sec-switch-statement-static-semantics-early-errors\nfeatures: [generators, async-functions]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    SwitchStatement : switch ( Expression ) CaseBlock\n\n    It is a Syntax Error if the LexicallyDeclaredNames of CaseBlock contains any\n    duplicate entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nswitch (0) { case 1: async function f() {} default: function* f() {} }\n"
  ],
  [
    "test262-language--statements--switch--syntax--redeclaration--async-generator-name-redeclaration-attempt-with-async-function",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/declarations/async-function.case\n// - src/declarations/redeclare/switch-attempt-to-redeclare-async-generator-declaration.template\n/*---\ndescription: redeclaration with AsyncFunctionDeclaration (AsyncGeneratorDeclaration in SwitchStatement)\nesid: sec-switch-statement-static-semantics-early-errors\nfeatures: [async-functions, async-iteration]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    SwitchStatement : switch ( Expression ) CaseBlock\n\n    It is a Syntax Error if the LexicallyDeclaredNames of CaseBlock contains any\n    duplicate entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nswitch (0) { case 1: async function* f() {} default: async function f() {} }\n"
  ],
  [
    "test262-language--statements--switch--syntax--redeclaration--const-name-redeclaration-attempt-with-let",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/declarations/let.case\n// - src/declarations/redeclare/switch-attempt-to-redeclare-const-declaration.template\n/*---\ndescription: redeclaration with let-LexicalDeclaration (LexicalDeclaration (const) in SwitchStatement)\nesid: sec-switch-statement-static-semantics-early-errors\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    SwitchStatement : switch ( Expression ) CaseBlock\n\n    It is a Syntax Error if the LexicallyDeclaredNames of CaseBlock contains any\n    duplicate entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nswitch (0) { case 1: const f = 0; default: let f }\n"
  ],
  [
    "test262-language--statements--switch--syntax--redeclaration--generator-name-redeclaration-attempt-with-async-generator",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/declarations/async-generator.case\n// - src/declarations/redeclare/switch-attempt-to-redeclare-generator-declaration.template\n/*---\ndescription: redeclaration with AsyncGeneratorDeclaration (GeneratorDeclaration in SwitchStatement)\nesid: sec-switch-statement-static-semantics-early-errors\nfeatures: [async-iteration, generators]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    SwitchStatement : switch ( Expression ) CaseBlock\n\n    It is a Syntax Error if the LexicallyDeclaredNames of CaseBlock contains any\n    duplicate entries.\n\n---*/\n\n\n$DONOTEVALUATE();\n\nswitch (0) { case 1: function* f() {} default: async function* f() {} }\n"
  ],
  [
    "test262-language--statements--switch--syntax--redeclaration--var-name-redeclaration-attempt-with-var",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/declarations/var.case\n// - src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-var-declaration.template\n/*---\ndescription: redeclaration with VariableDeclaration (VariableDeclaration in SwitchStatement)\nesid: sec-switch-statement-static-semantics-early-errors\nflags: [generated]\ninfo: |\n    SwitchStatement : switch ( Expression ) CaseBlock\n\n    It is a Syntax Error if any element of the LexicallyDeclaredNames of\n    CaseBlock also occurs in the VarDeclaredNames of CaseBlock.\n---*/\n\n\nswitch (0) { case 1: var f; default: var f }\n"
  ],
  [
    "test262-language--statements--try--S12.14_A16_T11",
    "script",
    false,
    "standards",
    "// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: |\n    TryStatement: \"try Block Catch\" or \"try Block Finally\" or \"try Block\n    Catch Finally\"\nes5id: 12.14_A16_T11\ndescription: >\n    Catch and Finally are placed into the Block of \"try\" (whitle\n    expected outside)\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n// CHECK#1\ntry{\n  {\n  }\n  catch(e){}\n  finally{}\n}\n"
  ],
  [
    "test262-language--statements--try--S12.14_A18_T7",
    "script",
    true,
    "standards",
    "// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: Catching objects with try/catch/finally statement\nes5id: 12.14_A18_T7\ndescription: Catching Array\n---*/\n\nvar mycars = new Array();\nmycars[0] = \"Saab\";\nmycars[1] = \"Volvo\";\nmycars[2] = \"BMW\";\n\nvar mycars2 = new Array();\nmycars2[0] = \"Mercedes\";\nmycars2[1] = \"Jeep\";\nmycars2[2] = \"Suzuki\";\n\n// CHECK#1\ntry{\n  throw mycars;\n}\ncatch(e){\n  for (var i=0;i<3;i++){\n    if (e[i]!==mycars[i]) throw new Test262Error('#1.'+i+': Exception['+i+']===mycars['+i+']. Actual:  Exception['+i+']==='+ e[i] );\n  }\n}\n\n// CHECK#2\ntry{\n  throw mycars.concat(mycars2);\n}\ncatch(e){\n  for (var i=0;i<3;i++){\n    if (e[i]!==mycars[i]) throw new Test262Error('#2.'+i+': Exception['+i+']===mycars['+i+']. Actual:  Exception['+i+']==='+ e[i] );\n  }\n  for (var i=3;i<6;i++){\n    if (e[i]!==mycars2[i-3]) throw new Test262Error('#2.'+i+': Exception['+i+']===mycars2['+i+']. Actual:  Exception['+i+']==='+ e[i] );\n  }\n}\n\n// CHECK#3\ntry{\n  throw new Array(\"Mercedes\",\"Jeep\",\"Suzuki\");\n}\ncatch(e){\n  for (var i=0;i<3;i++){\n    if (e[i]!==mycars2[i]) throw new Test262Error('#3.'+i+': Exception['+i+']===mycars2['+i+']. Actual:  Exception['+i+']==='+ e[i]);\n  }\n}\n\n// CHECK#4\ntry{\n  throw mycars.concat(new Array(\"Mercedes\",\"Jeep\",\"Suzuki\"));\n}\ncatch(e){\n  for (var i=0;i<3;i++){\n    if (e[i]!==mycars[i]) throw new Test262Error('#4.'+i+': Exception['+i+']===mycars['+i+']. Actual:  Exception['+i+']==='+ e[i] );\n  }\n  for (var i=3;i<6;i++){\n    if (e[i]!==mycars2[i-3]) throw new Test262Error('#4.'+i+': Exception['+i+']===mycars2['+(i-3)+']. Actual:  Exception['+i+']==='+ e[i]);\n  }\n}\n"
  ],
  [
    "test262-language--statements--try--dstr--ary-ptrn-elem-id-iter-done",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case\n// - src/dstr-binding/default/try.template\n/*---\ndescription: SingleNameBinding when value iteration was completed previously (try statement)\nesid: sec-runtime-semantics-catchclauseevaluation\nfeatures: [destructuring-binding]\nflags: [generated]\ninfo: |\n    Catch : catch ( CatchParameter ) Block\n\n    [...]\n    5. Let status be the result of performing BindingInitialization for\n       CatchParameter passing thrownValue and catchEnv as arguments.\n    [...]\n\n    13.3.3.6 Runtime Semantics: IteratorBindingInitialization\n\n    SingleNameBinding : BindingIdentifier Initializeropt\n\n    [...]\n    4. If iteratorRecord.[[done]] is false, then\n       [...]\n    5. If iteratorRecord.[[done]] is true, let v be undefined.\n    [...]\n    8. Return InitializeReferencedBinding(lhs, v).\n---*/\n\nvar ranCatch = false;\n\ntry {\n  throw [];\n} catch ([_, x]) {\n  assert.sameValue(x, undefined);\n  ranCatch = true;\n}\n\nassert(ranCatch, 'executed `catch` block');\n"
  ],
  [
    "test262-language--statements--try--dstr--ary-ptrn-rest-init-obj",
    "script",
    false,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-init-obj.case\n// - src/dstr-binding/default/try.template\n/*---\ndescription: Rest element (nested object pattern) does not support initializer (try statement)\nesid: sec-runtime-semantics-catchclauseevaluation\nfeatures: [destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    Catch : catch ( CatchParameter ) Block\n\n    [...]\n    5. Let status be the result of performing BindingInitialization for\n       CatchParameter passing thrownValue and catchEnv as arguments.\n    [...]\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar ranCatch = false;\n\ntry {\n  throw [];\n} catch ([...{ x } = []]) {\n  \n  ranCatch = true;\n}\n\nassert(ranCatch, 'executed `catch` block');\n"
  ],
  [
    "test262-language--statements--try--optional-catch-binding-parens",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 Lucas Azzola. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nauthor: Lucas Azzola\nesid: pending\ndescription: >\n  It is a SyntaxError to have a try/catch statement with an empty CatchParameter\nfeatures: [optional-catch-binding]\ninfo: |\n  Catch[Yield, Await, Return]:\n    catch ( CatchParameter[?Yield, ?Await] ) Block[?Yield, ?Await, ?Return]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\ntry {} catch () {}\n\n"
  ],
  [
    "test262-language--statements--try--static-init-await-binding-invalid",
    "script",
    false,
    "standards",
    "// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-class-definitions-static-semantics-early-errors\ndescription: BindingIdentifier may not be `await` within class static blocks\ninfo: |\n  BindingIdentifier : Identifier\n\n  [...]\n  - It is a Syntax Error if the code matched by this production is nested,\n    directly or indirectly (but not crossing function or static initialization\n    block boundaries), within a ClassStaticBlock and the StringValue of\n    Identifier is \"await\".\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [class-static-block]\n---*/\n\n$DONOTEVALUATE();\n\nclass C {\n  static {\n    try {} catch (await) {}\n  }\n}\n"
  ],
  [
    "test262-language--statements--try--static-init-await-binding-valid",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-class-definitions-static-semantics-early-errors\ndescription: The `await` keyword is interpreted as an identifier within arrow function bodies\ninfo: |\n  ClassStaticBlockBody : ClassStaticBlockStatementList\n\n  [...]\n  - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true.\nfeatures: [class-static-block]\n---*/\n\nclass C {\n  static {\n    (() => { try {} catch (await) {} });\n  }\n}\n"
  ],
  [
    "test262-language--statements--variable--arguments-strict-list-middle",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (c) 2012 Ecma International.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nes5id: 12.2.1-33-s\nesid: sec-variable-statement\ndescription: arguments as local var identifier throws SyntaxError in strict mode\nflags: [onlyStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nvar a, arguments, b;\n"
  ],
  [
    "test262-language--statements--variable--dstr--ary-ptrn-elem-id-iter-val-array-prototype",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-elem-id-iter-val-array-prototype.case\n// - src/dstr-binding/default/var-stmt.template\n/*---\ndescription: Array destructuring uses overriden Array.prototype[Symbol.iterator] (`var` statement)\nesid: sec-variable-statement-runtime-semantics-evaluation\nfeatures: [Symbol.iterator, generators, destructuring-binding]\nflags: [generated]\ninfo: |\n    VariableDeclaration : BindingPattern Initializer\n\n    1. Let rhs be the result of evaluating Initializer.\n    2. Let rval be GetValue(rhs).\n    3. ReturnIfAbrupt(rval).\n    4. Return the result of performing BindingInitialization for\n       BindingPattern passing rval and undefined as arguments.\n\n    Runtime Semantics: IteratorBindingInitialization\n\n    SingleNameBinding : BindingIdentifier Initializer_opt\n\n    1. Let bindingId be StringValue of BindingIdentifier.\n    2. Let lhs be ? ResolveBinding(bindingId, environment).\n    3. If iteratorRecord.[[Done]] is false, then\n        a. Let next be IteratorStep(iteratorRecord).\n        b. If next is an abrupt completion, set iteratorRecord.[[Done]] to true.\n        c. ReturnIfAbrupt(next).\n        d. If next is false, set iteratorRecord.[[Done]] to true.\n        e. Else,\n            i. Let v be IteratorValue(next).\n            ii. If v is an abrupt completion, set iteratorRecord.[[Done]] to true.\n            iii. ReturnIfAbrupt(v).\n    [...]\n    7. Return InitializeReferencedBinding(lhs, v).\n\n---*/\nArray.prototype[Symbol.iterator] = function* () {\n    if (this.length > 0) {\n        yield this[0];\n    }\n    if (this.length > 1) {\n        yield this[1];\n    }\n    if (this.length > 2) {\n        yield 42;\n    }\n};\n\nvar [x, y, z] = [1, 2, 3];\n\nassert.sameValue(x, 1);\nassert.sameValue(y, 2);\nassert.sameValue(z, 42);\n"
  ],
  [
    "test262-language--statements--variable--dstr--ary-ptrn-rest-not-final-obj",
    "script",
    false,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case\n// - src/dstr-binding/default/var-stmt.template\n/*---\ndescription: Rest element (object binding pattern) may not be followed by any element (`var` statement)\nesid: sec-variable-statement-runtime-semantics-evaluation\nfeatures: [destructuring-binding]\nflags: [generated]\nnegative:\n  phase: parse\n  type: SyntaxError\ninfo: |\n    VariableDeclaration : BindingPattern Initializer\n\n    1. Let rhs be the result of evaluating Initializer.\n    2. Let rval be GetValue(rhs).\n    3. ReturnIfAbrupt(rval).\n    4. Return the result of performing BindingInitialization for\n       BindingPattern passing rval and undefined as arguments.\n\n    13.3.3 Destructuring Binding Patterns\n    ArrayBindingPattern[Yield] :\n        [ Elisionopt BindingRestElement[?Yield]opt ]\n        [ BindingElementList[?Yield] ]\n        [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]\n---*/\n$DONOTEVALUATE();\n\nvar [...{ x }, y] = [1, 2, 3];\n\n\n"
  ],
  [
    "test262-language--statements--variable--dstr--obj-ptrn-prop-ary-init",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-prop-ary-init.case\n// - src/dstr-binding/default/var-stmt.template\n/*---\ndescription: Object binding pattern with \"nested\" array binding pattern using initializer (`var` statement)\nesid: sec-variable-statement-runtime-semantics-evaluation\nfeatures: [destructuring-binding]\nflags: [generated]\ninfo: |\n    VariableDeclaration : BindingPattern Initializer\n\n    1. Let rhs be the result of evaluating Initializer.\n    2. Let rval be GetValue(rhs).\n    3. ReturnIfAbrupt(rval).\n    4. Return the result of performing BindingInitialization for\n       BindingPattern passing rval and undefined as arguments.\n\n    13.3.3.7 Runtime Semantics: KeyedBindingInitialization\n\n    [...]\n    3. If Initializer is present and v is undefined, then\n       a. Let defaultValue be the result of evaluating Initializer.\n       b. Let v be GetValue(defaultValue).\n       c. ReturnIfAbrupt(v).\n    4. Return the result of performing BindingInitialization for BindingPattern\n       passing v and environment as arguments.\n---*/\n\nvar { w: [x, y, z] = [4, 5, 6] } = {};\n\nassert.sameValue(x, 4);\nassert.sameValue(y, 5);\nassert.sameValue(z, 6);\n\nassert.throws(ReferenceError, function() {\n  w;\n});\n"
  ],
  [
    "test262-language--statements--variable--dstr--obj-ptrn-rest-getter",
    "script",
    true,
    "standards",
    "// This file was procedurally generated from the following sources:\n// - src/dstr-binding/obj-ptrn-rest-getter.case\n// - src/dstr-binding/default/var-stmt.template\n/*---\ndescription: Getter is called when obj is being deconstructed to a rest Object (`var` statement)\nesid: sec-variable-statement-runtime-semantics-evaluation\nfeatures: [object-rest, destructuring-binding]\nflags: [generated]\nincludes: [propertyHelper.js]\ninfo: |\n    VariableDeclaration : BindingPattern Initializer\n\n    1. Let rhs be the result of evaluating Initializer.\n    2. Let rval be GetValue(rhs).\n    3. ReturnIfAbrupt(rval).\n    4. Return the result of performing BindingInitialization for\n       BindingPattern passing rval and undefined as arguments.\n---*/\nvar count = 0;\n\nvar {...x} = { get v() { count++; return 2; } };\n\nassert.sameValue(count, 1);\n\nverifyProperty(x, \"v\", {\n  enumerable: true,\n  writable: true,\n  configurable: true,\n  value: 2\n});\n"
  ],
  [
    "test262-language--statements--variable--static-init-await-binding-invalid",
    "script",
    false,
    "standards",
    "// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-class-definitions-static-semantics-early-errors\ndescription: BindingIdentifier may not be `await` within class static blocks\ninfo: |\n  BindingIdentifier : Identifier\n\n  [...]\n  - It is a Syntax Error if the code matched by this production is nested,\n    directly or indirectly (but not crossing function or static initialization\n    block boundaries), within a ClassStaticBlock and the StringValue of\n    Identifier is \"await\".\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [class-static-block]\n---*/\n\n$DONOTEVALUATE();\n\nclass C {\n  static {\n    var await;\n  }\n}\n"
  ],
  [
    "test262-language--statements--variable--static-init-await-binding-valid",
    "script",
    true,
    "standards",
    "// Copyright (C) 2021 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\nesid: sec-class-definitions-static-semantics-early-errors\ndescription: The `await` keyword is interpreted as an identifier within arrow function bodies\ninfo: |\n  ClassStaticBlockBody : ClassStaticBlockStatementList\n\n  [...]\n  - It is a Syntax Error if ContainsAwait of ClassStaticBlockStatementList is true.\nfeatures: [class-static-block]\n---*/\n\nclass C {\n  static {\n    (() => { var await; });\n  }\n}\n"
  ],
  [
    "test262-language--statements--while--decl-async-fun",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-while-statement\ndescription: >\n  AsyncFunctionDeclaration is not allowed in statement position\ninfo: |\n  ExpressionStatement[Yield, Await] :\n    [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]\n    Expression[+In, ?Yield, ?Await] ;\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [async-functions]\n---*/\n\n$DONOTEVALUATE();\n\nwhile (false) async function f() {}\n"
  ],
  [
    "test262-language--statements--while--decl-gen",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Generator declaration not allowed in statement position\nesid: sec-while-statement\nes6id: 13.7.3\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [generators]\n---*/\n\n$DONOTEVALUATE();\n\nwhile (false) function* g() {}\n"
  ],
  [
    "test262-language--statements--while--tco-body",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Statement within statement is a candidate for tail-call optimization.\nesid: sec-static-semantics-hascallintailposition\nflags: [onlyStrict]\nfeatures: [tail-call-optimization]\nincludes: [tcoHelper.js]\n---*/\n\nvar callCount = 0;\n(function f(n) {\n  if (n === 0) {\n    callCount += 1\n    return;\n  }\n  while (true) {\n    return f(n - 1);\n  }\n}($MAX_ITERATIONS));\nassert.sameValue(callCount, 1);\n"
  ],
  [
    "test262-language--statements--with--decl-async-fun",
    "script",
    false,
    "standards",
    "// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-with-statement\ndescription: >\n  AsyncFunctionDeclaration is not allowed in statement position\ninfo: |\n  ExpressionStatement[Yield, Await] :\n    [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]\n    Expression[+In, ?Yield, ?Await] ;\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [async-functions]\nflags: [noStrict]\n---*/\n\n$DONOTEVALUATE();\n\nwith ({}) async function f() {}\n"
  ],
  [
    "test262-language--statements--with--decl-async-gen",
    "script",
    false,
    "standards",
    "// Copyright (C) 2017 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-with-statement\ndescription: >\n  AsyncGeneratorDeclaration is not allowed in statement position\ninfo: |\n  ExpressionStatement[Yield, Await] :\n    [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]\n    Expression[+In, ?Yield, ?Await] ;\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [async-iteration]\nflags: [noStrict]\n---*/\n\n$DONOTEVALUATE();\n\nwith ({}) async function* g() {}\n"
  ],
  [
    "test262-language--statements--with--decl-gen",
    "script",
    false,
    "standards",
    "// Copyright (C) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n/*---\ndescription: Generator declaration not allowed in statement position\nesid: sec-with-statement\nes6id: 13.11\nflags: [noStrict]\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [generators]\n---*/\n\n$DONOTEVALUATE();\n\nwith ({}) function* g() {}\n"
  ],
  [
    "test262-language--statements--with--has-property-err",
    "script",
    true,
    "standards",
    "// Copyright (c) 2016 the V8 project authors. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-getidentifierreference\nes6id: 8.1.2.1\ndescription: >\n  Behavior when binding query produces an abrupt completion\ninfo: |\n  [...]\n  2. Let envRec be lex's EnvironmentRecord.\n  3. Let exists be ? envRec.HasBinding(name).\n\n  8.1.1.2.1 HasBinding\n\n  1. Let envRec be the object Environment Record for which the method was\n     invoked.\n  2. Let bindings be the binding object for envRec.\n  3. Let foundBinding be ? HasProperty(bindings, N).\nflags: [noStrict]\nfeatures: [Proxy]\n---*/\n\nvar thrower = new Proxy({}, {\n  has: function(_, name) {\n    if (name === 'test262') {\n      throw new Test262Error();\n    }\n  }\n});\n\nwith (thrower) {\n  assert.throws(Test262Error, function() {\n    test262;\n  });\n}\n"
  ],
  [
    "test262-language--statements--with--set-mutable-binding-idref-with-proxy-env",
    "script",
    true,
    "standards",
    "// Copyright (C) 2024 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-object-environment-records-setmutablebinding-n-v-s\ndescription: >\n  Lookups in proxy binding object for identifier reference.\ninfo: |\n  9.1.1.2.1 HasBinding ( N )\n\n    1. Let bindingObject be envRec.[[BindingObject]].\n    2. Let foundBinding be ? HasProperty(bindingObject, N).\n    3. If foundBinding is false, return false.\n    ...\n    5. Let unscopables be ? Get(bindingObject, %Symbol.unscopables%).\n    ...\n    7. Return true.\n\n  9.1.1.2.5 SetMutableBinding ( N, V, S )\n\n    1. Let bindingObject be envRec.[[BindingObject]].\n    2. Let stillExists be ? HasProperty(bindingObject, N).\n    ...\n    4. Perform ? Set(bindingObject, N, V, S).\n    ...\n\n  10.1.9.2 OrdinarySetWithOwnDescriptor ( O, P, V, Receiver, ownDesc )\n\n    ...\n    2. If IsDataDescriptor(ownDesc) is true, then\n      ...\n      c. Let existingDescriptor be ? Receiver.[[GetOwnProperty]](P).\n      d. If existingDescriptor is not undefined, then\n        ...\n        iv. Return ? Receiver.[[DefineOwnProperty]](P, valueDesc).\n      ...\n\nfeatures: [Proxy, Reflect]\nflags: [noStrict]\nincludes: [compareArray.js, proxyTrapsHelper.js]\n---*/\n\nvar log = [];\n\n// Environment contains referenced binding.\nvar env = {\n  p: 0,\n};\n\nvar proxy = new Proxy(env, allowProxyTraps({\n  has(t, pk) {\n    log.push(\"has:\" + String(pk));\n    return Reflect.has(t, pk);\n  },\n  get(t, pk, r) {\n    log.push(\"get:\" + String(pk));\n    return Reflect.get(t, pk, r);\n  },\n  set(t, pk, v, r) {\n    log.push(\"set:\" + String(pk));\n    return Reflect.set(t, pk, v, r);\n  },\n  getOwnPropertyDescriptor(t, pk) {\n    log.push(\"getOwnPropertyDescriptor:\" + String(pk));\n    return Reflect.getOwnPropertyDescriptor(t, pk);\n  },\n  defineProperty(t, pk, d) {\n    log.push(\"defineProperty:\" + String(pk));\n    return Reflect.defineProperty(t, pk, d);\n  },\n}));\n\nwith (proxy) {\n  p = 1;\n}\n\nassert.compareArray(log, [\n  // HasBinding, step 2.\n  \"has:p\",\n\n  // HasBinding, step 5.\n  \"get:Symbol(Symbol.unscopables)\",\n\n  // SetMutableBinding, step 2.\n  \"has:p\",\n\n  // SetMutableBinding, step 4.\n  \"set:p\",\n  \"getOwnPropertyDescriptor:p\",\n  \"defineProperty:p\",\n]);\n"
  ],
  [
    "test262-language--types--boolean--S8.3_A2.1",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: The true is reserved word\nes5id: 8.3_A2.1\ndescription: Checking if execution of \"true=1\" fails\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\ntrue = 1;\n"
  ],
  [
    "test262-language--types--boolean--S8.3_A3",
    "script",
    true,
    "standards",
    "// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: Applaing negation to boolean works well\nes5id: 8.3_A3\ndescription: Check not false equals true, not true equals false\n---*/\n\n//////////////////////////////////////////////////////////////////////////////\n//CHECK#1\nif (!false !== true){\n  throw new Test262Error('#1: !false === true');\n}\n//\n//////////////////////////////////////////////////////////////////////////////\n\n//////////////////////////////////////////////////////////////////////////////\n//CHECK#2\nif (!false != true){\n  throw new Test262Error('#2: !false == true');\n}\n//\n//////////////////////////////////////////////////////////////////////////////\n\n//////////////////////////////////////////////////////////////////////////////\n//CHECK#3\nif (!true !== false){\n  throw new Test262Error('#3: !true === false');\n}\n//\n//////////////////////////////////////////////////////////////////////////////\n\n//////////////////////////////////////////////////////////////////////////////\n//CHECK#4\nif (!true != false){\n  throw new Test262Error('#4: !true == false');\n}\n//\n//////////////////////////////////////////////////////////////////////////////\n"
  ],
  [
    "test262-language--types--list--S8.8_A2_T2",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: Values of the List type are simply ordered sequences of values\nes5id: 8.8_A2_T2\ndescription: Call function __mFunc([,,]) with 1 arguments\n---*/\n\nfunction __mFunc(){return arguments.length;};\n//////////////////////////////////////////////////////////////////////////////\n//CHECK#1\nif (__mFunc([,,]) !== 1){\n  throw new Test262Error('#1: function __mFunc(){return arguments.length;}; __mFunc([,,]) === 1. Actual: ' + (__mFunc([,,])));\n}\n//\n//////////////////////////////////////////////////////////////////////////////\n"
  ],
  [
    "test262-language--types--null--S8.2_A2",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: The null is resrved word\nes5id: 8.2_A2\ndescription: Checking if execution of \"var null\" fails\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nvar null;\n"
  ],
  [
    "test262-language--types--reference--S8.7.1_A1",
    "script",
    true,
    "standards",
    "// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: |\n    Delete operator deletes pure property, so it returns true to be applyed\n    to this.property\nes5id: 8.7.1_A1\ndescription: Try to delete this.y, where y is this.y=1\n---*/\n\nthis.y = 1;\n//////////////////////////////////////////////////////////////////////////////\n//CHECK#1\nif((delete this.y) !== true){\n  throw new Test262Error('#1: this.y = 1; (delete this.y) === true. Actual: ' + ((delete this.y)));\n};\n//\n//////////////////////////////////////////////////////////////////////////////\n\n\n//////////////////////////////////////////////////////////////////////////////\n//CHECK#2\nif (this.y !== undefined){\n  throw new Test262Error('#2: this.y = 1; (delete this.y) === true; this.y === undefined. Actual: ' + (this.y));\n}\n//\n//////////////////////////////////////////////////////////////////////////////\n"
  ],
  [
    "test262-language--types--reference--S8.7.2_A1_T1",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: GetValue(V) mast fail\nes5id: 8.7.2_A1_T1\ndescription: Checking if execution of \"'litera'=1;\" fails\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\n'litera'=1;\n"
  ],
  [
    "test262-language--types--string--S8.4_A14_T1",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: When appears not closed double-quote program failes\nes5id: 8.4_A14_T1\ndescription: Try to create variable using 1 double-quote\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nvar str = \";\n"
  ],
  [
    "test262-language--white-space--S7.2_A5_T4",
    "script",
    false,
    "standards",
    "\"use strict\";\n// Copyright 2009 the Sputnik authors.  All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ninfo: |\n    White space cannot be expressed as a Unicode escape sequence consisting\n    of six characters, namely \\u plus four hexadecimal digits\nes5id: 7.2_A5_T4\ndescription: Use SPACE (U+0020)\nnegative:\n  phase: parse\n  type: SyntaxError\n---*/\n\n$DONOTEVALUATE();\n\nvar\\u0020x;\n"
  ],
  [
    "test262-language--white-space--after-regular-expression-literal-medium-mathematical-space",
    "script",
    true,
    "standards",
    "\"use strict\";\n// This file was procedurally generated from the following sources:\n// - src/insignificant-input-elements/medium-mathematical-space.case\n// - src/insignificant-input-elements/expression/after-regular-expression-literal.template\n/*---\ndescription: U+205F MEDIUM MATHEMATICAL SPACE (after regular expression literal)\nesid: sec-lexical-and-regexp-grammars\nflags: [generated]\ninfo: |\n    Input elements other than white space and comments form the terminal symbols\n    for the syntactic grammar for ECMAScript and are called ECMAScript\n    <em>tokens</em>. These tokens are the reserved words, identifiers, literals,\n    and punctuators of the ECMAScript language. Moreover, line terminators,\n    although not considered to be tokens, also become part of the stream of input\n    elements and guide the process of automatic semicolon insertion\n    (<emu-xref href=\"#sec-automatic-semicolon-insertion\"></emu-xref>). Simple\n    white space and single-line comments are discarded and do not appear in the\n    stream of input elements for the syntactic grammar. A |MultiLineComment| (that\n    is, a comment of the form `/*`&hellip;`*``/` regardless of whether it spans more\n    than one line) is likewise simply discarded if it contains no line terminator;\n    but if a |MultiLineComment| contains one or more line terminators, then it is\n    replaced by a single line terminator, which becomes part of the stream of\n    input elements for the syntactic grammar.\n\n    <tr>\n      <td>\n        Other category &ldquo;Zs&rdquo;\n      </td>\n      <td>\n        Any other Unicode &ldquo;Space_Separator&rdquo; code point\n      </td>\n      <td>\n        &lt;USP&gt;\n      </td>\n    </tr>\n\n    WhiteSpace ::\n      &lt;TAB&gt;\n      &lt;VT&gt;\n      &lt;FF&gt;\n      &lt;SP&gt;\n      &lt;NBSP&gt;\n      &lt;ZWNBSP&gt;\n      &lt;USP&gt;\n---*/\n\n\n/x/g ;\n"
  ],
  [
    "test262-language--white-space--mongolian-vowel-separator",
    "script",
    false,
    "standards",
    "// Copyright (C) 2016 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-white-space\ndescription: >\n  Mongolian Vowel Separator is not recognized as white space.\ninfo: |\n  11.2 White Space\n\n  WhiteSpace ::\n    <TAB>\n    <VT>\n    <FF>\n    <SP>\n    <NBSP>\n    <ZWNBSP>\n    <USP>\n  <USP> ::\n    Other category “Zs” code points\n\n  General Category of U+180E is “Cf” (Format).\nnegative:\n  phase: parse\n  type: SyntaxError\nfeatures: [u180e]\n---*/\n\n$DONOTEVALUATE();\n\n// U+180E between \"var\" and \"foo\"; UTF8(0x180E) = 0xE1 0xA0 0x8E\nvar᠎foo;\n"
  ],
  [
    "test262-language--white-space--mongolian-vowel-separator-eval",
    "script",
    true,
    "standards",
    "\"use strict\";\n// Copyright (C) 2016 André Bargull. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\nesid: sec-white-space\ndescription: >\n  Mongolian Vowel Separator is not recognized as white space (eval code).\ninfo: |\n  11.2 White Space\n\n  WhiteSpace ::\n    <TAB>\n    <VT>\n    <FF>\n    <SP>\n    <NBSP>\n    <ZWNBSP>\n    <USP>\n  <USP> ::\n    Other category “Zs” code points\n\n  General Category of U+180E is “Cf” (Format).\nfeatures: [u180e]\n---*/\n\n// U+180E between \"var\" and \"foo\".\nassert.throws(SyntaxError, function() {\n  eval(\"var\\u180Efoo;\");\n});\n"
  ]
]