1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:28:13 +00:00
serenity/Tests/LibWeb/Text/input/Worker/worker.js
Andrew Kaster 1602663b9e LibWeb+WebWorker: Implement a first cut of post_message for Workers
This implementation completely ignores MessagePorts, and manually plumbs
data through LocalSockets.
2023-11-24 08:41:38 +01:00

4 lines
86 B
JavaScript

onmessage = evt => {
postMessage(evt.data, null);
};
postMessage("loaded", null);