fix: 对齐 class 体 counter/emitter 指令条数,修私有方法、计算键、派生构造器字段注入位置的跳转漂移

This commit is contained in:
2026-06-27 20:50:12 +08:00
parent 3794ae3fd5
commit 03c9809c30
5 changed files with 130 additions and 17 deletions
+1 -1
View File
@@ -247,7 +247,7 @@ impl Compiler {
self.emit_expression(key.to_expression(), ctx)
}
fn count_class_key(&self, key: &PropertyKey, computed: bool, ctx: &mut CompileCtx) {
pub(crate) fn count_class_key(&self, key: &PropertyKey, computed: bool, ctx: &mut CompileCtx) {
if computed {
self.count_expression(key.to_expression(), ctx);
} else {