Index: src/snapshot/serialize.cc |
diff --git a/src/snapshot/serialize.cc b/src/snapshot/serialize.cc |
index 526d530baa90ae68d3ee0680097ea23903126447..b729e60c6099add743de2b16e4232bf483cc9130 100644 |
--- a/src/snapshot/serialize.cc |
+++ b/src/snapshot/serialize.cc |
@@ -1919,7 +1919,7 @@ class UnlinkWeakCellScope { |
if (object->IsWeakCell()) { |
weak_cell_ = WeakCell::cast(object); |
next_ = weak_cell_->next(); |
- weak_cell_->clear_next(object->GetHeap()); |
+ weak_cell_->clear_next(object->GetHeap()->the_hole_value()); |
} |
} |