js: bind globalThis to the global object (isu issue 363) master
Per ES2020 `globalThis` references the global object. The engine never bound it, so `globalThis` read as undefined and any `globalThis.X` access threw `TypeError: Cannot read properties of undefined`. Surfaced by tradera.com (isu issue 344), a Next.js/Turbopack SPA whose every chunk starts with `(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(...)`, which threw at line 2:1 in every chunk so the SPA never hydrated. Bind `globalThis` to the global object in all three global scopes — Window (iframe_bridge), DedicatedWorker (worker_global), and ServiceWorker (service_worker_global) — both as a property of the global object and as a bare global, mirroring how `self`/`window` are bound. Regression test `iframe_bridge::tests::global_this_is_the_window` asserts globalThis === window === self and that the Turbopack push idiom runs. After the fix the TURBOPACK-undefined errors are gone; the Turbopack runtime executes further and surfaces a deeper blocker tracked in isu issue 364. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>