blob: 19509cb86e3501bf5838b2d5cad276d427e9af8d [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/async-meth-a-following-parameter-is-named-arguments-
name: Declare |arguments| when a following parameter is named |arguments|.
esid: sec-evaldeclarationinstantiation
flags: [async,noStrict]
features: [globalThis]
---*/
const oldArguments = globalThis.arguments;
let o = { async f(p = /*{ parameter-code }*/, arguments) {
/*{ body }*/
}};
o.f().then($DONE, error => {
assert(error instanceof SyntaxError);
assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
}).then($DONE, $DONE);