Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 141b93b6eb79308aaa8633fab8e0c3e4aaf8d65e..ea24da6d1bd28e0391c0aeabb846a406e7947b2a 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -642,6 +642,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakMapInitialize) { |
ASSERT(weakmap->map()->inobject_properties() == 0); |
Handle<ObjectHashTable> table = isolate->factory()->NewObjectHashTable(0); |
weakmap->set_table(*table); |
+ weakmap->set_next(Smi::FromInt(0)); |
return *weakmap; |
} |