mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 18:51:13 +08:00
fix: 函数 async/generator 标志纳入编译缓存键防字节码错配
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user