blob: 2220932bcde0309e4b57d5ea55f4f455d800c721 [file] [log] [blame] [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/func-expr-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");