Fix tests for AggregateError (#2419)

Ref tc39/proposal-promise-any#49
This commit is contained in:
Leo Balter 2019-11-15 12:46:58 -05:00 committed by GitHub
parent 43b0c7650d
commit 7040938bd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);