fix: for-in 整数索引升序+字符串插入序枚举,null/undefined 空遍历

This commit is contained in:
爱特每羊队
2026-06-27 17:15:32 +08:00
parent 6e74881cde
commit ec380802a8
5 changed files with 176 additions and 8 deletions
+1 -1
View File
@@ -498,7 +498,7 @@ fn rewrite_vm_roots(vm: &mut Vm, forwarding: &HashMap<*mut JsObject, *mut JsObje
}
// SAFETY: for_in_iters stores live iterator pointers owned by the current VM epoch.
unsafe {
for value in (*(*iter)).keys.iter_mut() {
for (value, _si) in (*(*iter)).keys.iter_mut() {
*value = rewrite_forwarded_value(*value, forwarding);
}
}