mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
feat: for-await-of 逃出关闭异步 await return() 结算后恢复帧
This commit is contained in:
@@ -92,6 +92,7 @@ impl Vm {
|
||||
pending_exception: None,
|
||||
pending_error_kind: None,
|
||||
pending_completion: None,
|
||||
pending_async_escape: None,
|
||||
root_reg_limit: 0,
|
||||
active_reg_limit: 0,
|
||||
native_call_depth: 0,
|
||||
@@ -229,6 +230,7 @@ impl Vm {
|
||||
pending_exception: None,
|
||||
pending_error_kind: None,
|
||||
pending_completion: None,
|
||||
pending_async_escape: None,
|
||||
root_reg_limit: 0,
|
||||
active_reg_limit: 0,
|
||||
native_call_depth: 0,
|
||||
@@ -536,6 +538,8 @@ impl Vm {
|
||||
self.pending_exception = None;
|
||||
self.pending_error_kind = None;
|
||||
self.pending_completion = None;
|
||||
// 在途异步逃出是执行期状态:跨 run/reset 不保留,残留将悬垂。
|
||||
self.pending_async_escape = None;
|
||||
self.generator_suspended = None;
|
||||
self.delegated_iterator = None;
|
||||
self.generator_dispatch = false;
|
||||
|
||||
Reference in New Issue
Block a user