summaryrefslogtreecommitdiff
path: root/tests/testdata/run/error_019_stack_function.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/error_019_stack_function.ts')
-rw-r--r--tests/testdata/run/error_019_stack_function.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/testdata/run/error_019_stack_function.ts b/tests/testdata/run/error_019_stack_function.ts
deleted file mode 100644
index a6a69d146..000000000
--- a/tests/testdata/run/error_019_stack_function.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-function foo(): never {
- throw new Error("function");
-}
-
-try {
- foo();
-} catch (error) {
- if (error instanceof Error) {
- console.log(error.stack);
- }
- throw error;
-}