Commit 38fdbe0
authored
Fix #9716 Syntax error for function-try-block in global scope (#4305)
* Fix #9716 Syntax error for function-try-block in global scope
* static through instance
* Handle multiple catch blocks
* Add test
* Fix skip logic
* Handle init lists in simplifyFunctionTryCatch()1 parent c878285 commit 38fdbe0
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7856 | 7856 | | |
7857 | 7857 | | |
7858 | 7858 | | |
7859 | | - | |
| 7859 | + | |
7860 | 7860 | | |
7861 | 7861 | | |
7862 | 7862 | | |
7863 | 7863 | | |
| 7864 | + | |
| 7865 | + | |
| 7866 | + | |
| 7867 | + | |
| 7868 | + | |
| 7869 | + | |
| 7870 | + | |
7864 | 7871 | | |
7865 | | - | |
| 7872 | + | |
7866 | 7873 | | |
7867 | 7874 | | |
7868 | 7875 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6560 | 6560 | | |
6561 | 6561 | | |
6562 | 6562 | | |
| 6563 | + | |
| 6564 | + | |
| 6565 | + | |
| 6566 | + | |
| 6567 | + | |
| 6568 | + | |
| 6569 | + | |
| 6570 | + | |
| 6571 | + | |
| 6572 | + | |
| 6573 | + | |
| 6574 | + | |
6563 | 6575 | | |
6564 | 6576 | | |
6565 | 6577 | | |
| |||
0 commit comments