summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata')
-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
2 files changed, 3 insertions, 0 deletions
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 }