fix: try/finally 支持 break/continue/return 穿越 finally(completion 机制)

This commit is contained in:
2026-08-08 12:38:25 +08:00
parent 6c29515624
commit cd214069cd
18 changed files with 529 additions and 39 deletions
+3
View File
@@ -43,6 +43,7 @@ impl Vm {
last_uncaught_value: None,
pending_exception: None,
pending_error_kind: None,
pending_completion: None,
root_reg_limit: 0,
active_reg_limit: 0,
native_call_depth: 0,
@@ -108,6 +109,7 @@ impl Vm {
last_uncaught_value: None,
pending_exception: None,
pending_error_kind: None,
pending_completion: None,
root_reg_limit: 0,
active_reg_limit: 0,
native_call_depth: 0,
@@ -223,6 +225,7 @@ impl Vm {
self.exception_value = None;
self.pending_exception = None;
self.pending_error_kind = None;
self.pending_completion = None;
self.native_call_depth = 0;
}