1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

LibJS: NativeProperty get/put should take a GlobalObject&

This commit is contained in:
Andreas Kling 2020-06-20 17:35:25 +02:00
parent 03da70c7d0
commit e1f9da142e
3 changed files with 8 additions and 8 deletions

View file

@ -808,7 +808,7 @@ Value Object::call_native_property_getter(Object* this_object, Value property) c
auto& native_property = static_cast<NativeProperty&>(property.as_object());
auto& call_frame = interpreter().push_call_frame();
call_frame.this_value = this_object;
auto result = native_property.get(interpreter());
auto result = native_property.get(interpreter(), global_object());
interpreter().pop_call_frame();
return result;
}
@ -820,7 +820,7 @@ void Object::call_native_property_setter(Object* this_object, Value property, Va
auto& native_property = static_cast<NativeProperty&>(property.as_object());
auto& call_frame = interpreter().push_call_frame();
call_frame.this_value = this_object;
native_property.set(interpreter(), value);
native_property.set(interpreter(), global_object(), value);
interpreter().pop_call_frame();
}