workers: minimal error handling and async module loading (#3665)

This commit is contained in:
Bartek Iwańczuk 2020-01-18 00:43:53 +01:00 committed by Ry Dahl
parent d720309203
commit 5fa056e53b
12 changed files with 300 additions and 60 deletions

View file

@ -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;