summaryrefslogtreecommitdiff
path: root/tests/error_001.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2018-08-10 10:38:57 -0700
committerRyan Dahl <ry@tinyclouds.org>2018-08-10 11:50:45 -0700
commit9be36ffbf8594fe2e155c8113aec56b2a7c19c0b (patch)
tree23f6f9a6a2a95ff79d12cefd8a7b127fe465e100 /tests/error_001.ts
parent2c8bdd2f5fda04254551d04923ef91c79524282f (diff)
Add error tests
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()