diff options
author | Linus Groh <mail@linusgroh.de> | 2021-06-26 19:24:35 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-26 19:24:35 +0100 |
commit | 337ad6d15cfea049454aca19009c5d25c58cd16c (patch) | |
tree | 618f2324d1780d7421ad446e7eafa106bbcc6408 /Userland/Libraries/LibJS/Runtime/AbstractOperations.h | |
parent | 31f5797e89c368318438b97c2f625e0e3170d11e (diff) | |
download | serenity-337ad6d15cfea049454aca19009c5d25c58cd16c.zip |
LibJS: Implement the GetMethod() abstract operation as a Value method
This was a standalone function previously (get_method()), but instead of
passing a Value to it, we can just make it a method.
Also add spec step comments and fix the receiver value by using GetV().
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AbstractOperations.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/AbstractOperations.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AbstractOperations.h b/Userland/Libraries/LibJS/Runtime/AbstractOperations.h index 1e00d90cb7..0042bb47c7 100644 --- a/Userland/Libraries/LibJS/Runtime/AbstractOperations.h +++ b/Userland/Libraries/LibJS/Runtime/AbstractOperations.h @@ -18,7 +18,6 @@ ObjectEnvironmentRecord* new_object_environment(Object&, bool is_with_environmen EnvironmentRecord& get_this_environment(VM&); Object* get_super_constructor(VM&); Value require_object_coercible(GlobalObject&, Value); -Function* get_method(GlobalObject& global_object, Value, PropertyName const&); size_t length_of_array_like(GlobalObject&, Object const&); MarkedValueList create_list_from_array_like(GlobalObject&, Value, AK::Function<Result<void, ErrorType>(Value)> = {}); Function* species_constructor(GlobalObject&, Object const&, Function& default_constructor); |