Index: src/string-stream.cc |
diff --git a/src/string-stream.cc b/src/string-stream.cc |
index 51aa2bb3291f9af2bbde544fb9034bb25fc3cd00..30519b561046a4012db3260dc96c93f8f2e32953 100644 |
--- a/src/string-stream.cc |
+++ b/src/string-stream.cc |
@@ -348,9 +348,12 @@ void StringStream::PrintUsingMap(JSObject* js_object) { |
Add("<Invalid map>\n"); |
return; |
} |
+ int real_size = map->NumberOfOwnDescriptors(); |
DescriptorArray* descs = map->instance_descriptors(); |
for (int i = 0; i < descs->number_of_descriptors(); i++) { |
- if (descs->GetType(i) == FIELD) { |
+ 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()) { |
int len = 3; |