ES6: Should not allow duplicate basic __proto__ properties in Object Literals
[WebKit-https.git] / Source / JavaScriptCore / parser / ASTBuilder.h
index fbcbe26..f1f0c04 100644 (file)
@@ -719,8 +719,9 @@ public:
         assignmentStackDepth--;
         return result;
     }
-    
-    PropertyNode::Type getType(Property property) const { return property->type(); }
+
+    const Identifier* getName(const Property& property) const { return property->name(); }
+    PropertyNode::Type getType(const Property& property) const { return property->type(); }
 
     bool isResolve(ExpressionNode* expr) const { return expr->isResolveNode(); }