blob: 44e5fc4e0aa58d928c38ff1ebb53cbfd12f1363b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/**
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
onmessage = function (event) {
switch (event.data) {
case "start":
import("./dynamicImport_nested.mjs").then(m => postMessage(m.message));
break;
default:
throw new Error("Bad message: " + event.data);
break;
}
};
|