summaryrefslogtreecommitdiff
path: root/tests/testdata/run/dynamic_import_already_rejected/main.ts
blob: 249de8d8b4357a7fc6cc34bc9da48d784334f6b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
try {
  await import("./error_001.ts");
} catch (error) {
  if (error instanceof Error) {
    console.log(`Caught: ${error.stack}`);
  }
}

try {
  await import("./error_001.ts");
} catch (error) {
  if (error instanceof Error) {
    console.log(`Caught: ${error.stack}`);
  }
}