mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
Add assertion
This commit is contained in:
@@ -10,7 +10,7 @@ export function isWeb(): boolean {
|
||||
}
|
||||
|
||||
export function isWebAndHasSharedArrayBuffers(): boolean {
|
||||
return isWeb() && globalThis['crossOriginIsolated'];
|
||||
return isWeb() && !!(globalThis as Record<string, unknown>)['crossOriginIsolated'];
|
||||
}
|
||||
|
||||
export function supportsReadableByteStreams(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user