diff options
Diffstat (limited to 'cli/tests/workers/permissions_blob_remote.ts')
-rw-r--r-- | cli/tests/workers/permissions_blob_remote.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/workers/permissions_blob_remote.ts b/cli/tests/workers/permissions_blob_remote.ts new file mode 100644 index 000000000..4808bc57b --- /dev/null +++ b/cli/tests/workers/permissions_blob_remote.ts @@ -0,0 +1,4 @@ +// This file doesn't really exist, but it doesn't matter, a "PermissionsDenied" error should be thrown. +const code = `import "https://example.com/some/file.ts";`; +const blob = new Blob([code]); +new Worker(URL.createObjectURL(blob), { type: "module" }); |