Index: src/string-stream.cc |
diff --git a/src/string-stream.cc b/src/string-stream.cc |
index 61eec0d696d52fa10a0a439d38fdfd8640efa936..913a23fc7d363a2bd9bb9fac2ec1a5676ce14e8b 100644 |
--- a/src/string-stream.cc |
+++ b/src/string-stream.cc |
@@ -350,9 +350,8 @@ void StringStream::PrintUsingMap(JSObject* js_object) { |
} |
int real_size = map->NumberOfOwnDescriptors(); |
DescriptorArray* descs = map->instance_descriptors(); |
- for (int i = 0; i < descs->number_of_descriptors(); i++) { |
+ for (int i = 0; i < real_size; i++) { |
PropertyDetails details = descs->GetDetails(i); |
- if (details.descriptor_index() > real_size) continue; |
if (details.type() == FIELD) { |
Object* key = descs->GetKey(i); |
if (key->IsString() || key->IsNumber()) { |