mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 10:27:05 +02: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()`. (cherry picked from commit fd8d350b4756817598ee49a11b9efc3b953dbb00)