mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
LibJS: Pass GlobalObject& when constructing an Accessor
This commit is contained in:
parent
1f584911b2
commit
a9e4babdaf
3 changed files with 4 additions and 4 deletions
|
@ -35,9 +35,9 @@ namespace JS {
|
|||
|
||||
class Accessor final : public Cell {
|
||||
public:
|
||||
static Accessor* create(Interpreter& interpreter, Function* getter, Function* setter)
|
||||
static Accessor* create(Interpreter& interpreter, GlobalObject& global_object, Function* getter, Function* setter)
|
||||
{
|
||||
return interpreter.heap().allocate<Accessor>(interpreter.global_object(), getter, setter);
|
||||
return interpreter.heap().allocate<Accessor>(global_object, getter, setter);
|
||||
}
|
||||
|
||||
Accessor(Function* getter, Function* setter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue