Use proper descriptors array when committing state to JSON object.

This CL fixes an issue introduced in https://codereview.chromium.org/2645083003.

BUG=chromium:683818

Review-Url: https://codereview.chromium.org/2651653002
Cr-Commit-Position: refs/heads/master@{#42602}
This commit is contained in:
ishell 2017-01-23 04:21:08 -08:00 committed by Commit bot
parent 679201f67b
commit 87d7bb40d6

View File

@ -478,7 +478,7 @@ void JsonParser<seq_one_byte>::CommitStateToJsonObject(
DCHECK(!json_object->map()->is_dictionary_map());
DisallowHeapAllocation no_gc;
DescriptorArray* descriptors = map->instance_descriptors();
DescriptorArray* descriptors = json_object->map()->instance_descriptors();
int length = properties->length();
for (int i = 0; i < length; i++) {
Handle<Object> value = (*properties)[i];