globalThis does not resolve to the same object as global
As of GJS 1.64 (aka GNOME 3.36) globalThis
is recommended over global
/window
. However, in at least 3.35.92:
-
global
returns aShell.Global
-
globalThis
andwindow
return aGjsGlobal
.
I'm not sure if this is intended behaviour or not, but if so we should document it somewhere.