setPrototypeOf returns 'true' if called with the target's prototype (#768)

This commit is contained in:
Henrique Ferreiro 2016-10-05 19:25:35 +02:00 committed by Leo Balter
parent 9d8d8b6920
commit 0651a7fad1
1 changed files with 1 additions and 1 deletions

View File

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