Index: src/parsing/preparser.cc |
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc |
index 7f95164412209f2e6c20cda76c9528457dcf91ee..c7b2e1b5d25d6e9537e62989e4a610d6ee47ee68 100644 |
--- a/src/parsing/preparser.cc |
+++ b/src/parsing/preparser.cc |
@@ -266,8 +266,11 @@ PreParserExpression PreParser::ExpressionFromIdentifier( |
// AstValueFactory doesn't know about it. |
factory.set_zone(zone()); |
DCHECK_NOT_NULL(name.string_); |
- scope()->NewUnresolved(&factory, name.string_, start_position, |
- NORMAL_VARIABLE); |
+ VariableProxy* proxy = scope()->NewUnresolved( |
+ &factory, name.string_, start_position, NORMAL_VARIABLE); |
+ // We don't know whether the preparsed function assigns or not, so we set |
+ // is_assigned pessimistically. |
+ proxy->set_is_assigned(); |
} |
return PreParserExpression::FromIdentifier(name, zone()); |
} |