blob: b80a51714cf69a70285c3fe715cd92595aeb785b [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/async-gen-func-expr-a-preceding-parameter-is-named-arguments-
name: Declare |arguments| when a preceding parameter is named |arguments|.
esid: sec-evaldeclarationinstantiation
flags: [noStrict]
features: [globalThis]
---*/
const oldArguments = globalThis.arguments;
let f = async function * (arguments, p = /*{ parameter-code }*/) {
/*{ body }*/
}
assert.throws(SyntaxError, f);
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");