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