Index: src/ast/scopeinfo.cc |
diff --git a/src/ast/scopeinfo.cc b/src/ast/scopeinfo.cc |
index cb7409a9d2c3f7cc38067791b616625cf62b805c..668879fe5129f63140dfee72ca9d64bad05d062f 100644 |
--- a/src/ast/scopeinfo.cc |
+++ b/src/ast/scopeinfo.cc |
@@ -48,6 +48,8 @@ |
} else { |
receiver_info = NONE; |
} |
+ |
+ bool has_new_target = scope->new_target_var() != nullptr; |
// Determine use and location of the function variable if it is present. |
VariableAllocationInfo function_name_info; |
@@ -90,6 +92,7 @@ |
LanguageModeField::encode(scope->language_mode()) | |
DeclarationScopeField::encode(scope->is_declaration_scope()) | |
ReceiverVariableField::encode(receiver_info) | |
+ HasNewTargetField::encode(has_new_target) | |
FunctionVariableField::encode(function_name_info) | |
FunctionVariableMode::encode(function_variable_mode) | |
AsmModuleField::encode(scope->asm_module()) | |
@@ -372,6 +375,9 @@ |
return false; |
} |
} |
+ |
+ |
+bool ScopeInfo::HasNewTarget() { return HasNewTargetField::decode(Flags()); } |
bool ScopeInfo::HasFunctionName() { |