Skip to content

Commit

Permalink
Fix termination in Worker test
Browse files Browse the repository at this point in the history
Function names are case sensitive, `onMessage` is not the same as
`onmessage`.

Related to #98
  • Loading branch information
akosthekiss authored and chqrlie committed Jul 27, 2024
1 parent 012451d commit 6e2e68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_worker_module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 6e2e68f

Please sign in to comment.