mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
parent
43b0c7650d
commit
7040938bd0
@ -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(Object.getPrototypeOf(obj), custom);
|
||||||
assert.sameValue(obj.x, 42);
|
assert.sameValue(obj.x, 42);
|
||||||
|
@ -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(Object.getPrototypeOf(obj), custom);
|
||||||
assert.sameValue(obj.x, 42);
|
assert.sameValue(obj.x, 42);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user