LibWeb: Prevent crash when loading module in worker

The import map is defined for all global objects, not just the window.
This commit is contained in:
Gingeh
2025-02-27 16:11:29 +11:00
committed by Andreas Kling
parent fc4a2eeba8
commit 93e2babc64
4 changed files with 11 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
import "./worker.mjs";
self.onmessage = ({ data }) => {
self.postMessage(`Worker responding to: ${data}`);
};