Commit e8c91e7
repl: refine handling of illegal tokens
Illegal tokens are only recoverable in string literals, RegExp literals,
and block comments. If not in one of these constructs, immediately
return an error rather than giving the user false hope by giving them a
chance to try to recover.
PR-URL: #7104
Fixes: #3611
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent 1600966 commit e8c91e7Copy full SHA for e8c91e7
File tree
Expand file treeCollapse file tree
2 files changed
+19
-3
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+19
-3
lines changedOpen diff view settings
Collapse file
+15-3Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1154 | 1154 | |
1155 | 1155 | |
1156 | 1156 | |
| 1157 | + |
| 1158 | + |
| 1159 | + |
| 1160 | + |
| 1161 | + |
1157 | 1162 | |
1158 | 1163 | |
1159 | 1164 | |
| ||
1166 | 1171 | |
1167 | 1172 | |
1168 | 1173 | |
1169 | | - |
1170 | | - |
1171 | | - |
| 1174 | + |
| 1175 | + |
| 1176 | + |
| 1177 | + |
| 1178 | + |
| 1179 | + |
| 1180 | + |
| 1181 | + |
| 1182 | + |
| 1183 | + |
1172 | 1184 | |
1173 | 1185 | |
1174 | 1186 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
324 | 324 | |
325 | 325 | |
326 | 326 | |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
327 | 331 | |
328 | 332 | |
329 | 333 | |
|
0 commit comments