diff options
Diffstat (limited to 'cli/tests/error_stack.ts')
-rw-r--r-- | cli/tests/error_stack.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/error_stack.ts b/cli/tests/error_stack.ts new file mode 100644 index 000000000..f2125d662 --- /dev/null +++ b/cli/tests/error_stack.ts @@ -0,0 +1,10 @@ +function foo(): never { + throw new Error("foo"); +} + +try { + foo(); +} catch (e) { + console.log(e); + throw e; +} |