Skip to content

Commit 5fd301f

Browse files
committed
@ts-ignore global, as it does not exist
1 parent be15bb1 commit 5fd301f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: addon/addon-test-support/@ember/test-helpers/global.ts

+2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ export default (() => {
55
return self;
66
} else if (typeof window !== 'undefined') {
77
return window;
8+
// @ts-ignore -- global does not exist
89
} else if (typeof global !== 'undefined') {
10+
// @ts-ignore -- global does not exist
911
return global;
1012
} else {
1113
return Function('return this')();

Diff for: addon/addon-test-support/@ember/test-helpers/setup-context.ts

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ const globalObject =
112112
check(typeof globalThis == 'object' && globalThis) ||
113113
check(typeof window === 'object' && window) ||
114114
check(typeof self === 'object' && self) ||
115+
// @ts-ignore -- global does not exist
115116
check(typeof global === 'object' && global);
116117

117118
/**

0 commit comments

Comments
 (0)