Commit 9099664
repl: fix generator function preprocessing
Function declarations in the REPL are preprocessed into variable
declarations before being evaluated. However, the preprocessing logic
did not account for the star in a generator function declaration, which
caused the preprocessor to output invalid syntax in some circumstances.
PR-URL: #9852
Fixes: #9850
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>1 parent c286312 commit 9099664Copy full SHA for 9099664
File tree
Expand file treeCollapse file tree
2 files changed
+17
-2
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+17
-2
lines changedOpen diff view settings
Collapse file
+4-2Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
576 | 576 | |
577 | 577 | |
578 | 578 | |
579 | | - |
580 | | - |
| 579 | + |
| 580 | + |
| 581 | + |
| 582 | + |
581 | 583 | |
582 | 584 | |
583 | 585 | |
|
Collapse file
+13Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
339 | 339 | |
340 | 340 | |
341 | 341 | |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
| 351 | + |
| 352 | + |
| 353 | + |
| 354 | + |
342 | 355 | |
343 | 356 | |
344 | 357 | |
|
0 commit comments