mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
LibJS: Convert Accessor::create() to NonnullGCPtr
This commit is contained in:
parent
0ec433edce
commit
2b92c15b34
2 changed files with 4 additions and 4 deletions
|
@ -17,9 +17,9 @@ class Accessor final : public Cell {
|
|||
JS_CELL(Accessor, Cell);
|
||||
|
||||
public:
|
||||
static Accessor* create(VM& vm, FunctionObject* getter, FunctionObject* setter)
|
||||
static NonnullGCPtr<Accessor> create(VM& vm, FunctionObject* getter, FunctionObject* setter)
|
||||
{
|
||||
return vm.heap().allocate_without_realm<Accessor>(getter, setter);
|
||||
return *vm.heap().allocate_without_realm<Accessor>(getter, setter);
|
||||
}
|
||||
|
||||
FunctionObject* getter() const { return m_getter; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue