Skip to content

Commit 21337a4

Browse files
committed
Add assertion
1 parent cb01224 commit 21337a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • extensions/typescript-language-features/src/utils

extensions/typescript-language-features/src/utils/platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function isWeb(): boolean {
1010
}
1111

1212
export function isWebAndHasSharedArrayBuffers(): boolean {
13-
return isWeb() && globalThis['crossOriginIsolated'];
13+
return isWeb() && !!(globalThis as Record<string, unknown>)['crossOriginIsolated'];
1414
}
1515

1616
export function supportsReadableByteStreams(): boolean {

0 commit comments

Comments
 (0)