mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-22 05:38:11 +08:00
fix worker termination in example (github issue #98)
This commit is contained in:
parent
c06c399f4f
commit
aac24640b1
@ -10,6 +10,7 @@ function handle_msg(e) {
|
||||
switch(ev.type) {
|
||||
case "abort":
|
||||
parent.postMessage({ type: "done" });
|
||||
parent.onMessage = null; /* terminate the worker */
|
||||
break;
|
||||
case "sab":
|
||||
/* modify the SharedArrayBuffer */
|
||||
|
Loading…
Reference in New Issue
Block a user