Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index c6a7954cf47c32781a0441f05efc4a3d1c409a0e..7ea1bbed792b42f836d2717684b561cac3c16960 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1343,15 +1343,17 @@ void AstGraphBuilder::VisitClassLiteralContents(ClassLiteral* expr) { |
break; |
} |
case ObjectLiteral::Property::GETTER: { |
+ Node* attr = jsgraph()->Constant(DONT_ENUM); |
const Operator* op = javascript()->CallRuntime( |
- Runtime::kDefineGetterPropertyUnchecked, 3); |
- NewNode(op, receiver, key, value); |
+ Runtime::kDefineGetterPropertyUnchecked, 4); |
+ NewNode(op, receiver, key, value, attr); |
break; |
} |
case ObjectLiteral::Property::SETTER: { |
+ Node* attr = jsgraph()->Constant(DONT_ENUM); |
const Operator* op = javascript()->CallRuntime( |
- Runtime::kDefineSetterPropertyUnchecked, 3); |
- NewNode(op, receiver, key, value); |
+ Runtime::kDefineSetterPropertyUnchecked, 4); |
+ NewNode(op, receiver, key, value, attr); |
break; |
} |
} |
@@ -1587,16 +1589,18 @@ void AstGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) { |
break; |
} |
case ObjectLiteral::Property::GETTER: { |
+ Node* attr = jsgraph()->Constant(NONE); |
const Operator* op = javascript()->CallRuntime( |
- Runtime::kDefineGetterPropertyUnchecked, 3); |
- Node* call = NewNode(op, receiver, key, value); |
+ Runtime::kDefineGetterPropertyUnchecked, 4); |
+ Node* call = NewNode(op, receiver, key, value, attr); |
PrepareFrameState(call, BailoutId::None()); |
break; |
} |
case ObjectLiteral::Property::SETTER: { |
+ Node* attr = jsgraph()->Constant(NONE); |
const Operator* op = javascript()->CallRuntime( |
- Runtime::kDefineSetterPropertyUnchecked, 3); |
- Node* call = NewNode(op, receiver, key, value); |
+ Runtime::kDefineSetterPropertyUnchecked, 4); |
+ Node* call = NewNode(op, receiver, key, value, attr); |
PrepareFrameState(call, BailoutId::None()); |
break; |
} |