Commit 593dc2b
committed
Report error for block scope function declaration in ES5
1 parent 6988a0a commit 593dc2bCopy full SHA for 593dc2b
3 files changed
+46-1Lines changed: 46 additions & 1 deletion
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/compiler
- tests/baselines/reference
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+30Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1125 | 1125 | |
1126 | 1126 | |
1127 | 1127 | |
| 1128 | + |
| 1129 | + |
| 1130 | + |
| 1131 | + |
| 1132 | + |
| 1133 | + |
| 1134 | + |
| 1135 | + |
| 1136 | + |
| 1137 | + |
| 1138 | + |
| 1139 | + |
| 1140 | + |
| 1141 | + |
| 1142 | + |
| 1143 | + |
| 1144 | + |
| 1145 | + |
| 1146 | + |
| 1147 | + |
| 1148 | + |
| 1149 | + |
| 1150 | + |
| 1151 | + |
| 1152 | + |
| 1153 | + |
| 1154 | + |
| 1155 | + |
| 1156 | + |
1128 | 1157 | |
1129 | 1158 | |
1130 | 1159 | |
| ||
1641 | 1670 | |
1642 | 1671 | |
1643 | 1672 | |
| 1673 | + |
1644 | 1674 | |
1645 | 1675 | |
1646 | 1676 | |
|
Collapse file
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
811 | 811 | |
812 | 812 | |
813 | 813 | |
| 814 | + |
| 815 | + |
| 816 | + |
| 817 | + |
| 818 | + |
| 819 | + |
| 820 | + |
| 821 | + |
| 822 | + |
| 823 | + |
| 824 | + |
| 825 | + |
814 | 826 | |
815 | 827 | |
816 | 828 | |
|
Collapse file
tests/baselines/reference/blockScopedFunctionDeclarationStrictES5.errors.txt
Copy file name to clipboardExpand all lines: tests/baselines/reference/blockScopedFunctionDeclarationStrictES5.errors.txt+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
1 | 2 | |
2 | 3 | |
3 | 4 | |
4 | | - |
| 5 | + |
5 | 6 | |
6 | 7 | |
7 | 8 | |
| 9 | + |
| 10 | + |
8 | 11 | |
9 | 12 | |
10 | 13 | |
|
0 commit comments