summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/eval_context_throw_with_conflicting_source.ts
blob: c5bc21e4825d0be4bc8f54eeb70b427ef9831bed (plain)
1
2
3
4
5
6
// deno-lint-ignore no-explicit-any
const [, errorInfo] = (Deno as any).core.evalContext(
  '/* aaaaaaaaaaaaaaaaa */ throw new Error("foo")',
  new URL("eval_context_conflicting_source.ts", import.meta.url).href,
);
throw errorInfo.thrown;