Fix cross realm tests in Proxy.construct

This commit is contained in:
Leo Balter 2017-09-06 17:03:24 -04:00 committed by Rick Waldron
parent cf43f93284
commit be420f34f0
1 changed files with 1 additions and 2 deletions

View File

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