| Index: src/data-flow.cc
|
| diff --git a/src/data-flow.cc b/src/data-flow.cc
|
| index ef15244a4e6aa4c964d1f4000cf3d711367b355a..0e30b315173f879a91d87a9a42d163402cbaf40b 100644
|
| --- a/src/data-flow.cc
|
| +++ b/src/data-flow.cc
|
| @@ -196,9 +196,12 @@ void AstLabeler::VisitAssignment(Assignment* expr) {
|
| ASSERT(prop != NULL);
|
| if (prop != NULL) {
|
| ASSERT(prop->key()->IsPropertyName());
|
| - if (prop->obj()->AsVariableProxy() == NULL ||
|
| - !prop->obj()->AsVariableProxy()->var()->is_this())
|
| + VariableProxy* proxy = prop->obj()->AsVariableProxy();
|
| + if (proxy != NULL && proxy->var()->is_this()) {
|
| + has_this_properties_ = true;
|
| + } else {
|
| Visit(prop->obj());
|
| + }
|
| }
|
| Visit(expr->value());
|
| expr->set_num(next_number_++);
|
|
|