Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 5a2152452e23bf16d6ff307990175d257c878c2d..eac7ebcc994a0210501fadfa0c87edfe95be7b2b 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1500,7 +1500,8 @@ Handle<GlobalObject> Factory::NewGlobalObject(Handle<JSFunction> constructor) { |
Handle<Name> name(descs->GetKey(i)); |
Handle<Object> value(descs->GetCallbacksObject(i), isolate()); |
Handle<PropertyCell> cell = NewPropertyCell(value); |
- NameDictionary::Add(dictionary, name, cell, d); |
+ // |dictionary| already contains enough space for all properties. |
+ USE(NameDictionary::Add(dictionary, name, cell, d)); |
} |
// Allocate the global object and initialize it with the backing store. |