Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index bdc5d97cdab6ad82347651bf4899059115f95e9d..6dc9dd0f35aa5332700b3b13ed277bbea0169b92 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -2914,18 +2914,8 @@ class Dictionary: public HashTable<Shape, Key> { |
} |
// Set the value for entry. |
- // Returns false if the put wasn't performed due to property being read only. |
- // Returns true on successful put. |
- bool ValueAtPut(int entry, Object* value) { |
- // Check that this value can actually be written. |
- PropertyDetails details = DetailsAt(entry); |
- // If a value has not been initilized we allow writing to it even if |
- // it is read only (a declared const that has not been initialized). |
- if (details.IsReadOnly() && !ValueAt(entry)->IsTheHole()) { |
- return false; |
- } |
+ void ValueAtPut(int entry, Object* value) { |
this->set(HashTable<Shape, Key>::EntryToIndex(entry) + 1, value); |
- return true; |
} |
// Returns the property details for the property at entry. |