From 25bd6868e5af9f30656dabeff9683b256e0a9370 Mon Sep 17 00:00:00 2001 From: crowlKats <13135287+crowlKats@users.noreply.github.com> Date: Mon, 13 Apr 2020 18:34:32 +0200 Subject: feat(worker): add MessageEvent, ErrorEvent and handling to Worker API (#4391) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- cli/tests/subdir/event_worker.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cli/tests/subdir/event_worker.js (limited to 'cli/tests/subdir') 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); +}; -- cgit v1.2.3