summaryrefslogtreecommitdiff
path: root/tests/specs/worker/worker_permissions_blob_local/permissions_blob_local.ts
blob: 52f630bd8a196c3b93f3cc6cd9c6805dd6f79af9 (plain)
1
2
3
4
5
6
// This file doesn't really exist, but it doesn't matter, a "PermissionsDenied" error should be thrown.
const code = `import "file:///${
  Deno.build.os == "windows" ? "C:/" : ""
}local_file.ts";`;
const blob = new Blob([code]);
new Worker(URL.createObjectURL(blob), { type: "module" });