summaryrefslogtreecommitdiff
path: root/tests/specs/run/_013_dynamic_import/013_dynamic_import.ts
blob: 5e73b6eb79fe76c1f4824032927c6433a4698276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(async () => {
  const { returnsHi, returnsFoo2, printHello3 } = await import(
    "./mod1.ts"
  );

  printHello3();

  if (returnsHi() !== "Hi") {
    throw Error("Unexpected");
  }

  if (returnsFoo2() !== "Foo") {
    throw Error("Unexpected");
  }
})();