Commit 50ce23e
committed
[MERGE chakra-core#3610 @pleath] [MSFT 13209141]: Defer default expressions in a formals list if the function containing them is going to be deferred.
Merge pull request chakra-core#3610 from pleath:13209141
We know that the expressions can't be evaluated until the function has been fully compiled, so compiling the expressions up front is wasted work. And generating code for a function nested inside a deferred function creates inconsistencies.3 files changed
Lines changed: 27 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5195 | 5195 | | |
5196 | 5196 | | |
5197 | 5197 | | |
5198 | | - | |
| 5198 | + | |
5199 | 5199 | | |
5200 | 5200 | | |
5201 | 5201 | | |
| |||
6227 | 6227 | | |
6228 | 6228 | | |
6229 | 6229 | | |
6230 | | - | |
| 6230 | + | |
6231 | 6231 | | |
6232 | 6232 | | |
6233 | 6233 | | |
| |||
6439 | 6439 | | |
6440 | 6440 | | |
6441 | 6441 | | |
6442 | | - | |
6443 | 6442 | | |
6444 | | - | |
| 6443 | + | |
| 6444 | + | |
| 6445 | + | |
| 6446 | + | |
| 6447 | + | |
| 6448 | + | |
| 6449 | + | |
| 6450 | + | |
| 6451 | + | |
| 6452 | + | |
| 6453 | + | |
| 6454 | + | |
| 6455 | + | |
| 6456 | + | |
6445 | 6457 | | |
6446 | 6458 | | |
6447 | 6459 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
467 | 477 | | |
468 | 478 | | |
469 | 479 | | |
| |||
0 commit comments