We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b40e65 commit 630f9f8Copy full SHA for 630f9f8
src/index.ts
@@ -9,6 +9,7 @@ const _globalThis = (function () {
9
if (typeof globalThis !== "undefined") {
10
return globalThis;
11
}
12
+ /* eslint-disable unicorn/prefer-global-this */
13
if (typeof self !== "undefined") {
14
return self;
15
@@ -18,6 +19,7 @@ const _globalThis = (function () {
18
19
if (typeof global !== "undefined") {
20
return global;
21
22
+ /* eslint-enable unicorn/prefer-global-this */
23
throw new Error("unable to locate global object");
24
})();
25
0 commit comments