summaryrefslogtreecommitdiff
path: root/tests/error_001.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/error_001.ts')
-rw-r--r--tests/error_001.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/error_001.ts b/tests/error_001.ts
new file mode 100644
index 000000000..624bc55da
--- /dev/null
+++ b/tests/error_001.ts
@@ -0,0 +1,9 @@
+function foo() {
+ throw Error("bad");
+}
+
+function bar() {
+ foo()
+}
+
+bar()