setPrototypeOf

open override fun setPrototypeOf(cx: Context, proto: Scriptable?): Boolean(source)

[SetPrototypeOf] as the spec states it, answering whether the prototype was set: OrdinarySetPrototypeOf (ES 10.1.2.1), whose cycle check walks [Prototype] directly and stops at an object with its own [GetPrototypeOf], a proxy, without calling into it; and for %Object.prototype%, an immutable prototype exotic object, SetImmutablePrototype (ES 10.4.7). Upstream threw from inside the check, walked through a proxy's getPrototypeOf trap, and let Object.prototype take a new prototype.