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().
This commit is contained in:
Linus Groh 2021-06-26 19:24:35 +01:00
commit 337ad6d15c
Notes: sideshowbarker 2024-07-18 11:28:24 +09:00
8 changed files with 48 additions and 41 deletions

View file

@ -288,6 +288,7 @@ public:
bool to_boolean() const;
Value get(GlobalObject&, PropertyName const&) const;
Function* get_method(GlobalObject&, PropertyName const&) const;
String to_string_without_side_effects() const;