feat: new.target MetaProperty emit 支持(LOAD_VAR NewTarget)

This commit is contained in:
2026-08-16 12:43:50 +08:00
parent 068db40fdd
commit 648842fd82
4 changed files with 139 additions and 0 deletions
+1
View File
@@ -1440,6 +1440,7 @@ impl Emitter {
Expression::ThisExpression(_) => self.emit_this_expression(ctx),
Expression::SequenceExpression(seq) => self.emit_sequence_expression(seq, ctx),
Expression::ParenthesizedExpression(p) => self.emit_parenthesized_expression(p, ctx),
Expression::MetaProperty(mp) => self.emit_meta_property_expression(mp, ctx),
_ => self.emit_unsupported_expression(expr, ctx),
}
}