mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibJS: Convert Map::create() to NonnullGCPtr
This commit is contained in:
parent
45f903da00
commit
d48cdc7fa6
3 changed files with 4 additions and 4 deletions
|
@ -8,9 +8,9 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
Map* Map::create(Realm& realm)
|
||||
NonnullGCPtr<Map> Map::create(Realm& realm)
|
||||
{
|
||||
return realm.heap().allocate<Map>(realm, *realm.intrinsics().map_prototype());
|
||||
return *realm.heap().allocate<Map>(realm, *realm.intrinsics().map_prototype());
|
||||
}
|
||||
|
||||
Map::Map(Object& prototype)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue