They finally implemented globalThis [0]! It's not a huge or complex feature, but it's been something I've been wanting for a long time. Now there's a portable way to access the global object. I would've preferred `global`, but that broke web compatibility which made it a non-starter.
I just checked and was a bit sad to find that the latest version of node still doesn't support it. This is a bit surprising as globalThis is already supported in Chrome.
I just checked and was a bit sad to find that the latest version of node still doesn't support it. This is a bit surprising as globalThis is already supported in Chrome.
[0] https://github.com/tc39/proposal-global