From: Akos Kiss Date: Sat, 27 Jul 2024 09:34:49 +0000 (+0200) Subject: Fix termination in Worker test X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=6e2e68fd0896957f92eb6c242a2e048c1ef3cae0;p=quickjs.git Fix termination in Worker test Function names are case sensitive, `onMessage` is not the same as `onmessage`. Related to #98 --- 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 */