-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27e8882
commit 7b7f497
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
tests/baselines/reference/catchClauseWithBindingPattern1.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
tests/cases/compiler/catchClauseWithBindingPattern1.ts(3,8): error TS1195: Catch clause variable name must be an identifier. | ||
|
||
|
||
==== tests/cases/compiler/catchClauseWithBindingPattern1.ts (1 errors) ==== | ||
try { | ||
} | ||
catch ({a}) { | ||
~ | ||
!!! error TS1195: Catch clause variable name must be an identifier. | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/baselines/reference/catchClauseWithBindingPattern1.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//// [catchClauseWithBindingPattern1.ts] | ||
try { | ||
} | ||
catch ({a}) { | ||
} | ||
|
||
//// [catchClauseWithBindingPattern1.js] | ||
try { | ||
} | ||
catch (a = (void 0).a) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
try { | ||
} | ||
catch ({a}) { | ||
} |