Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 2b3656e03627c742f5fbd572fcd8ba4650643a80..9bf4d8e3efb6c6496507baffe7ea725d9bae1b74 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -1758,10 +1758,14 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
break; |
case ObjectLiteral::Property::GETTER: |
- accessor_table.lookup(key)->second->getter = value; |
+ if (property->emit_store()) { |
+ accessor_table.lookup(key)->second->getter = value; |
+ } |
break; |
case ObjectLiteral::Property::SETTER: |
- accessor_table.lookup(key)->second->setter = value; |
+ if (property->emit_store()) { |
+ accessor_table.lookup(key)->second->setter = value; |
+ } |
break; |
} |
} |