mirror of
https://github.com/tc39/test262.git
synced 2025-07-29 00:44:32 +02:00
Remove whitespace per review
This commit is contained in:
parent
ff08e2bd4f
commit
0fde7c47fc
@ -7,9 +7,7 @@ name: Declare |arguments| when a following parameter is named |arguments|.
|
|||||||
esid: sec-evaldeclarationinstantiation
|
esid: sec-evaldeclarationinstantiation
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
const f = (p = /*{ parameter-code }*/, arguments) => {}
|
const f = (p = /*{ parameter-code }*/, arguments) => {}
|
||||||
assert.throws(SyntaxError, f);
|
assert.throws(SyntaxError, f);
|
||||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
||||||
|
@ -7,9 +7,7 @@ name: Declare |arguments| when a preceding parameter is named |arguments|.
|
|||||||
esid: sec-evaldeclarationinstantiation
|
esid: sec-evaldeclarationinstantiation
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
const f = (arguments, p = /*{ parameter-code }*/) => {}
|
const f = (arguments, p = /*{ parameter-code }*/) => {}
|
||||||
assert.throws(SyntaxError, f);
|
assert.throws(SyntaxError, f);
|
||||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
||||||
|
@ -7,9 +7,7 @@ name: Declare |arguments| when the function body contains an |arguments| functio
|
|||||||
esid: sec-evaldeclarationinstantiation
|
esid: sec-evaldeclarationinstantiation
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
let count = 0;
|
let count = 0;
|
||||||
const f = (p = /*{ parameter-code }*/) => {
|
const f = (p = /*{ parameter-code }*/) => {
|
||||||
function arguments() {}
|
function arguments() {}
|
||||||
|
@ -7,9 +7,7 @@ name: Declare |arguments| when the function body contains an |arguments| functio
|
|||||||
esid: sec-evaldeclarationinstantiation
|
esid: sec-evaldeclarationinstantiation
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
let count = 0;
|
let count = 0;
|
||||||
const f = (p = /*{ parameter-code }*/) => {
|
const f = (p = /*{ parameter-code }*/) => {
|
||||||
function arguments() {}
|
function arguments() {}
|
||||||
|
@ -7,9 +7,7 @@ name: Declare |arguments| when the function body contains an |arguments| lexical
|
|||||||
esid: sec-evaldeclarationinstantiation
|
esid: sec-evaldeclarationinstantiation
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
let count = 0;
|
let count = 0;
|
||||||
const f = (p = /*{ parameter-code }*/) => {
|
const f = (p = /*{ parameter-code }*/) => {
|
||||||
let arguments = "local";
|
let arguments = "local";
|
||||||
|
@ -7,9 +7,7 @@ name: Declare |arguments| when the function body contains an |arguments| var-bin
|
|||||||
esid: sec-evaldeclarationinstantiation
|
esid: sec-evaldeclarationinstantiation
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
let count = 0;
|
let count = 0;
|
||||||
const f = (p = /*{ parameter-code }*/) => {
|
const f = (p = /*{ parameter-code }*/) => {
|
||||||
var arguments = "local";
|
var arguments = "local";
|
||||||
|
@ -7,9 +7,7 @@ name: Declare |arguments| when no pre-existing |arguments| bindings are present.
|
|||||||
esid: sec-evaldeclarationinstantiation
|
esid: sec-evaldeclarationinstantiation
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
let count = 0;
|
let count = 0;
|
||||||
const f = (p = /*{ parameter-code }*/) => {
|
const f = (p = /*{ parameter-code }*/) => {
|
||||||
assert.sameValue(arguments, "param");
|
assert.sameValue(arguments, "param");
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
async function f(p = /*{ parameter-code }*/, arguments) {
|
async function f(p = /*{ parameter-code }*/, arguments) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
async function f(arguments, p = /*{ parameter-code }*/) {
|
async function f(arguments, p = /*{ parameter-code }*/) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
async function f(p = /*{ parameter-code }*/) {
|
async function f(p = /*{ parameter-code }*/) {
|
||||||
function arguments() {}
|
function arguments() {}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
async function f(p = /*{ parameter-code }*/) {
|
async function f(p = /*{ parameter-code }*/) {
|
||||||
let arguments;
|
let arguments;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
async function f(p = /*{ parameter-code }*/) {
|
async function f(p = /*{ parameter-code }*/) {
|
||||||
var arguments;
|
var arguments;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
async function f(p = /*{ parameter-code }*/) {}
|
async function f(p = /*{ parameter-code }*/) {}
|
||||||
f().then($DONE, error => {
|
f().then($DONE, error => {
|
||||||
assert(error instanceof SyntaxError);
|
assert(error instanceof SyntaxError);
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function f(p = /*{ parameter-code }*/, arguments) {
|
let f = async function f(p = /*{ parameter-code }*/, arguments) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
};
|
};
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function f(arguments, p = /*{ parameter-code }*/) {
|
let f = async function f(arguments, p = /*{ parameter-code }*/) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function f(p = /*{ parameter-code }*/) {
|
let f = async function f(p = /*{ parameter-code }*/) {
|
||||||
function arguments() {}
|
function arguments() {}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function f(p = /*{ parameter-code }*/) {
|
let f = async function f(p = /*{ parameter-code }*/) {
|
||||||
let arguments;
|
let arguments;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function f(p = /*{ parameter-code }*/) {
|
let f = async function f(p = /*{ parameter-code }*/) {
|
||||||
var arguments;
|
var arguments;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function f(p = /*{ parameter-code }*/) {}
|
let f = async function f(p = /*{ parameter-code }*/) {}
|
||||||
f().then($DONE, error => {
|
f().then($DONE, error => {
|
||||||
assert(error instanceof SyntaxError);
|
assert(error instanceof SyntaxError);
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function(p = /*{ parameter-code }*/, arguments) {
|
let f = async function(p = /*{ parameter-code }*/, arguments) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function(arguments, p = /*{ parameter-code }*/) {
|
let f = async function(arguments, p = /*{ parameter-code }*/) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function(p = /*{ parameter-code }*/) {
|
let f = async function(p = /*{ parameter-code }*/) {
|
||||||
function arguments() {}
|
function arguments() {}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function(p = /*{ parameter-code }*/) {
|
let f = async function(p = /*{ parameter-code }*/) {
|
||||||
let arguments;
|
let arguments;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function(p = /*{ parameter-code }*/) {
|
let f = async function(p = /*{ parameter-code }*/) {
|
||||||
var arguments;
|
var arguments;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function(p = /*{ parameter-code }*/) {}
|
let f = async function(p = /*{ parameter-code }*/) {}
|
||||||
f().then($DONE, error => {
|
f().then($DONE, error => {
|
||||||
assert(error instanceof SyntaxError);
|
assert(error instanceof SyntaxError);
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
async function * f(p = /*{ parameter-code }*/, arguments) {
|
async function * f(p = /*{ parameter-code }*/, arguments) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
async function * f(arguments, p = /*{ parameter-code }*/) {
|
async function * f(arguments, p = /*{ parameter-code }*/) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
async function * f(p = /*{ parameter-code }*/) {
|
async function * f(p = /*{ parameter-code }*/) {
|
||||||
function arguments() {}
|
function arguments() {}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
async function * f(p = /*{ parameter-code }*/) {
|
async function * f(p = /*{ parameter-code }*/) {
|
||||||
let arguments;
|
let arguments;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
async function * f(p = /*{ parameter-code }*/) {
|
async function * f(p = /*{ parameter-code }*/) {
|
||||||
var arguments;
|
var arguments;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
async function * f(p = /*{ parameter-code }*/) {}
|
async function * f(p = /*{ parameter-code }*/) {}
|
||||||
|
|
||||||
assert.throws(SyntaxError, f);
|
assert.throws(SyntaxError, f);
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function * (p = /*{ parameter-code }*/, arguments) {
|
let f = async function * (p = /*{ parameter-code }*/, arguments) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function * (arguments, p = /*{ parameter-code }*/) {
|
let f = async function * (arguments, p = /*{ parameter-code }*/) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function * (p = /*{ parameter-code }*/) {
|
let f = async function * (p = /*{ parameter-code }*/) {
|
||||||
function arguments() {}
|
function arguments() {}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function * (p = /*{ parameter-code }*/) {
|
let f = async function * (p = /*{ parameter-code }*/) {
|
||||||
let arguments;
|
let arguments;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function * (p = /*{ parameter-code }*/) {
|
let f = async function * (p = /*{ parameter-code }*/) {
|
||||||
var arguments;
|
var arguments;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function * (p = /*{ parameter-code }*/) {}
|
let f = async function * (p = /*{ parameter-code }*/) {}
|
||||||
|
|
||||||
assert.throws(SyntaxError, f);
|
assert.throws(SyntaxError, f);
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let o = { async *f(p = /*{ parameter-code }*/, arguments) {
|
let o = { async *f(p = /*{ parameter-code }*/, arguments) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}};
|
}};
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let o = { async *f(arguments, p = /*{ parameter-code }*/) {
|
let o = { async *f(arguments, p = /*{ parameter-code }*/) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}};
|
}};
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let o = { async *f(p = /*{ parameter-code }*/) {
|
let o = { async *f(p = /*{ parameter-code }*/) {
|
||||||
function arguments() {}
|
function arguments() {}
|
||||||
}};
|
}};
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let o = { async *f(p = /*{ parameter-code }*/) {
|
let o = { async *f(p = /*{ parameter-code }*/) {
|
||||||
let arguments;
|
let arguments;
|
||||||
}};
|
}};
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let o = { async *f(p = /*{ parameter-code }*/) {
|
let o = { async *f(p = /*{ parameter-code }*/) {
|
||||||
var arguments;
|
var arguments;
|
||||||
}};
|
}};
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let o = { async *f(p = /*{ parameter-code }*/) {}};
|
let o = { async *f(p = /*{ parameter-code }*/) {}};
|
||||||
assert.throws(SyntaxError, o.f);
|
assert.throws(SyntaxError, o.f);
|
||||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function * f(p = /*{ parameter-code }*/, arguments) {
|
let f = async function * f(p = /*{ parameter-code }*/, arguments) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function * f(arguments, p = /*{ parameter-code }*/) {
|
let f = async function * f(arguments, p = /*{ parameter-code }*/) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function * f(p = /*{ parameter-code }*/) {
|
let f = async function * f(p = /*{ parameter-code }*/) {
|
||||||
function arguments() {}
|
function arguments() {}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function * f(p = /*{ parameter-code }*/) {
|
let f = async function * f(p = /*{ parameter-code }*/) {
|
||||||
let arguments;
|
let arguments;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function * f(p = /*{ parameter-code }*/) {
|
let f = async function * f(p = /*{ parameter-code }*/) {
|
||||||
var arguments;
|
var arguments;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let f = async function * f(p = /*{ parameter-code }*/) {}
|
let f = async function * f(p = /*{ parameter-code }*/) {}
|
||||||
|
|
||||||
assert.throws(SyntaxError, f);
|
assert.throws(SyntaxError, f);
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let o = { async f(p = /*{ parameter-code }*/, arguments) {
|
let o = { async f(p = /*{ parameter-code }*/, arguments) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}};
|
}};
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let o = { async f(arguments, p = /*{ parameter-code }*/) {
|
let o = { async f(arguments, p = /*{ parameter-code }*/) {
|
||||||
/*{ body }*/
|
/*{ body }*/
|
||||||
}};
|
}};
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let o = { async f(p = /*{ parameter-code }*/) {
|
let o = { async f(p = /*{ parameter-code }*/) {
|
||||||
function arguments() {}
|
function arguments() {}
|
||||||
}};
|
}};
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let o = { async f(p = /*{ parameter-code }*/) {
|
let o = { async f(p = /*{ parameter-code }*/) {
|
||||||
let arguments;
|
let arguments;
|
||||||
}};
|
}};
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let o = { async f(p = /*{ parameter-code }*/) {
|
let o = { async f(p = /*{ parameter-code }*/) {
|
||||||
var arguments;
|
var arguments;
|
||||||
}};
|
}};
|
||||||
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||||||
flags: [async,noStrict]
|
flags: [async,noStrict]
|
||||||
features: [globalThis]
|
features: [globalThis]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
const oldArguments = globalThis.arguments;
|
const oldArguments = globalThis.arguments;
|
||||||
|
|
||||||
|
|
||||||
let o = { async f(p = /*{ parameter-code }*/) {}};
|
let o = { async f(p = /*{ parameter-code }*/) {}};
|
||||||
o.f().then($DONE, error => {
|
o.f().then($DONE, error => {
|
||||||
assert(error instanceof SyntaxError);
|
assert(error instanceof SyntaxError);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user