mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
7 lines
240 B
TypeScript
7 lines
240 B
TypeScript
|
// 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;
|