Index: src/json-parser.cc |
diff --git a/src/json-parser.cc b/src/json-parser.cc |
index 6c65234d50b766f4946e57d171352ae95c89ef26..50c51b0ac5293969539a0735c700c34903cc413b 100644 |
--- a/src/json-parser.cc |
+++ b/src/json-parser.cc |
@@ -478,12 +478,12 @@ void JsonParser<seq_one_byte>::CommitStateToJsonObject( |
DCHECK(!json_object->map()->is_dictionary_map()); |
DisallowHeapAllocation no_gc; |
- |
+ DescriptorArray* descriptors = map->instance_descriptors(); |
int length = properties->length(); |
for (int i = 0; i < length; i++) { |
Handle<Object> value = (*properties)[i]; |
// Initializing store. |
- json_object->WriteToField(i, *value); |
+ json_object->WriteToField(i, descriptors->GetDetails(i), *value); |
} |
} |