Repository navigation
Commit 033ecf8
Ralph Küpper
review(#6014): reject GC_TYPE_LAZY_ARRAY in shape_is_url_search_params keys_array gate
CodeRabbit: a lazy array does not share the eager ArrayHeader layout, so
reading (*keys_arr).length / js_array_get_f64 on one would access the
wrong field. An object's own key list is always an eager GC_TYPE_ARRAY
(the pre-fix code read .length directly, proving it is never lazy here),
so require GC_TYPE_ARRAY specifically and reject lazy arrays — a real
URLSearchParams shape never has a lazy keys_array, so returning false is
correct.1 parent 58c7204 commit 033ecf8
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
849 | 854 | | |
850 | | - | |
851 | | - | |
852 | | - | |
| 855 | + | |
853 | 856 | | |
854 | 857 | | |
855 | 858 | | |
| |||
0 commit comments