blob: ffaeefb74334c129582b06a5f06ba1f056fba0f8 [file] [edit]
// 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/meth-fn-body-cntns-arguments-func-decl-
name: Declare |arguments| when the function body contains an |arguments| function declaration.
esid: sec-evaldeclarationinstantiation
flags: [noStrict]
---*/
assert.sameValue("arguments" in this, false, "No global 'arguments' binding");
let o = { f(p = /*{ parameter-code }*/) {
function arguments() {}
}};
assert.throws(SyntaxError, o.f);
assert.sameValue("arguments" in this, false, "No global 'arguments' binding");