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

This commit is contained in:
2026-06-27 17:15:32 +08:00
parent 78f6b0b5d9
commit 9c4a169c33
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);
}
}