feat: async/await 语法支持(AWAIT 帧快照挂起/恢复 + 微任务驱动 + AsyncFunction intrinsics)
This commit is contained in:
@@ -75,6 +75,11 @@ impl Vm {
|
||||
crate::promise::clone_promise_native_with_rewrite(src_ref, dst_ref, |value| {
|
||||
self.promote_value_if_epoch_object(value, forwarding)
|
||||
});
|
||||
} else if src_ref.is_async_obj() {
|
||||
// 异步状态盒深拷贝到新对象:源盒随 epoch 释放,互不共享。
|
||||
crate::async_func::clone_async_native_with_rewrite(src_ref, dst_ref, |value| {
|
||||
self.promote_value_if_epoch_object(value, forwarding)
|
||||
});
|
||||
}
|
||||
dst
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user