diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-11-11 18:20:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 18:20:13 +0100 |
commit | 06bd9e9e1640150f98857a74fea0cc1a3b3386a7 (patch) | |
tree | 057b73df17d53ff26ca2d4333afce619dfcb7419 /cli/tests/testdata/run/import_meta/main.ts | |
parent | 8dc242f7891492886827a350b7736c11df7aa419 (diff) |
fix(npm): disable npm specifiers in import.meta.resolve() (#16599)
Diffstat (limited to 'cli/tests/testdata/run/import_meta/main.ts')
-rw-r--r-- | cli/tests/testdata/run/import_meta/main.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/import_meta/main.ts b/cli/tests/testdata/run/import_meta/main.ts index 02f0a1c58..0d7cb96da 100644 --- a/cli/tests/testdata/run/import_meta/main.ts +++ b/cli/tests/testdata/run/import_meta/main.ts @@ -32,3 +32,8 @@ assertThrows(() => { assertThrows(() => { import.meta.resolve("://malformed/url?asdf"); }, TypeError); +try { + import.meta.resolve("npm:cowsay"); +} catch (e) { + console.log(e); +} |