diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-18 00:43:53 +0100 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-17 18:43:53 -0500 |
commit | 5fa056e53be6d17ab746629ea0eaa89fe817141b (patch) | |
tree | c32c4ab39577a2dc14da3843e3223395c5a7ea54 /cli/tests/026_workers.ts | |
parent | d7203092039d3c46ca8480ff8eecf612deb2b2f6 (diff) |
workers: minimal error handling and async module loading (#3665)
Diffstat (limited to 'cli/tests/026_workers.ts')
-rw-r--r-- | cli/tests/026_workers.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/026_workers.ts b/cli/tests/026_workers.ts index f45fc4b77..7ac1a0f32 100644 --- a/cli/tests/026_workers.ts +++ b/cli/tests/026_workers.ts @@ -11,4 +11,10 @@ jsWorker.onmessage = (e): void => { tsWorker.postMessage("Hello World"); }; +jsWorker.onerror = (e: Event): void => { + e.preventDefault(); + console.log("called onerror in script"); + jsWorker.postMessage("Hello World"); +}; + jsWorker.postMessage("Hello World"); |