1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

LibJS: Convert BooleanObject::create() to NonnullGCPtr

This commit is contained in:
Linus Groh 2022-12-13 20:49:50 +00:00
parent cf0a24ff0c
commit b48fa8756f
3 changed files with 4 additions and 4 deletions

View file

@ -9,9 +9,9 @@
namespace JS {
BooleanObject* BooleanObject::create(Realm& realm, bool value)
NonnullGCPtr<BooleanObject> BooleanObject::create(Realm& realm, bool value)
{
return realm.heap().allocate<BooleanObject>(realm, value, *realm.intrinsics().boolean_prototype());
return *realm.heap().allocate<BooleanObject>(realm, value, *realm.intrinsics().boolean_prototype());
}
BooleanObject::BooleanObject(bool value, Object& prototype)