mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 18:51:13 +08:00
refactor: for-in 迭代器体脱离 epoch arena 改堆上 Box 独占释放
This commit is contained in:
@@ -703,7 +703,7 @@ fn async_state_mut(obj: &JsObject) -> Option<&mut AsyncState> {
|
||||
}
|
||||
|
||||
/// 异步挂起帧是否持有 for-in 迭代器:执行期收集门控按指针扫描
|
||||
/// (ForInIter body 分配于 epoch arena,换新 Bump 即时失效在表迭代器)。
|
||||
/// (迭代器体是堆上 Box,门控是保守门)。
|
||||
pub(crate) fn async_holds_suspended_for_in(obj: &JsObject) -> bool {
|
||||
let Some(state) = async_state_mut(obj) else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user