MCPcopy Create free account
hub / github.com/W4G1/multithreading / SharedArrayBuffer

Class SharedArrayBuffer

src/browser/polyfill.ts:4–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3if (typeof globalThis.SharedArrayBuffer === "undefined") {
4 globalThis.SharedArrayBuffer = class SharedArrayBuffer {
5 constructor() {
6 throw new Error(
7 "SharedArrayBuffer is unavailable because of insufficient security headers. Please ensure that your page is Cross-Origin Isolated (COOP) and that your server sends the following headers: Cross-Origin-Opener-Policy: same-origin; Cross-Origin-Embedder-Policy: require-corp",
8 );
9 }
10 };
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected