From ea20012c9704566dfbad4828100587cbe3e8bbb4 Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Mon, 11 Nov 2019 12:21:46 -0500 Subject: [PATCH] Fix tests for AggregateError Ref tc39/proposal-promise-any#49 --- test/built-ins/AggregateError/newtarget-proto-custom.js | 2 +- test/built-ins/AggregateError/newtarget-proto-fallback.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);