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