mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
fix: 嵌套函数体/方法体 use strict 指令纳入编译缓存键防字节码错配
This commit is contained in:
@@ -208,9 +208,7 @@ fn hash_function_declaration(fd: &Function<'_>, h: &mut rustc_hash::FxHasher, in
|
||||
}
|
||||
}
|
||||
if let Some(body) = &fd.body {
|
||||
for s in &body.statements {
|
||||
hash_statement(s, h, include_binding_names);
|
||||
}
|
||||
hash_function_body(body, h, include_binding_names);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user