mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Generate tests
This commit is contained in:
parent
0fde7c47fc
commit
629b6d0917
test/language/eval-code/direct
arrow-fn-a-following-parameter-is-named-arguments-arrow-func-declare-arguments-assign-incl-def-param-arrow-arguments.jsarrow-fn-a-following-parameter-is-named-arguments-arrow-func-declare-arguments-assign.jsarrow-fn-a-preceding-parameter-is-named-arguments-arrow-func-declare-arguments-assign-incl-def-param-arrow-arguments.jsarrow-fn-a-preceding-parameter-is-named-arguments-arrow-func-declare-arguments-assign.jsarrow-fn-body-cntns-arguments-fn-decl-params-cntns-dflt-assignment-arrow-func-declare-arguments-assign-incl-def-param-arrow-arguments.jsarrow-fn-body-cntns-arguments-fn-decl-params-cntns-dflt-assignment-arrow-func-declare-arguments-assign.jsarrow-fn-body-cntns-arguments-func-decl-arrow-func-declare-arguments-assign-incl-def-param-arrow-arguments.jsarrow-fn-body-cntns-arguments-func-decl-arrow-func-declare-arguments-assign.jsarrow-fn-body-cntns-arguments-lex-bind-arrow-func-declare-arguments-assign-incl-def-param-arrow-arguments.jsarrow-fn-body-cntns-arguments-lex-bind-arrow-func-declare-arguments-assign.jsarrow-fn-body-cntns-arguments-var-bind-arrow-func-declare-arguments-assign-incl-def-param-arrow-arguments.jsarrow-fn-body-cntns-arguments-var-bind-arrow-func-declare-arguments-assign.jsarrow-fn-no-pre-existing-arguments-bindings-are-present-arrow-func-declare-arguments-assign-incl-def-param-arrow-arguments.jsarrow-fn-no-pre-existing-arguments-bindings-are-present-arrow-func-declare-arguments-assign.jsasync-func-decl-a-following-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-func-decl-a-following-parameter-is-named-arguments-declare-arguments.jsasync-func-decl-a-preceding-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-func-decl-a-preceding-parameter-is-named-arguments-declare-arguments.jsasync-func-decl-fn-body-cntns-arguments-func-decl-declare-arguments-and-assign.jsasync-func-decl-fn-body-cntns-arguments-func-decl-declare-arguments.jsasync-func-decl-fn-body-cntns-arguments-lex-bind-declare-arguments-and-assign.jsasync-func-decl-fn-body-cntns-arguments-lex-bind-declare-arguments.jsasync-func-decl-fn-body-cntns-arguments-var-bind-declare-arguments-and-assign.jsasync-func-decl-fn-body-cntns-arguments-var-bind-declare-arguments.jsasync-func-decl-no-pre-existing-arguments-bindings-are-present-declare-arguments-and-assign.jsasync-func-decl-no-pre-existing-arguments-bindings-are-present-declare-arguments.jsasync-func-expr-named-a-following-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-func-expr-named-a-following-parameter-is-named-arguments-declare-arguments.jsasync-func-expr-named-a-preceding-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-func-expr-named-a-preceding-parameter-is-named-arguments-declare-arguments.jsasync-func-expr-named-fn-body-cntns-arguments-func-decl-declare-arguments-and-assign.jsasync-func-expr-named-fn-body-cntns-arguments-func-decl-declare-arguments.jsasync-func-expr-named-fn-body-cntns-arguments-lex-bind-declare-arguments-and-assign.jsasync-func-expr-named-fn-body-cntns-arguments-lex-bind-declare-arguments.jsasync-func-expr-named-fn-body-cntns-arguments-var-bind-declare-arguments-and-assign.jsasync-func-expr-named-fn-body-cntns-arguments-var-bind-declare-arguments.jsasync-func-expr-named-no-pre-existing-arguments-bindings-are-present-declare-arguments-and-assign.jsasync-func-expr-named-no-pre-existing-arguments-bindings-are-present-declare-arguments.jsasync-func-expr-nameless-a-following-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-func-expr-nameless-a-following-parameter-is-named-arguments-declare-arguments.jsasync-func-expr-nameless-a-preceding-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-func-expr-nameless-a-preceding-parameter-is-named-arguments-declare-arguments.jsasync-func-expr-nameless-fn-body-cntns-arguments-func-decl-declare-arguments-and-assign.jsasync-func-expr-nameless-fn-body-cntns-arguments-func-decl-declare-arguments.jsasync-func-expr-nameless-fn-body-cntns-arguments-lex-bind-declare-arguments-and-assign.jsasync-func-expr-nameless-fn-body-cntns-arguments-lex-bind-declare-arguments.jsasync-func-expr-nameless-fn-body-cntns-arguments-var-bind-declare-arguments-and-assign.jsasync-func-expr-nameless-fn-body-cntns-arguments-var-bind-declare-arguments.jsasync-func-expr-nameless-no-pre-existing-arguments-bindings-are-present-declare-arguments-and-assign.jsasync-func-expr-nameless-no-pre-existing-arguments-bindings-are-present-declare-arguments.jsasync-gen-func-decl-a-following-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-gen-func-decl-a-following-parameter-is-named-arguments-declare-arguments.jsasync-gen-func-decl-a-preceding-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-gen-func-decl-a-preceding-parameter-is-named-arguments-declare-arguments.jsasync-gen-func-decl-fn-body-cntns-arguments-func-decl-declare-arguments-and-assign.jsasync-gen-func-decl-fn-body-cntns-arguments-func-decl-declare-arguments.jsasync-gen-func-decl-fn-body-cntns-arguments-lex-bind-declare-arguments-and-assign.jsasync-gen-func-decl-fn-body-cntns-arguments-lex-bind-declare-arguments.jsasync-gen-func-decl-fn-body-cntns-arguments-var-bind-declare-arguments-and-assign.jsasync-gen-func-decl-fn-body-cntns-arguments-var-bind-declare-arguments.jsasync-gen-func-decl-no-pre-existing-arguments-bindings-are-present-declare-arguments-and-assign.jsasync-gen-func-decl-no-pre-existing-arguments-bindings-are-present-declare-arguments.jsasync-gen-func-expr-a-following-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-gen-func-expr-a-following-parameter-is-named-arguments-declare-arguments.jsasync-gen-func-expr-a-preceding-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-gen-func-expr-a-preceding-parameter-is-named-arguments-declare-arguments.jsasync-gen-func-expr-fn-body-cntns-arguments-func-decl-declare-arguments-and-assign.jsasync-gen-func-expr-fn-body-cntns-arguments-func-decl-declare-arguments.jsasync-gen-func-expr-fn-body-cntns-arguments-lex-bind-declare-arguments-and-assign.jsasync-gen-func-expr-fn-body-cntns-arguments-lex-bind-declare-arguments.jsasync-gen-func-expr-fn-body-cntns-arguments-var-bind-declare-arguments-and-assign.jsasync-gen-func-expr-fn-body-cntns-arguments-var-bind-declare-arguments.jsasync-gen-func-expr-no-pre-existing-arguments-bindings-are-present-declare-arguments-and-assign.jsasync-gen-func-expr-no-pre-existing-arguments-bindings-are-present-declare-arguments.jsasync-gen-meth-a-following-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-gen-meth-a-following-parameter-is-named-arguments-declare-arguments.jsasync-gen-meth-a-preceding-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-gen-meth-a-preceding-parameter-is-named-arguments-declare-arguments.jsasync-gen-meth-fn-body-cntns-arguments-func-decl-declare-arguments-and-assign.jsasync-gen-meth-fn-body-cntns-arguments-func-decl-declare-arguments.jsasync-gen-meth-fn-body-cntns-arguments-lex-bind-declare-arguments-and-assign.jsasync-gen-meth-fn-body-cntns-arguments-lex-bind-declare-arguments.jsasync-gen-meth-fn-body-cntns-arguments-var-bind-declare-arguments-and-assign.jsasync-gen-meth-fn-body-cntns-arguments-var-bind-declare-arguments.jsasync-gen-meth-no-pre-existing-arguments-bindings-are-present-declare-arguments-and-assign.jsasync-gen-meth-no-pre-existing-arguments-bindings-are-present-declare-arguments.jsasync-gen-named-func-expr-a-following-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-gen-named-func-expr-a-following-parameter-is-named-arguments-declare-arguments.jsasync-gen-named-func-expr-a-preceding-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-gen-named-func-expr-a-preceding-parameter-is-named-arguments-declare-arguments.jsasync-gen-named-func-expr-fn-body-cntns-arguments-func-decl-declare-arguments-and-assign.jsasync-gen-named-func-expr-fn-body-cntns-arguments-func-decl-declare-arguments.jsasync-gen-named-func-expr-fn-body-cntns-arguments-lex-bind-declare-arguments-and-assign.jsasync-gen-named-func-expr-fn-body-cntns-arguments-lex-bind-declare-arguments.jsasync-gen-named-func-expr-fn-body-cntns-arguments-var-bind-declare-arguments-and-assign.jsasync-gen-named-func-expr-fn-body-cntns-arguments-var-bind-declare-arguments.jsasync-gen-named-func-expr-no-pre-existing-arguments-bindings-are-present-declare-arguments-and-assign.jsasync-gen-named-func-expr-no-pre-existing-arguments-bindings-are-present-declare-arguments.jsasync-meth-a-following-parameter-is-named-arguments-declare-arguments-and-assign.jsasync-meth-a-following-parameter-is-named-arguments-declare-arguments.js
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
const f = (p = eval("var arguments = 'param'"), q = () => arguments, arguments) => {}
|
||||
assert.throws(SyntaxError, f);
|
||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
const f = (p = eval("var arguments = 'param'"), arguments) => {}
|
||||
assert.throws(SyntaxError, f);
|
||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
const f = (arguments, p = eval("var arguments = 'param'"), q = () => arguments) => {}
|
||||
assert.throws(SyntaxError, f);
|
||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
const f = (arguments, p = eval("var arguments = 'param'")) => {}
|
||||
assert.throws(SyntaxError, f);
|
||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = eval("var arguments = 'param'"), q = () => arguments) => {
|
||||
function arguments() {}
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = eval("var arguments = 'param'")) => {
|
||||
function arguments() {}
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = eval("var arguments = 'param'"), q = () => arguments) => {
|
||||
function arguments() {}
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = eval("var arguments = 'param'")) => {
|
||||
function arguments() {}
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = eval("var arguments = 'param'"), q = () => arguments) => {
|
||||
let arguments = "local";
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = eval("var arguments = 'param'")) => {
|
||||
let arguments = "local";
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = eval("var arguments = 'param'"), q = () => arguments) => {
|
||||
var arguments = "local";
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = eval("var arguments = 'param'")) => {
|
||||
var arguments = "local";
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = eval("var arguments = 'param'"), q = () => arguments) => {
|
||||
assert.sameValue(arguments, "param");
|
||||
|
@ -7,9 +7,7 @@ esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = eval("var arguments = 'param'")) => {
|
||||
assert.sameValue(arguments, "param");
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = eval("var arguments = 'param'"), arguments) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = eval("var arguments"), arguments) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(arguments, p = eval("var arguments = 'param'")) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(arguments, p = eval("var arguments")) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = eval("var arguments = 'param'")) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = eval("var arguments")) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = eval("var arguments = 'param'")) {
|
||||
let arguments;
|
||||
}
|
||||
|
3
test/language/eval-code/direct/async-func-decl-fn-body-cntns-arguments-lex-bind-declare-arguments.js
3
test/language/eval-code/direct/async-func-decl-fn-body-cntns-arguments-lex-bind-declare-arguments.js
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = eval("var arguments")) {
|
||||
let arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = eval("var arguments = 'param'")) {
|
||||
var arguments;
|
||||
}
|
||||
|
3
test/language/eval-code/direct/async-func-decl-fn-body-cntns-arguments-var-bind-declare-arguments.js
3
test/language/eval-code/direct/async-func-decl-fn-body-cntns-arguments-var-bind-declare-arguments.js
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = eval("var arguments")) {
|
||||
var arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = eval("var arguments = 'param'")) {}
|
||||
f().then($DONE, error => {
|
||||
assert(error instanceof SyntaxError);
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = eval("var arguments")) {}
|
||||
f().then($DONE, error => {
|
||||
assert(error instanceof SyntaxError);
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = eval("var arguments = 'param'"), arguments) {
|
||||
|
||||
};
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = eval("var arguments"), arguments) {
|
||||
|
||||
};
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(arguments, p = eval("var arguments = 'param'")) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(arguments, p = eval("var arguments")) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = eval("var arguments = 'param'")) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = eval("var arguments")) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = eval("var arguments = 'param'")) {
|
||||
let arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = eval("var arguments")) {
|
||||
let arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = eval("var arguments = 'param'")) {
|
||||
var arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = eval("var arguments")) {
|
||||
var arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = eval("var arguments = 'param'")) {}
|
||||
f().then($DONE, error => {
|
||||
assert(error instanceof SyntaxError);
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = eval("var arguments")) {}
|
||||
f().then($DONE, error => {
|
||||
assert(error instanceof SyntaxError);
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = eval("var arguments = 'param'"), arguments) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = eval("var arguments"), arguments) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(arguments, p = eval("var arguments = 'param'")) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(arguments, p = eval("var arguments")) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = eval("var arguments = 'param'")) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = eval("var arguments")) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = eval("var arguments = 'param'")) {
|
||||
let arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = eval("var arguments")) {
|
||||
let arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = eval("var arguments = 'param'")) {
|
||||
var arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = eval("var arguments")) {
|
||||
var arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = eval("var arguments = 'param'")) {}
|
||||
f().then($DONE, error => {
|
||||
assert(error instanceof SyntaxError);
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = eval("var arguments")) {}
|
||||
f().then($DONE, error => {
|
||||
assert(error instanceof SyntaxError);
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = eval("var arguments = 'param'"), arguments) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = eval("var arguments"), arguments) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(arguments, p = eval("var arguments = 'param'")) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(arguments, p = eval("var arguments")) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = eval("var arguments = 'param'")) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = eval("var arguments")) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = eval("var arguments = 'param'")) {
|
||||
let arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = eval("var arguments")) {
|
||||
let arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = eval("var arguments = 'param'")) {
|
||||
var arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = eval("var arguments")) {
|
||||
var arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = eval("var arguments = 'param'")) {}
|
||||
|
||||
assert.throws(SyntaxError, f);
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = eval("var arguments")) {}
|
||||
|
||||
assert.throws(SyntaxError, f);
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = eval("var arguments = 'param'"), arguments) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = eval("var arguments"), arguments) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (arguments, p = eval("var arguments = 'param'")) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (arguments, p = eval("var arguments")) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = eval("var arguments = 'param'")) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = eval("var arguments")) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = eval("var arguments = 'param'")) {
|
||||
let arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = eval("var arguments")) {
|
||||
let arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = eval("var arguments = 'param'")) {
|
||||
var arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = eval("var arguments")) {
|
||||
var arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = eval("var arguments = 'param'")) {}
|
||||
|
||||
assert.throws(SyntaxError, f);
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = eval("var arguments")) {}
|
||||
|
||||
assert.throws(SyntaxError, f);
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = eval("var arguments = 'param'"), arguments) {
|
||||
|
||||
}};
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = eval("var arguments"), arguments) {
|
||||
|
||||
}};
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(arguments, p = eval("var arguments = 'param'")) {
|
||||
|
||||
}};
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(arguments, p = eval("var arguments")) {
|
||||
|
||||
}};
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = eval("var arguments = 'param'")) {
|
||||
function arguments() {}
|
||||
}};
|
||||
|
3
test/language/eval-code/direct/async-gen-meth-fn-body-cntns-arguments-func-decl-declare-arguments.js
3
test/language/eval-code/direct/async-gen-meth-fn-body-cntns-arguments-func-decl-declare-arguments.js
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = eval("var arguments")) {
|
||||
function arguments() {}
|
||||
}};
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = eval("var arguments = 'param'")) {
|
||||
let arguments;
|
||||
}};
|
||||
|
3
test/language/eval-code/direct/async-gen-meth-fn-body-cntns-arguments-lex-bind-declare-arguments.js
3
test/language/eval-code/direct/async-gen-meth-fn-body-cntns-arguments-lex-bind-declare-arguments.js
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = eval("var arguments")) {
|
||||
let arguments;
|
||||
}};
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = eval("var arguments = 'param'")) {
|
||||
var arguments;
|
||||
}};
|
||||
|
3
test/language/eval-code/direct/async-gen-meth-fn-body-cntns-arguments-var-bind-declare-arguments.js
3
test/language/eval-code/direct/async-gen-meth-fn-body-cntns-arguments-var-bind-declare-arguments.js
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = eval("var arguments")) {
|
||||
var arguments;
|
||||
}};
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = eval("var arguments = 'param'")) {}};
|
||||
assert.throws(SyntaxError, o.f);
|
||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = eval("var arguments")) {}};
|
||||
assert.throws(SyntaxError, o.f);
|
||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = eval("var arguments = 'param'"), arguments) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = eval("var arguments"), arguments) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(arguments, p = eval("var arguments = 'param'")) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(arguments, p = eval("var arguments")) {
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = eval("var arguments = 'param'")) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = eval("var arguments")) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = eval("var arguments = 'param'")) {
|
||||
let arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = eval("var arguments")) {
|
||||
let arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = eval("var arguments = 'param'")) {
|
||||
var arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = eval("var arguments")) {
|
||||
var arguments;
|
||||
}
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = eval("var arguments = 'param'")) {}
|
||||
|
||||
assert.throws(SyntaxError, f);
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = eval("var arguments")) {}
|
||||
|
||||
assert.throws(SyntaxError, f);
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async f(p = eval("var arguments = 'param'"), arguments) {
|
||||
|
||||
}};
|
||||
|
@ -8,10 +8,7 @@ features: [globalThis]
|
||||
flags: [generated, async, noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async f(p = eval("var arguments"), arguments) {
|
||||
|
||||
}};
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user