summaryrefslogtreecommitdiff
path: root/runtime/js/11_workers.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/11_workers.js')
-rw-r--r--runtime/js/11_workers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/js/11_workers.js b/runtime/js/11_workers.js
index fa544a510..85c01e1a9 100644
--- a/runtime/js/11_workers.js
+++ b/runtime/js/11_workers.js
@@ -139,7 +139,7 @@
#pollControl = async () => {
while (this.#status === "RUNNING") {
- const [type, data] = await hostRecvCtrl(this.#id);
+ const { 0: type, 1: data } = await hostRecvCtrl(this.#id);
// If terminate was called then we ignore all messages
if (this.#status === "TERMINATED") {