Index: src/value-serializer.cc |
diff --git a/src/value-serializer.cc b/src/value-serializer.cc |
index 5a8f241e3cf21c71545b7515d298c0ac6b0539c4..f4bd4fd2094e745d46a3f8d27ba094a91c2e8594 100644 |
--- a/src/value-serializer.cc |
+++ b/src/value-serializer.cc |
@@ -1723,8 +1723,8 @@ Maybe<uint32_t> ValueDeserializer::ReadJSObjectProperties( |
->NowContains(value)) { |
Handle<FieldType> value_type = |
value->OptimalType(isolate_, expected_representation); |
- Map::GeneralizeField(target, descriptor, expected_representation, |
- value_type); |
+ Map::GeneralizeField(target, descriptor, details.constness(), |
+ expected_representation, value_type); |
} |
DCHECK(target->instance_descriptors() |
->GetFieldType(descriptor) |