Commit 8407fcf
committed
fix: extend native post-pass pre-filter to include arrow-function property assignments (#1331)
The pre-filter regex only matched `fn.method = function(){}` patterns,
silently skipping files where all func-prop assignments use arrow functions
(`fn.method = () => {}`). Such files were never WASM-reparsed and their
method definitions were not inserted by the post-pass.
Extend the regex to match both traditional function expressions and arrow
function expressions (both `() => {}` and `param => {}` forms).1 parent c036834 commit 8407fcf
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
600 | | - | |
601 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
606 | 611 | | |
607 | 612 | | |
608 | 613 | | |
| |||
0 commit comments