We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be15bb1 commit 5fd301fCopy full SHA for 5fd301f
addon/addon-test-support/@ember/test-helpers/global.ts
@@ -5,7 +5,9 @@ export default (() => {
5
return self;
6
} else if (typeof window !== 'undefined') {
7
return window;
8
+ // @ts-ignore -- global does not exist
9
} else if (typeof global !== 'undefined') {
10
11
return global;
12
} else {
13
return Function('return this')();
addon/addon-test-support/@ember/test-helpers/setup-context.ts
@@ -112,6 +112,7 @@ const globalObject =
112
check(typeof globalThis == 'object' && globalThis) ||
113
check(typeof window === 'object' && window) ||
114
check(typeof self === 'object' && self) ||
115
116
check(typeof global === 'object' && global);
117
118
/**
0 commit comments