summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/useUnknownInCatchVariables.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/useUnknownInCatchVariables.ts')
-rw-r--r--cli/tests/testdata/useUnknownInCatchVariables.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/testdata/useUnknownInCatchVariables.ts b/cli/tests/testdata/useUnknownInCatchVariables.ts
new file mode 100644
index 000000000..abab554a4
--- /dev/null
+++ b/cli/tests/testdata/useUnknownInCatchVariables.ts
@@ -0,0 +1,5 @@
+try {
+ throw new Error();
+} catch (e) {
+ console.log(e.message);
+}