summaryrefslogtreecommitdiff
path: root/tests/040_worker_blob.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/040_worker_blob.ts')
-rw-r--r--tests/040_worker_blob.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/040_worker_blob.ts b/tests/040_worker_blob.ts
new file mode 100644
index 000000000..1ba4528cf
--- /dev/null
+++ b/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);
+};