| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index 7ea1bbed792b42f836d2717684b561cac3c16960..b3c40b3e2e25d7ca7bcd4ff9dcb63508f37078cf 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -1520,10 +1520,14 @@ void AstGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) {
|
| break;
|
| }
|
| case ObjectLiteral::Property::GETTER:
|
| - accessor_table.lookup(key)->second->getter = property->value();
|
| + if (property->emit_store()) {
|
| + accessor_table.lookup(key)->second->getter = property->value();
|
| + }
|
| break;
|
| case ObjectLiteral::Property::SETTER:
|
| - accessor_table.lookup(key)->second->setter = property->value();
|
| + if (property->emit_store()) {
|
| + accessor_table.lookup(key)->second->setter = property->value();
|
| + }
|
| break;
|
| }
|
| }
|
|
|