mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibWeb: Exclude [Global] interfaces from legacy platform object methods
Window and other global objects are not technically legacy platform objects, and have other ways to override their setters and getters. However, Window does need to share some code with the legacy platform object paths, and simply adding another bool check to the mix seems the shortest putt.
This commit is contained in:
parent
2b22402c6a
commit
2505cecc0f
3 changed files with 33 additions and 5 deletions
|
@ -0,0 +1,6 @@
|
|||
window.__NEXT_DATA__ = [object HTMLScriptElement]
|
||||
window.__NEXT_DATA__ = undefined
|
||||
window[0] = undefined
|
||||
e = TypeError: Cannot set property '0' of [object WindowProxy]
|
||||
window[0] = undefined
|
||||
window[0] = 42
|
Loading…
Add table
Add a link
Reference in a new issue