mirror of https://github.com/tc39/test262.git
Remove template that is generating duplicate tests
This commit is contained in:
parent
1af15d5199
commit
a563e3a3f8
|
@ -1,20 +0,0 @@
|
|||
// Copyright (C) 2020 Rick Waldron, André Bargull. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/eval-code/direct/arrow-fn-body-cntns-arguments-fn-decl-params-cntns-dflt-assignment-
|
||||
name: Declare |arguments| when the function body contains an |arguments| function declaration.
|
||||
esid: sec-evaldeclarationinstantiation
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
const oldArguments = globalThis.arguments;
|
||||
let count = 0;
|
||||
const f = (p = /*{ parameter-code }*/) => {
|
||||
function arguments() {}
|
||||
assert.sameValue(typeof arguments, "function");
|
||||
/*{ body }*/
|
||||
count++;
|
||||
}
|
||||
f();
|
||||
assert.sameValue(count, 1);
|
||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
|
@ -1,20 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/direct-eval-code/arrow-func-declare-arguments-assign-incl-def-param-arrow-arguments.case
|
||||
// - src/direct-eval-code/arrow-func/fn-body-cntns-arguments-fn-decl-params-cntns-dflt-assignment.template
|
||||
/*---
|
||||
description: Declare "arguments" and assign to it in direct eval code (Declare |arguments| when the function body contains an |arguments| function declaration.)
|
||||
esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
let count = 0;
|
||||
const f = (p = eval("var arguments = 'param'"), q = () => arguments) => {
|
||||
function arguments() {}
|
||||
assert.sameValue(typeof arguments, "function");
|
||||
assert.sameValue(q(), "param");
|
||||
count++;
|
||||
}
|
||||
f();
|
||||
assert.sameValue(count, 1);
|
||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
|
@ -1,20 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/direct-eval-code/arrow-func-declare-arguments-assign.case
|
||||
// - src/direct-eval-code/arrow-func/fn-body-cntns-arguments-fn-decl-params-cntns-dflt-assignment.template
|
||||
/*---
|
||||
description: Declare "arguments" and assign to it in direct eval code (Declare |arguments| when the function body contains an |arguments| function declaration.)
|
||||
esid: sec-evaldeclarationinstantiation
|
||||
flags: [generated, noStrict]
|
||||
---*/
|
||||
|
||||
const oldArguments = globalThis.arguments;
|
||||
let count = 0;
|
||||
const f = (p = eval("var arguments = 'param'")) => {
|
||||
function arguments() {}
|
||||
assert.sameValue(typeof arguments, "function");
|
||||
|
||||
count++;
|
||||
}
|
||||
f();
|
||||
assert.sameValue(count, 1);
|
||||
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
|
Loading…
Reference in New Issue