Repository navigation
Commit 7b54734
committed
fix(compiler): bind snapshot pattern for defaulted destructured parameters
Apply bindSnapshotPattern in the AssignmentPattern branch of
visitParameters, matching the else branch. Without this, a destructured
updater parameter with a default (e.g. ({ list } = fallback) =>) would
not mark nested properties as snapshots, allowing in-place mutations to
go unreported by OCTANE_STRONG_SNAPSHOT_MUTATION.1 parent 8b735bf commit 7b54734
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2323 | 2323 | | |
2324 | 2324 | | |
2325 | 2325 | | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
2326 | 2334 | | |
2327 | 2335 | | |
2328 | 2336 | | |
| |||
0 commit comments