1
Fork 0
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:
Andreas Kling 2020-06-20 16:11:17 +02:00
parent 1f584911b2
commit a9e4babdaf
3 changed files with 4 additions and 4 deletions

View file

@ -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 {};