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