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