diff options
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"); |