diff options
author | Linus Groh <mail@linusgroh.de> | 2022-08-22 11:48:08 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-23 13:58:30 +0100 |
commit | b465f46e009164b5d2659f216b9307efee187222 (patch) | |
tree | 33038f3bc2c9d2d7e29c67bdfa94f38b2f761013 /Userland/Libraries/LibJS/Runtime/Object.cpp | |
parent | 7b990c27a14eddd152932d8540afc8c3838030fb (diff) | |
download | serenity-b465f46e009164b5d2659f216b9307efee187222.zip |
LibJS: Remove GlobalObject parameter from native functions
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Object.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Object.cpp b/Userland/Libraries/LibJS/Runtime/Object.cpp index ec791986de..396e79c4d6 100644 --- a/Userland/Libraries/LibJS/Runtime/Object.cpp +++ b/Userland/Libraries/LibJS/Runtime/Object.cpp @@ -1073,7 +1073,7 @@ void Object::set_prototype(Object* new_prototype) m_shape = shape.create_prototype_transition(new_prototype); } -void Object::define_native_accessor(PropertyKey const& property_key, Function<ThrowCompletionOr<Value>(VM&, GlobalObject&)> getter, Function<ThrowCompletionOr<Value>(VM&, GlobalObject&)> setter, PropertyAttributes attribute) +void Object::define_native_accessor(PropertyKey const& property_key, Function<ThrowCompletionOr<Value>(VM&)> getter, Function<ThrowCompletionOr<Value>(VM&)> setter, PropertyAttributes attribute) { auto& realm = *global_object().associated_realm(); FunctionObject* getter_function = nullptr; @@ -1123,7 +1123,7 @@ Value Object::get_without_side_effects(PropertyKey const& property_key) const return {}; } -void Object::define_native_function(PropertyKey const& property_key, Function<ThrowCompletionOr<Value>(VM&, GlobalObject&)> native_function, i32 length, PropertyAttributes attribute) +void Object::define_native_function(PropertyKey const& property_key, Function<ThrowCompletionOr<Value>(VM&)> native_function, i32 length, PropertyAttributes attribute) { auto& realm = *global_object().associated_realm(); auto* function = NativeFunction::create(realm, move(native_function), length, property_key, &realm); |