Is this a good time to refactor this to use globalThis
which has been supported since v8 v7.1?
https://github.com/denoland/deno/blob/d68b44b6b2fad6c321aa01a039030bb98c5be88d/js/window.ts#L7
There were some issues in earlier versions of v8 when snapshotting where globalThis
wasn't available... I never was able to isolate it, but that is what prevented the refactor before (I tried it). That may have been addressed now. Worth trying again.
@kitsonk I'll take it and see what happens.
Closing this for now as the same issues happen.
Most helpful comment
There were some issues in earlier versions of v8 when snapshotting where
globalThis
wasn't available... I never was able to isolate it, but that is what prevented the refactor before (I tried it). That may have been addressed now. Worth trying again.