mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS/Tests: Rename function parameter from 'arguments' to 'arguments_'
The former has a special meaning and should be avoided where possible.
This commit is contained in:
@@ -11,11 +11,13 @@ describe("[[Call]] trap normal behavior", () => {
|
||||
test("correct arguments supplied to trap", () => {
|
||||
const f = (a, b) => a + b;
|
||||
const handler = {
|
||||
apply(target, this_, arguments) {
|
||||
apply(target, this_, arguments_) {
|
||||
expect(target).toBe(f);
|
||||
expect(this_).toBe(handler);
|
||||
if (arguments[2]) return arguments[0] * arguments[1];
|
||||
return f(...arguments);
|
||||
if (arguments_[2]) {
|
||||
return arguments_[0] * arguments_[1];
|
||||
}
|
||||
return f(...arguments_);
|
||||
},
|
||||
};
|
||||
p = new Proxy(f, handler);
|
||||
|
||||
Reference in New Issue
Block a user