mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Convert WeakSet::create() to NonnullGCPtr
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 03:16:18 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/54ebf71da2 Pull-request: https://github.com/SerenityOS/serenity/pull/16479 Reviewed-by: https://github.com/davidot ✅
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user