mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibJS: Convert AsyncFromSyncIterator::create() to NonnullGCPtr
This commit is contained in:
parent
4763cab323
commit
6528cbf51b
3 changed files with 4 additions and 4 deletions
|
@ -11,9 +11,9 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
AsyncFromSyncIterator* AsyncFromSyncIterator::create(Realm& realm, Iterator sync_iterator_record)
|
||||
NonnullGCPtr<AsyncFromSyncIterator> AsyncFromSyncIterator::create(Realm& realm, Iterator sync_iterator_record)
|
||||
{
|
||||
return realm.heap().allocate<AsyncFromSyncIterator>(realm, realm, sync_iterator_record);
|
||||
return *realm.heap().allocate<AsyncFromSyncIterator>(realm, realm, sync_iterator_record);
|
||||
}
|
||||
|
||||
AsyncFromSyncIterator::AsyncFromSyncIterator(Realm& realm, Iterator sync_iterator_record)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue