diff --git a/src/runtime.cc b/src/runtime.cc index e63b9f7613..0cffc9ef2c 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -666,7 +666,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakMapSet) { CONVERT_ARG_CHECKED(JSObject, key, 1); Handle value(args[2]); Handle table(weakmap->table()); - weakmap->set_table(*PutIntoObjectHashTable(table, key, value)); + Handle new_table = PutIntoObjectHashTable(table, key, value); + weakmap->set_table(*new_table); return *value; }