summaryrefslogtreecommitdiff
path: root/tests/040_worker_blob.ts
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2019-08-06 06:22:11 -0700
committerRyan Dahl <ry@tinyclouds.org>2019-08-06 09:22:11 -0400
commitccee2f01ba2f6304720ab17e99dee17bf6687bd8 (patch)
treedf04bd385c05e13b6a835fc4955cd5eac2c7c582 /tests/040_worker_blob.ts
parent11c850af423f07769f054c494a76cbd9efb8806c (diff)
Implement Blob url support for worker (#2729)
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);
+};