mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 02:31:13 +08:00
fix: 缓存 debug 校验递归比子模块,赋值目标属性名按键粒度计入
This commit is contained in:
@@ -118,14 +118,16 @@ fn hash_assignment_target_maybe_default(
|
||||
}
|
||||
}
|
||||
|
||||
/// 哈希对象赋值目标属性:标识符形态计绑定名与默认值(若有),
|
||||
/// 哈希对象赋值目标属性:标识符形态计绑定名(仅精确键)与默认值(若有),
|
||||
/// 属性形态计键与绑定递归。
|
||||
fn hash_assignment_target_property(
|
||||
prop: &AssignmentTargetProperty, h: &mut rustc_hash::FxHasher, include_binding_names: bool,
|
||||
) {
|
||||
match prop {
|
||||
AssignmentTargetProperty::AssignmentTargetPropertyIdentifier(id) => {
|
||||
id.binding.name.as_str().hash(h);
|
||||
if include_binding_names {
|
||||
id.binding.name.as_str().hash(h);
|
||||
}
|
||||
if let Some(init) = &id.init {
|
||||
expression::hash_expression(init, h, include_binding_names);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user