mirror of https://github.com/tc39/test262.git
setPrototypeOf returns 'true' if called with the target's prototype (#768)
This commit is contained in:
parent
9d8d8b6920
commit
0651a7fad1
|
@ -41,7 +41,7 @@ var proxy = new Proxy(target, {
|
|||
}
|
||||
});
|
||||
|
||||
assert.sameValue(Reflect.setPrototypeOf(proxy, proto), false);
|
||||
assert.sameValue(Reflect.setPrototypeOf(proxy, proto), true);
|
||||
assert.sameValue(calls.length, 3);
|
||||
assert.sameValue(calls[0], "proxy.[[setPrototypeOf]]");
|
||||
assert.sameValue(calls[1], "target.[[IsExtensible]]");
|
||||
|
|
Loading…
Reference in New Issue