refactor: emit 冗余标志参数收敛为内部推导

This commit is contained in:
2026-10-12 16:30:51 +00:00
parent 2d5cba7e98
commit 3d7e8edd75
22 changed files with 151 additions and 187 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ impl Emitter {
let key_reg = if method.computed {
self.emit_class_array_key_reg(key_slot.unwrap_or(0), ctx)?
} else {
self.emit_class_key_reg(&method.key, false, ctx)?
self.emit_class_key_reg(&method.key, ctx)?
};
let method_name = if method.computed {
"<computed>".to_string()