diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-08-10 10:38:57 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-10 11:50:45 -0700 |
commit | 9be36ffbf8594fe2e155c8113aec56b2a7c19c0b (patch) | |
tree | 23f6f9a6a2a95ff79d12cefd8a7b127fe465e100 /tests/error_001.ts | |
parent | 2c8bdd2f5fda04254551d04923ef91c79524282f (diff) |
Add error tests
Diffstat (limited to 'tests/error_001.ts')
-rw-r--r-- | tests/error_001.ts | 9 |
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() |