mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -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");
|
||
|
}
|