mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 10:41:11 +08:00
style: 冗余闭包改函数路径并补文档段空行
This commit is contained in:
@@ -266,7 +266,7 @@ impl Vm {
|
||||
if obj.is_weak_map_obj() {
|
||||
weak_map::rewrite_weak_map_native(
|
||||
obj,
|
||||
|key| crate::session_gc::resolve_weak_key_after_promotion(key),
|
||||
crate::session_gc::resolve_weak_key_after_promotion,
|
||||
|value| value,
|
||||
);
|
||||
}
|
||||
@@ -279,7 +279,7 @@ impl Vm {
|
||||
if obj.is_weak_map_obj() {
|
||||
weak_map::rewrite_weak_map_native(
|
||||
obj,
|
||||
|key| crate::session_gc::resolve_weak_key_after_promotion(key),
|
||||
crate::session_gc::resolve_weak_key_after_promotion,
|
||||
|value| value,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -622,7 +622,7 @@ impl SessionGc {
|
||||
if obj.is_gc_marked() && obj.is_weak_map_obj() {
|
||||
// SAFETY: 弱表 native 盒独占,整表重建在定夺期间无并发读者。
|
||||
unsafe {
|
||||
weak_map::rewrite_weak_map_native(&mut *ptr, |key| resolve_weak_key_sweep(key), |value| value);
|
||||
weak_map::rewrite_weak_map_native(&mut *ptr, resolve_weak_key_sweep, |value| value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user