|
@@ -9,9 +9,9 @@
|
|
|
|
|
|
namespace JS {
|
|
|
|
|
|
-SetIterator* SetIterator::create(Realm& realm, Set& set, Object::PropertyKind iteration_kind)
|
|
|
+NonnullGCPtr<SetIterator> SetIterator::create(Realm& realm, Set& set, Object::PropertyKind iteration_kind)
|
|
|
{
|
|
|
- return realm.heap().allocate<SetIterator>(realm, set, iteration_kind, *realm.intrinsics().set_iterator_prototype());
|
|
|
+ return *realm.heap().allocate<SetIterator>(realm, set, iteration_kind, *realm.intrinsics().set_iterator_prototype());
|
|
|
}
|
|
|
|
|
|
SetIterator::SetIterator(Set& set, Object::PropertyKind iteration_kind, Object& prototype)
|