Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index 3ec79b244574b5378a8864e87a1e415d97b16bc9..ba9eb27f59b9a8b464c44efbde9be764be33d45d 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -2951,7 +2951,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { |
- Comment cmnt(masm_, "[ SuperConstructorCall"); |
+ if (!ValidateSuperCall(expr)) return; |
+ |
Variable* new_target_var = scope()->DeclarationScope()->new_target_var(); |
GetVar(result_register(), new_target_var); |
__ Push(result_register()); |