blob: 6f242850c895b0f8980f0045adccb3c3d543643b [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/gen-func-expr-nameless-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 f = function * (p = /*{ parameter-code }*/) {
function arguments() {}
}
assert.throws(SyntaxError, f);
assert.sameValue("arguments" in this, false, "No global 'arguments' binding");