summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Value.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-03-02 18:04:13 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-02 19:20:29 +0100
commit1b43a6ef2d9ad3ca16856bb06e6733dafbf4577c (patch)
tree1b8287439fe7835c867602c3256d7ddf9ab2dc62 /Userland/Libraries/LibJS/Runtime/Value.h
parentf0912027ff2f320e6c580d1a2f2de448fcfcf820 (diff)
downloadserenity-1b43a6ef2d9ad3ca16856bb06e6733dafbf4577c.zip
LibJS: Implement the GetMethod abstract operation
https://tc39.es/ecma262/#sec-getmethod We have bunch of duplicated on-demand versions of this, let's do it properly.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Value.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Value.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Value.h b/Userland/Libraries/LibJS/Runtime/Value.h
index 781d996c5d..3914232306 100644
--- a/Userland/Libraries/LibJS/Runtime/Value.h
+++ b/Userland/Libraries/LibJS/Runtime/Value.h
@@ -340,6 +340,7 @@ bool same_value(Value lhs, Value rhs);
bool same_value_zero(Value lhs, Value rhs);
bool same_value_non_numeric(Value lhs, Value rhs);
TriState abstract_relation(GlobalObject&, bool left_first, Value lhs, Value rhs);
+Function* get_method(GlobalObject& global_object, Value, const PropertyName&);
size_t length_of_array_like(GlobalObject&, const Object&);
}