mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
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…
x
Reference in New Issue
Block a user