mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
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:
parent
157896cc0b
commit
909f430612
Notes:
sideshowbarker
2024-07-19 01:03:22 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/909f430612d Pull-request: https://github.com/SerenityOS/serenity/pull/4324 Issue: https://github.com/SerenityOS/serenity/issues/4310
2 changed files with 1 additions and 2 deletions
|
@ -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; }
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue