summaryrefslogtreecommitdiff
path: root/cli/tests/040_worker_blob.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/040_worker_blob.ts')
-rw-r--r--cli/tests/040_worker_blob.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/040_worker_blob.ts b/cli/tests/040_worker_blob.ts
new file mode 100644
index 000000000..1ba4528cf
--- /dev/null
+++ b/cli/tests/040_worker_blob.ts
@@ -0,0 +1,6 @@
+const b = new Blob(["console.log('code from Blob'); postMessage('DONE')"]);
+const blobURL = URL.createObjectURL(b);
+const worker = new Worker(blobURL);
+worker.onmessage = (): void => {
+ Deno.exit(0);
+};