blob: 1e2c8c21a4b40cae94bf0f7cc543b7e74c1ac3d7 (
plain)
1
2
3
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]);
await import(URL.createObjectURL(blob));
|