We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb01224 commit 21337a4Copy full SHA for 21337a4
1 file changed
extensions/typescript-language-features/src/utils/platform.ts
@@ -10,7 +10,7 @@ export function isWeb(): boolean {
10
}
11
12
export function isWebAndHasSharedArrayBuffers(): boolean {
13
- return isWeb() && globalThis['crossOriginIsolated'];
+ return isWeb() && !!(globalThis as Record<string, unknown>)['crossOriginIsolated'];
14
15
16
export function supportsReadableByteStreams(): boolean {
0 commit comments