Index: test/cctest/test-weaksets.cc |
diff --git a/test/cctest/test-weaksets.cc b/test/cctest/test-weaksets.cc |
index 60f2d45dc358d8c186bc139a943763db21e39f38..299cc92e9b28676db30df4d4e90f1713a842d85b 100644 |
--- a/test/cctest/test-weaksets.cc |
+++ b/test/cctest/test-weaksets.cc |
@@ -58,7 +58,11 @@ |
static void PutIntoWeakSet(Handle<JSWeakSet> weakset, |
Handle<JSObject> key, |
Handle<Object> value) { |
- Runtime::WeakCollectionSet(weakset, key, value); |
+ Handle<ObjectHashTable> table = ObjectHashTable::Put( |
+ Handle<ObjectHashTable>(ObjectHashTable::cast(weakset->table())), |
+ Handle<JSObject>(JSObject::cast(*key)), |
+ value); |
+ weakset->set_table(*table); |
} |
static int NumberOfWeakCalls = 0; |