Deno: Use globalThis instead

Created on 24 Apr 2019  路  3Comments  路  Source: denoland/deno

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

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.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ry picture ry  路  3Comments

xueqingxiao picture xueqingxiao  路  3Comments

kitsonk picture kitsonk  路  3Comments

amiteshore picture amiteshore  路  3Comments

ry picture ry  路  3Comments