From 85bda7bc09d9b739b2613c02c1c2c1d2518e86dc Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Mon, 5 Nov 2012 18:39:59 +0000 Subject: [PATCH] Fix stack overflow for mac build. R=ulan@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/11358096 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12861 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/json-stringifier.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/json-stringifier.h b/src/json-stringifier.h index 1aa72b71b4..74f38fe99c 100644 --- a/src/json-stringifier.h +++ b/src/json-stringifier.h @@ -569,8 +569,7 @@ BasicJsonStringifier::Result BasicJsonStringifier::SerializeJSObject( !object->HasNamedInterceptor() && object->elements()->length() == 0) { Handle map(object->map()); - int num_desc = map->NumberOfOwnDescriptors(); - for (int i = 0; i < num_desc; i++) { + for (int i = 0; i < map->NumberOfOwnDescriptors(); i++) { Handle key(map->instance_descriptors()->GetKey(i), isolate_); PropertyDetails details = map->instance_descriptors()->GetDetails(i); if (details.IsDontEnum() || details.IsDeleted()) continue;