summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/run_tests.rs5
-rw-r--r--cli/tests/testdata/eval_context_throw_dom_exception.js2
-rw-r--r--cli/tests/testdata/eval_context_throw_dom_exception.js.out1
3 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index 0aca09902..39918d170 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -1922,3 +1922,8 @@ itest!(eval_context_throw_with_conflicting_source {
output: "eval_context_throw_with_conflicting_source.ts.out",
exit_code: 1,
});
+
+itest!(eval_context_throw_dom_exception {
+ args: "run eval_context_throw_dom_exception.js",
+ output: "eval_context_throw_dom_exception.js.out",
+});
diff --git a/cli/tests/testdata/eval_context_throw_dom_exception.js b/cli/tests/testdata/eval_context_throw_dom_exception.js
new file mode 100644
index 000000000..b8e99d498
--- /dev/null
+++ b/cli/tests/testdata/eval_context_throw_dom_exception.js
@@ -0,0 +1,2 @@
+const [, errorInfo] = Deno.core.evalContext('throw new DOMException("foo")');
+console.log(errorInfo);
diff --git a/cli/tests/testdata/eval_context_throw_dom_exception.js.out b/cli/tests/testdata/eval_context_throw_dom_exception.js.out
new file mode 100644
index 000000000..39e164083
--- /dev/null
+++ b/cli/tests/testdata/eval_context_throw_dom_exception.js.out
@@ -0,0 +1 @@
+{ thrown: DOMException: foo, isNativeError: true, isCompileError: false }