Commit 72632fb
committed
fix(resolver): clarify scope guard and :this key convention in accessor this-dispatch (#1351)
- Add comment to extractConstDeclarators explaining that the function-scope guard
is upheld by the caller (extractConstantsWalk) — future refactors must add a
hasFunctionScopeAncestor check before calling extractObjectLiteralFunctions from
any other context.
- Add comment at the setTypeMapEntry call noting that ':' is a reserved separator for
Phase 8.3f keys and cannot collide with real JS identifier names.1 parent 2b587df commit 72632fb
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
501 | 505 | | |
502 | 506 | | |
503 | 507 | | |
| |||
1776 | 1780 | | |
1777 | 1781 | | |
1778 | 1782 | | |
| 1783 | + | |
| 1784 | + | |
1779 | 1785 | | |
1780 | 1786 | | |
1781 | 1787 | | |
| |||
0 commit comments