From 25830a10671607df57ec826d3b9e9a7acb6cc30a Mon Sep 17 00:00:00 2001 From: Liam Murphy <43807659+Liamolucko@users.noreply.github.com> Date: Sun, 24 Jan 2021 12:17:06 +1100 Subject: fix(std/node): replace uses of `window` with `globalThis` (#9237) --- std/node/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/node/module.ts') diff --git a/std/node/module.ts b/std/node/module.ts index 6716b02d9..0d6ef9133 100644 --- a/std/node/module.ts +++ b/std/node/module.ts @@ -1021,7 +1021,7 @@ const CircularRequirePrototypeWarningProxy = new Proxy( // Object.prototype and ObjectProtoype refer to our 'primordials' versions // and are not identical to the versions on the global object. -const PublicObjectPrototype = window.Object.prototype; +const PublicObjectPrototype = globalThis.Object.prototype; // deno-lint-ignore no-explicit-any function getExportsForCircularRequire(module: Module): any { -- cgit v1.2.3