mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +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
|
@ -388,7 +388,7 @@ bool Object::define_property(const FlyString& property_name, const Object& descr
|
|||
<< "getter=" << getter.to_string_without_side_effects() << ", "
|
||||
<< "setter=" << setter.to_string_without_side_effects() << "}";
|
||||
|
||||
return define_property(property_name, Accessor::create(interpreter(), getter_function, setter_function), attributes, throw_exceptions);
|
||||
return define_property(property_name, Accessor::create(interpreter(), global_object(), getter_function, setter_function), attributes, throw_exceptions);
|
||||
}
|
||||
|
||||
auto value = descriptor.get("value");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue