Files
ladybird/Tests/LibWeb/Text/expected/HTML/globalThis-is-WindowProxy.txt
Luke Wilde 3d3b02b9c0 LibJS: Use the real globalThis value
Previously it used `realm.[[GlobalObject]]` instead of
`realm.[[GlobalEnv]].[[GlobalThisValue]]`.

In LibWeb, that corresponds to Window and WindowProxy respectively.
2026-04-23 20:43:01 +01:00

10 lines
351 B
Plaintext

globalThis === window: true
globalThis === self: true
globalThis === frames: true
globalThis === this: true
iframe contentWindow === iframe globalThis: true
iframe globalThis === iframe self: true
iframe realm globalThis === window: true
globalThis !== iframe globalThis: true
Object.getPrototypeOf(globalThis) === Object.getPrototypeOf(window): true