diff --git a/main.js b/main.js deleted file mode 100644 index feb6c5a1ec..0000000000 --- a/main.js +++ /dev/null @@ -1,14 +0,0 @@ -const worker = new Worker(new URL("./worker.js", import.meta.url), { - type: "module", -}); - -const sab = new SharedArrayBuffer(1); -console.log(new Uint8Array(sab)); - -setInterval(() => { - console.log(new Uint8Array(sab)); -}, 100); - -worker.onmessage = () => { - worker.postMessage(sab); -}; diff --git a/worker.js b/worker.js deleted file mode 100644 index c1b8602049..0000000000 --- a/worker.js +++ /dev/null @@ -1,5 +0,0 @@ -self.postMessage("ready"); - -globalThis.addEventListener("message", (e) => { - new Uint8Array(e.data)[0] = 1; -});