summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/eval_context_throw_with_conflicting_source.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/eval_context_throw_with_conflicting_source.ts')
-rw-r--r--cli/tests/testdata/eval_context_throw_with_conflicting_source.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/testdata/eval_context_throw_with_conflicting_source.ts b/cli/tests/testdata/eval_context_throw_with_conflicting_source.ts
new file mode 100644
index 000000000..c5bc21e48
--- /dev/null
+++ b/cli/tests/testdata/eval_context_throw_with_conflicting_source.ts
@@ -0,0 +1,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;