quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

commit 25869183219f7ab96bf50caed310e11010a1f489
parent 05a6c0ef32fc4d7ca7556ad51cec12ca8603faf0
Author: Fabrice Bellard <fabrice@bellard.org>
Date:   Mon,  8 Jan 2024 18:41:03 +0100

fix worker termination in example (github issue #98)

Diffstat:
Mquickjs/tests/test_worker_module.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/quickjs/tests/test_worker_module.js b/quickjs/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 */