mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
The spec expects `postMessage()` to act as if it is invoked immediately. Since `postMessage()` isn't actually invoked immediately, keep tasks with source `PostedMessage` in the task queue, so that these tasks are processed. Fixes a hang when `WorkerGlobalScope.close()` is called immediately after `postMessage()`.
4 lines
91 B
JavaScript
4 lines
91 B
JavaScript
self.onmessage = function () {
|
|
postMessage("PASS (didn't hang)");
|
|
self.close();
|
|
};
|