1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/worker.js
Luca Casonato bdfad23dd0
feat: support SharedArrayBuffer sharing between workers (#11040)
This commit adds support for sharing SABs between workers.
2021-07-06 19:42:52 +02:00

5 lines
113 B
JavaScript

self.postMessage("ready");
globalThis.addEventListener("message", (e) => {
new Uint8Array(e.data)[0] = 1;
});