Index: src/ast/ast.h |
diff --git a/src/ast/ast.h b/src/ast/ast.h |
index f3e335bd571fd41763ff089a0cce9cbce8f757c4..9096675f98319d09ba2648a0b8b3feee15766c8f 100644 |
--- a/src/ast/ast.h |
+++ b/src/ast/ast.h |
@@ -3346,11 +3346,12 @@ class AstNodeFactory final BASE_EMBEDDED { |
// the Function constructor. |
FunctionLiteral* NewScriptOrEvalFunctionLiteral( |
DeclarationScope* scope, ZoneList<Statement*>* body, |
- int materialized_literal_count, int expected_property_count) { |
+ int materialized_literal_count, int expected_property_count, |
+ int parameter_count) { |
return new (zone_) FunctionLiteral( |
zone_, ast_value_factory_->empty_string(), ast_value_factory_, scope, |
- body, materialized_literal_count, expected_property_count, 0, |
- FunctionLiteral::kAnonymousExpression, |
+ body, materialized_literal_count, expected_property_count, |
+ parameter_count, FunctionLiteral::kAnonymousExpression, |
FunctionLiteral::kNoDuplicateParameters, |
FunctionLiteral::kShouldLazyCompile, FunctionKind::kNormalFunction, 0, |
false); |