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 */