mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-23 11:49:38 +00: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