/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/testdata/compile/workers/not_in_module_map.ts
11 строк
289 B
Matt Mastracci
chore: move cli/tests/ -> tests/ (#22369)
10 фев 2024, 23:22
Не верифицирован
10 фев 2024, 23:22
f5e46c9
Код
Авторство
О чём код?
// This time ./worker.ts is not in the module map, so the worker // initialization will fail unless worker.js is passed as a side module. const worker = new Worker( new URL("./worker.ts", import.meta.url), { type: "module" }, ); setTimeout(() => { worker.postMessage(42); }, 500);