Index: src/value-serializer.cc |
diff --git a/src/value-serializer.cc b/src/value-serializer.cc |
index 7b17275b014d5a9f210ad1d63e6fae134bddc840..8d2f06713c41d3980074a45967082e4c8be32dd3 100644 |
--- a/src/value-serializer.cc |
+++ b/src/value-serializer.cc |
@@ -523,7 +523,7 @@ Maybe<bool> ValueSerializer::WriteJSObject(Handle<JSObject> object) { |
Maybe<bool> ValueSerializer::WriteJSObjectSlow(Handle<JSObject> object) { |
WriteTag(SerializationTag::kBeginJSObject); |
Handle<FixedArray> keys; |
- uint32_t properties_written; |
+ uint32_t properties_written = 0; |
if (!KeyAccumulator::GetKeys(object, KeyCollectionMode::kOwnOnly, |
ENUMERABLE_STRINGS) |
.ToHandle(&keys) || |
@@ -632,7 +632,7 @@ Maybe<bool> ValueSerializer::WriteJSArray(Handle<JSArray> array) { |
WriteTag(SerializationTag::kBeginSparseJSArray); |
WriteVarint<uint32_t>(length); |
Handle<FixedArray> keys; |
- uint32_t properties_written; |
+ uint32_t properties_written = 0; |
if (!KeyAccumulator::GetKeys(array, KeyCollectionMode::kOwnOnly, |
ENUMERABLE_STRINGS) |
.ToHandle(&keys) || |