summaryrefslogtreecommitdiff
path: root/cli/js/globals.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-01-18 00:43:53 +0100
committerRy Dahl <ry@tinyclouds.org>2020-01-17 18:43:53 -0500
commit5fa056e53be6d17ab746629ea0eaa89fe817141b (patch)
treec32c4ab39577a2dc14da3843e3223395c5a7ea54 /cli/js/globals.ts
parentd7203092039d3c46ca8480ff8eecf612deb2b2f6 (diff)
workers: minimal error handling and async module loading (#3665)
Diffstat (limited to 'cli/js/globals.ts')
-rw-r--r--cli/js/globals.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/js/globals.ts b/cli/js/globals.ts
index c7f3b23f2..f090afcd4 100644
--- a/cli/js/globals.ts
+++ b/cli/js/globals.ts
@@ -150,6 +150,7 @@ window.performance = new performanceUtil.Performance();
// This variable functioning correctly depends on `declareAsLet`
// in //tools/ts_library_builder/main.ts
window.onmessage = workers.onmessage;
+window.onerror = workers.onerror;
window.workerMain = workers.workerMain;
window.workerClose = workers.workerClose;