Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index 15ea1469142f0776952cd4d1f553cbd77c39cc10..8225d0b66a00df8cdee89fa2f414abd4c0741a4b 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -1066,20 +1066,13 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) { |
auto mode = is_simple || parameter->is_rest ? VAR : TEMPORARY; |
if (!is_simple) scope->SetHasNonSimpleParameters(); |
bool is_optional = parameter->initializer != nullptr; |
- Variable* var = |
- scope->DeclareParameter(name, mode, is_optional, parameter->is_rest, |
- &is_duplicate, ast_value_factory()); |
+ scope->DeclareParameter(name, mode, is_optional, parameter->is_rest, |
+ &is_duplicate, ast_value_factory()); |
if (is_duplicate && |
classifier()->is_valid_formal_parameter_list_without_duplicates()) { |
classifier()->RecordDuplicateFormalParameterError( |
scanner()->location()); |
} |
- if (is_sloppy(scope->language_mode())) { |
- // TODO(sigurds) Mark every parameter as maybe assigned. This is a |
- // conservative approximation necessary to account for parameters |
- // that are assigned via the arguments array. |
- var->set_maybe_assigned(); |
- } |
} |
} |