|
@@ -8,9 +8,9 @@
|
|
|
|
|
|
namespace JS {
|
|
|
|
|
|
-WeakSet* WeakSet::create(Realm& realm)
|
|
|
+NonnullGCPtr<WeakSet> WeakSet::create(Realm& realm)
|
|
|
{
|
|
|
- return realm.heap().allocate<WeakSet>(realm, *realm.intrinsics().weak_set_prototype());
|
|
|
+ return *realm.heap().allocate<WeakSet>(realm, *realm.intrinsics().weak_set_prototype());
|
|
|
}
|
|
|
|
|
|
WeakSet::WeakSet(Object& prototype)
|