summaryrefslogtreecommitdiff
path: root/tests/testdata/dynamic_import/permissions_data_remote.ts
blob: b0a9540c32ba99aea075fd7359721c9838ca160c (plain)
1
2
3
// 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";`;
await import(`data:application/javascript;base64,${btoa(code)}`);