mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
14 lines
404 B
TypeScript
14 lines
404 B
TypeScript
|
try {
|
||
|
await import("./empty_1.ts");
|
||
|
console.log("✅ Succeeded importing statically analyzable specifier");
|
||
|
} catch {
|
||
|
console.log("❌ Failed importing statically analyzable specifier");
|
||
|
}
|
||
|
|
||
|
try {
|
||
|
await import("" + "./empty_2.ts");
|
||
|
console.log("❌ Succeeded importing non-statically analyzable specifier");
|
||
|
} catch {
|
||
|
console.log("✅ Failed importing non-statically analyzable specifier");
|
||
|
}
|