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 3cedbb4 commit 6f58062Copy full SHA for 6f58062
src/constants.ts
@@ -9,7 +9,8 @@ export const ACORN_PARSE_OPTIONS: AcornOptions = { ecmaVersion: DEFAULT_ECMA_VER
9
export const REQUIRE_PROVIDER_ID = 'requireProvider'
10
export const CUT = 'cut' // cut operator for Source 4.3
11
export const TRY_AGAIN = 'retry' // command for Source 4.3
12
-export const GLOBAL = typeof window === 'undefined' ? global : window
+export const GLOBAL =
13
+ typeof window === 'undefined' ? (typeof global === 'undefined' ? {} : global) : window
14
export const NATIVE_STORAGE_ID = 'nativeStorage'
15
export const MAX_LIST_DISPLAY_LENGTH = 100
16
export const UNKNOWN_LOCATION: es.SourceLocation = {
0 commit comments