fix: rerun 恢复顶层 this——清空寄存器文件后依赖 this 的顶层写(顶层 var 全局同步写)在重执行中不再静默丢弃

This commit is contained in:
2026-09-12 21:36:10 +00:00
parent d9c469e9d0
commit 60274baca8
3 changed files with 17 additions and 2 deletions
+2
View File
@@ -99,6 +99,7 @@ impl Vm {
inline_strict: false,
inline_frames_base: 0,
top_level_strict: false,
top_level_this: JsValue::undefined(),
inline_reg_pool: None,
generator_suspended: None,
delegated_iterator: None,
@@ -227,6 +228,7 @@ impl Vm {
inline_strict: false,
inline_frames_base: 0,
top_level_strict: false,
top_level_this: JsValue::undefined(),
inline_reg_pool: None,
generator_suspended: None,
delegated_iterator: None,