blob: 9ef4158ce9e9fe9e47030c32c04befc608532dc9 (
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]);
await import(URL.createObjectURL(blob));
|