mirror of https://github.com/tc39/test262.git
Fix cross realm tests in Proxy.construct
This commit is contained in:
parent
cf43f93284
commit
be420f34f0
|
@ -25,10 +25,9 @@ features: [Reflect.construct]
|
|||
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
var P = new Proxy(function() {}, {});
|
||||
|
||||
var p = Reflect.construct(P, [], C);
|
||||
|
||||
assert.sameValue(Object.getPrototypeOf(p), other.Object.prototype);
|
||||
assert.sameValue(Object.getPrototypeOf(Object.getPrototypeOf(p)), other.Object.prototype);
|
||||
|
|
Loading…
Reference in New Issue