mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
LibJS: Convert ProxyObject::create() to NonnullGCPtr
This commit is contained in:
parent
6e386acb11
commit
e0818bf21e
3 changed files with 4 additions and 4 deletions
|
@ -15,9 +15,9 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
ProxyObject* ProxyObject::create(Realm& realm, Object& target, Object& handler)
|
||||
NonnullGCPtr<ProxyObject> ProxyObject::create(Realm& realm, Object& target, Object& handler)
|
||||
{
|
||||
return realm.heap().allocate<ProxyObject>(realm, target, handler, *realm.intrinsics().object_prototype());
|
||||
return *realm.heap().allocate<ProxyObject>(realm, target, handler, *realm.intrinsics().object_prototype());
|
||||
}
|
||||
|
||||
ProxyObject::ProxyObject(Object& target, Object& handler, Object& prototype)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue