diff --git a/test/built-ins/AggregateError/newtarget-proto-custom.js b/test/built-ins/AggregateError/newtarget-proto-custom.js index da946dbdd48..ddd365fa4c0 100644 --- a/test/built-ins/AggregateError/newtarget-proto-custom.js +++ b/test/built-ins/AggregateError/newtarget-proto-custom.js @@ -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); diff --git a/test/built-ins/AggregateError/newtarget-proto-fallback.js b/test/built-ins/AggregateError/newtarget-proto-fallback.js index 63c4d358677..9f921ab97e5 100644 --- a/test/built-ins/AggregateError/newtarget-proto-fallback.js +++ b/test/built-ins/AggregateError/newtarget-proto-fallback.js @@ -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);