| // 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-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 o = { f(p = /*{ parameter-code }*/) { |
| var arguments; |
| }}; |
| assert.throws(SyntaxError, o.f); |
| |
| assert.sameValue("arguments" in this, false, "No global 'arguments' binding"); |