From: ishell@chromium.org Date: Thu, 24 Apr 2014 15:45:44 +0000 (+0000) Subject: Fix for build issue on Mac introduced in r20948. X-Git-Tag: upstream/4.7.83~9442 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95f0c064cabbd7e9d5585bd319ad4c47d54995d9;p=platform%2Fupstream%2Fv8.git Fix for build issue on Mac introduced in r20948. TBR=yangguo@chromium.org Review URL: https://codereview.chromium.org/251363004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20951 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/factory.cc b/src/factory.cc index 5a21524..eac7ebc 100644 --- a/src/factory.cc +++ b/src/factory.cc @@ -1500,7 +1500,8 @@ Handle Factory::NewGlobalObject(Handle constructor) { Handle name(descs->GetKey(i)); Handle value(descs->GetCallbacksObject(i), isolate()); Handle 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.