feat: for-of 异常中断按规范关闭迭代器,next() 抛错可捕获并保留原始值
This commit is contained in:
@@ -38,6 +38,7 @@ impl Vm {
|
||||
save_stack: Vec::new(),
|
||||
try_stack: Vec::new(),
|
||||
exception_value: None,
|
||||
last_uncaught_value: None,
|
||||
pending_exception: None,
|
||||
pending_error_kind: None,
|
||||
root_reg_limit: 0,
|
||||
@@ -95,6 +96,7 @@ impl Vm {
|
||||
save_stack: Vec::new(),
|
||||
try_stack: Vec::new(),
|
||||
exception_value: None,
|
||||
last_uncaught_value: None,
|
||||
pending_exception: None,
|
||||
pending_error_kind: None,
|
||||
root_reg_limit: 0,
|
||||
|
||||
Reference in New Issue
Block a user