| // 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-a-preceding-parameter-is-named-arguments- |
| name: Declare |arguments| when a preceding parameter is named |arguments|. |
| esid: sec-evaldeclarationinstantiation |
| flags: [noStrict] |
| ---*/ |
| |
| |
| assert.sameValue("arguments" in this, false, "No global 'arguments' binding"); |
| |
| let f = function(arguments, p = /*{ parameter-code }*/) { |
| /*{ body }*/ |
| } |
| assert.throws(SyntaxError, f); |
| |
| assert.sameValue("arguments" in this, false, "No global 'arguments' binding"); |