]> git.kaiwu.me - quickjs.git/commitdiff
Fix termination in Worker test
authorAkos Kiss <akiss@inf.u-szeged.hu>
Sat, 27 Jul 2024 09:34:49 +0000 (11:34 +0200)
committerCharlie Gordon <github@chqrlie.org>
Sat, 27 Jul 2024 21:40:48 +0000 (23:40 +0200)
Function names are case sensitive, `onMessage` is not the same as
`onmessage`.

Related to #98

tests/test_worker_module.js

index bad1a6b2760174f0a02d2acedc99741c828a8fd9..ddf8e40074b1f599a2369d28a4bfc6bc9479740f 100644 (file)
@@ -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 */