[Webkit-unassigned] [Bug 247427] Setting prototype of global `this` throws `TypeError`

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 3 18:49:21 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=247427

--- Comment #2 from Alexey Shvayka <ashvayka at apple.com> ---
Great catch, thank you!

Indeed the ECMA-262 doesn't require global object to have immutable prototype; it's the WebIDL spec which makes global objects' [[Prototype]] slots immutable: https://webidl.spec.whatwg.org/#platform-object-setprototypeof. That shouldn't affect the JSC shell of course.

When fixing that we need to ensure that scope resolution is sane when `globalThis.__proto__` is modified, which might get a little tricky.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221104/b849cf4e/attachment-0001.htm>


More information about the webkit-unassigned mailing list