mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
refactor: GeneratorState 收敛到 SuspendedFrame(save/restore/GC 遍历/string 边)
This commit is contained in:
@@ -157,10 +157,8 @@ impl SessionGc {
|
||||
}
|
||||
}
|
||||
if obj.is_generator_obj() {
|
||||
for value in crate::generator::generator_native_edges(obj) {
|
||||
if value.is_string() {
|
||||
live.insert(value.as_string_ptr_mut());
|
||||
}
|
||||
for ptr in crate::generator::generator_native_string_edges(obj) {
|
||||
live.insert(ptr);
|
||||
}
|
||||
}
|
||||
if obj.is_promise_obj() {
|
||||
|
||||
Reference in New Issue
Block a user