Commit b2d4596
Fix class static property ordering: preserve insertion order for length/name
Add clear_attr_markers() helper that removes attribute hidden-keys without
removing the main key from IndexMap. Use it in InitProperty's VmFunction
handler so that IndexMap::insert updates the value in-place, preserving
the original insertion order for built-in keys like 'length' and 'name'
when overridden by static class methods.
Fixes cluster 23: fn-length-static-precedence-order and
fn-name-static-precedence-order tests now pass.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent fa42d86 commit b2d4596
3 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
722 | 729 | | |
723 | 730 | | |
724 | 731 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4805 | 4805 | | |
4806 | 4806 | | |
4807 | 4807 | | |
4808 | | - | |
| 4808 | + | |
| 4809 | + | |
| 4810 | + | |
| 4811 | + | |
4809 | 4812 | | |
4810 | 4813 | | |
4811 | 4814 | | |
| |||
0 commit comments