Turns out, detecting if a given function exists is really hard if there's no way to detect if a given feature exists in the global scope if that immediately fails.
Implement a "globalThis", "_G" which lets you access the scope as an object.
If the global scope is immutable, it'll return a copy of the map as an object, otherwise it'll return the map itself (so you can .remove stuff from the scope lol)
Turns out, detecting if a given function exists is really hard if there's no way to detect if a given feature exists in the global scope if that immediately fails.
Implement a "globalThis", "_G" which lets you access the scope as an object.
If the global scope is immutable, it'll return a copy of the map as an object, otherwise it'll return the map itself (so you can
.removestuff from the scope lol)