mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-23 22:28:12 +08:00
Fix termination in Worker test
Function names are case sensitive, `onMessage` is not the same as `onmessage`. Related to #98
This commit is contained in:
parent
012451d5f3
commit
6e2e68fd08
@ -10,7 +10,7 @@ function handle_msg(e) {
|
|||||||
switch(ev.type) {
|
switch(ev.type) {
|
||||||
case "abort":
|
case "abort":
|
||||||
parent.postMessage({ type: "done" });
|
parent.postMessage({ type: "done" });
|
||||||
parent.onMessage = null; /* terminate the worker */
|
parent.onmessage = null; /* terminate the worker */
|
||||||
break;
|
break;
|
||||||
case "sab":
|
case "sab":
|
||||||
/* modify the SharedArrayBuffer */
|
/* modify the SharedArrayBuffer */
|
||||||
|
Loading…
Reference in New Issue
Block a user