fix: 函数 async/generator 标志纳入编译缓存键防字节码错配

This commit is contained in:
2026-08-16 17:34:03 +08:00
parent c8b1ccd0a0
commit ae6c60d99d
4 changed files with 53 additions and 0 deletions
+2
View File
@@ -8,6 +8,8 @@ pub(super) fn hash_class_element(element: &ClassElement, h: &mut rustc_hash::FxH
method.r#static.hash(h);
method.computed.hash(h);
std::mem::discriminant(&method.kind).hash(h);
method.value.r#async.hash(h);
method.value.generator.hash(h);
property::hash_property_key(&method.key, h, include_binding_names);
if method.computed {
property::hash_property_key(&method.key, h, include_binding_names);