Skip to content

Commit

Permalink
Fix tests for AggregateError
Browse files Browse the repository at this point in the history
  • Loading branch information
leobalter committed Nov 11, 2019
1 parent 1bc1935 commit ea20012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/built-ins/AggregateError/newtarget-proto-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var newt = new Proxy(function() {}, {
}
});

var obj = Reflect.construct(AggregateError, [], newt);
var obj = Reflect.construct(AggregateError, [[]], newt);

assert.sameValue(Object.getPrototypeOf(obj), custom);
assert.sameValue(obj.x, 42);
2 changes: 1 addition & 1 deletion test/built-ins/AggregateError/newtarget-proto-fallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ for (const value of values) {
}
});

const obj = Reflect.construct(AggregateError, [], newt);
const obj = Reflect.construct(AggregateError, [[]], newt);

assert.sameValue(Object.getPrototypeOf(obj), custom);
assert.sameValue(obj.x, 42);
Expand Down

0 comments on commit ea20012

Please sign in to comment.