summaryrefslogtreecommitdiff
path: root/tests/testdata/run/error_002.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/error_002.ts')
-rw-r--r--tests/testdata/run/error_002.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/testdata/run/error_002.ts b/tests/testdata/run/error_002.ts
new file mode 100644
index 000000000..5f8179bbe
--- /dev/null
+++ b/tests/testdata/run/error_002.ts
@@ -0,0 +1,7 @@
+import { throwsError } from "../subdir/mod1.ts";
+
+function foo() {
+ throwsError();
+}
+
+foo();