LibJS: Move is_script_function() to Object

Every Object should be able to tell us if it is a ScriptFunction, not
only Function objects!
This commit is contained in:
Linus Groh 2020-12-04 21:14:43 +00:00 committed by Andreas Kling
parent 157896cc0b
commit 909f430612
Notes: sideshowbarker 2024-07-19 01:03:22 +09:00
2 changed files with 1 additions and 2 deletions

View file

@ -50,8 +50,6 @@ public:
virtual void visit_edges(Visitor&) override;
virtual bool is_script_function() const { return false; }
BoundFunction* bind(Value bound_this_value, Vector<Value> arguments);
Value bound_this() const { return m_bound_this; }

View file

@ -117,6 +117,7 @@ public:
virtual bool is_error() const { return false; }
virtual bool is_function() const { return false; }
virtual bool is_native_function() const { return false; }
virtual bool is_script_function() const { return false; }
virtual bool is_bound_function() const { return false; }
virtual bool is_proxy_object() const { return false; }
virtual bool is_regexp_object() const { return false; }