mirror of
https://github.com/denoland/deno
synced 2024-08-24 18:47:06 +00:00
8 lines
121 B
JavaScript
8 lines
121 B
JavaScript
![]() |
onmessage = function (e) {
|
||
|
if (e.data === "boom") {
|
||
|
throw new Error("boom error!");
|
||
|
}
|
||
|
|
||
|
postMessage(e.data);
|
||
|
};
|