From: Fabrice Bellard Date: Mon, 8 Jan 2024 17:41:03 +0000 (+0100) Subject: fix worker termination in example (github issue #98) X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=aac24640b13825b550d3e6dbce0a3f9ac8baf577;p=quickjs.git fix worker termination in example (github issue #98) --- diff --git a/tests/test_worker_module.js b/tests/test_worker_module.js index c783e1f..f19600a 100644 --- a/tests/test_worker_module.js +++ b/tests/test_worker_module.js @@ -10,6 +10,7 @@ function handle_msg(e) { switch(ev.type) { case "abort": parent.postMessage({ type: "done" }); + parent.onMessage = null; /* terminate the worker */ break; case "sab": /* modify the SharedArrayBuffer */