diff options
author | crowlKats <13135287+crowlKats@users.noreply.github.com> | 2020-04-13 18:34:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 18:34:32 +0200 |
commit | 25bd6868e5af9f30656dabeff9683b256e0a9370 (patch) | |
tree | 60925e31d536467e96a90dbf4bb10bf91fbe37f5 /cli/tests/subdir/event_worker.js | |
parent | 0ea6eb83a906bff543be4c3301f23444986b022b (diff) |
feat(worker): add MessageEvent, ErrorEvent and handling to Worker API (#4391)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tests/subdir/event_worker.js')
-rw-r--r-- | cli/tests/subdir/event_worker.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/subdir/event_worker.js b/cli/tests/subdir/event_worker.js new file mode 100644 index 000000000..849b6026c --- /dev/null +++ b/cli/tests/subdir/event_worker.js @@ -0,0 +1,7 @@ +onmessage = function (e) { + if (e.data === "boom") { + throw new Error("boom error!"); + } + + postMessage(e.data); +}; |