From 6e2e68fd0896957f92eb6c242a2e048c1ef3cae0 Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Sat, 27 Jul 2024 11:34:49 +0200 Subject: [PATCH] Fix termination in Worker test Function names are case sensitive, `onMessage` is not the same as `onmessage`. Related to #98 --- tests/test_worker_module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_worker_module.js b/tests/test_worker_module.js index bad1a6b..ddf8e40 100644 --- a/tests/test_worker_module.js +++ b/tests/test_worker_module.js @@ -10,7 +10,7 @@ function handle_msg(e) { switch(ev.type) { case "abort": parent.postMessage({ type: "done" }); - parent.onMessage = null; /* terminate the worker */ + parent.onmessage = null; /* terminate the worker */ break; case "sab": /* modify the SharedArrayBuffer */