mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +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
|
@ -1372,7 +1372,7 @@ Value ObjectExpression::execute(Interpreter& interpreter, GlobalObject& global_o
|
|||
accessor = &existing_property.as_accessor();
|
||||
}
|
||||
if (!accessor) {
|
||||
accessor = Accessor::create(interpreter, nullptr, nullptr);
|
||||
accessor = Accessor::create(interpreter, global_object, nullptr, nullptr);
|
||||
object->define_property(key, accessor, Attribute::Configurable | Attribute::Enumerable);
|
||||
if (interpreter.exception())
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue