Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Layering: change SetImmutablePrototype to use [[GetPrototypeOf]] (#841)
SetImmutablePrototype is meant for use by a variety of objects beyond the ECMA-262 spec. Some of those objects do not have a [[Prototype]], or have a [[Prototype]] but use custom [[GetPrototypeOf]] logic to act is they don't sometimes. (Respectively: HTML's WindowProxy and Location objects.) As such, SetImmutablePrototype should look up the prototype using [[GetPrototypeOf]] instead of trying to look at the possibly-nonexistant [[Prototype]] slot directly. Some background: * web-platform-tests/wpt#5015 (comment) * whatwg/html#2400
- Loading branch information