mirror of https://github.com/tc39/test262.git
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
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
const f = (p = /*{ parameter-code }*/, arguments) => {}
|
||||
assert.throws(SyntaxError, f);
|
||||
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
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
const f = (arguments, p = /*{ parameter-code }*/) => {}
|
||||
assert.throws(SyntaxError, f);
|
||||
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
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = /*{ parameter-code }*/) => {
|
||||
function arguments() {}
|
||||
|
|
|
@ -7,9 +7,7 @@ name: Declare |arguments| when the function body contains an |arguments| functio
|
|||
esid: sec-evaldeclarationinstantiation
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = /*{ parameter-code }*/) => {
|
||||
function arguments() {}
|
||||
|
|
|
@ -7,9 +7,7 @@ name: Declare |arguments| when the function body contains an |arguments| lexical
|
|||
esid: sec-evaldeclarationinstantiation
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = /*{ parameter-code }*/) => {
|
||||
let arguments = "local";
|
||||
|
|
|
@ -7,9 +7,7 @@ name: Declare |arguments| when the function body contains an |arguments| var-bin
|
|||
esid: sec-evaldeclarationinstantiation
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = /*{ parameter-code }*/) => {
|
||||
var arguments = "local";
|
||||
|
|
|
@ -7,9 +7,7 @@ name: Declare |arguments| when no pre-existing |arguments| bindings are present.
|
|||
esid: sec-evaldeclarationinstantiation
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
let count = 0;
|
||||
const f = (p = /*{ parameter-code }*/) => {
|
||||
assert.sameValue(arguments, "param");
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = /*{ parameter-code }*/, arguments) {
|
||||
/*{ body }*/
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(arguments, p = /*{ parameter-code }*/) {
|
||||
/*{ body }*/
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = /*{ parameter-code }*/) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = /*{ parameter-code }*/) {
|
||||
let arguments;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = /*{ parameter-code }*/) {
|
||||
var arguments;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function f(p = /*{ parameter-code }*/) {}
|
||||
f().then($DONE, error => {
|
||||
assert(error instanceof SyntaxError);
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = /*{ parameter-code }*/, arguments) {
|
||||
/*{ body }*/
|
||||
};
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(arguments, p = /*{ parameter-code }*/) {
|
||||
/*{ body }*/
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = /*{ parameter-code }*/) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = /*{ parameter-code }*/) {
|
||||
let arguments;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = /*{ parameter-code }*/) {
|
||||
var arguments;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function f(p = /*{ parameter-code }*/) {}
|
||||
f().then($DONE, error => {
|
||||
assert(error instanceof SyntaxError);
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = /*{ parameter-code }*/, arguments) {
|
||||
/*{ body }*/
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(arguments, p = /*{ parameter-code }*/) {
|
||||
/*{ body }*/
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = /*{ parameter-code }*/) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = /*{ parameter-code }*/) {
|
||||
let arguments;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = /*{ parameter-code }*/) {
|
||||
var arguments;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function(p = /*{ parameter-code }*/) {}
|
||||
f().then($DONE, error => {
|
||||
assert(error instanceof SyntaxError);
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = /*{ parameter-code }*/, arguments) {
|
||||
/*{ body }*/
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(arguments, p = /*{ parameter-code }*/) {
|
||||
/*{ body }*/
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = /*{ parameter-code }*/) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = /*{ parameter-code }*/) {
|
||||
let arguments;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = /*{ parameter-code }*/) {
|
||||
var arguments;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
async function * f(p = /*{ parameter-code }*/) {}
|
||||
|
||||
assert.throws(SyntaxError, f);
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = /*{ parameter-code }*/, arguments) {
|
||||
/*{ body }*/
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (arguments, p = /*{ parameter-code }*/) {
|
||||
/*{ body }*/
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = /*{ parameter-code }*/) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = /*{ parameter-code }*/) {
|
||||
let arguments;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = /*{ parameter-code }*/) {
|
||||
var arguments;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * (p = /*{ parameter-code }*/) {}
|
||||
|
||||
assert.throws(SyntaxError, f);
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = /*{ parameter-code }*/, arguments) {
|
||||
/*{ body }*/
|
||||
}};
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(arguments, p = /*{ parameter-code }*/) {
|
||||
/*{ body }*/
|
||||
}};
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = /*{ parameter-code }*/) {
|
||||
function arguments() {}
|
||||
}};
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = /*{ parameter-code }*/) {
|
||||
let arguments;
|
||||
}};
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = /*{ parameter-code }*/) {
|
||||
var arguments;
|
||||
}};
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async *f(p = /*{ parameter-code }*/) {}};
|
||||
assert.throws(SyntaxError, o.f);
|
||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = /*{ parameter-code }*/, arguments) {
|
||||
/*{ body }*/
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(arguments, p = /*{ parameter-code }*/) {
|
||||
/*{ body }*/
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = /*{ parameter-code }*/) {
|
||||
function arguments() {}
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = /*{ parameter-code }*/) {
|
||||
let arguments;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = /*{ parameter-code }*/) {
|
||||
var arguments;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let f = async function * f(p = /*{ parameter-code }*/) {}
|
||||
|
||||
assert.throws(SyntaxError, f);
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async f(p = /*{ parameter-code }*/, arguments) {
|
||||
/*{ body }*/
|
||||
}};
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async f(arguments, p = /*{ parameter-code }*/) {
|
||||
/*{ body }*/
|
||||
}};
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async f(p = /*{ parameter-code }*/) {
|
||||
function arguments() {}
|
||||
}};
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async f(p = /*{ parameter-code }*/) {
|
||||
let arguments;
|
||||
}};
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async f(p = /*{ parameter-code }*/) {
|
||||
var arguments;
|
||||
}};
|
||||
|
|
|
@ -8,10 +8,7 @@ esid: sec-evaldeclarationinstantiation
|
|||
flags: [async,noStrict]
|
||||
features: [globalThis]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
|
||||
|
||||
let o = { async f(p = /*{ parameter-code }*/) {}};
|
||||
o.f().then($DONE, error => {
|
||||
assert(error instanceof SyntaxError);
|
||||
|
|
Loading…
Reference in New Issue