mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
LibJS+LibWeb: Move native JS functions into dedicated member functions
Instead of implementing every native function as a lambda function, use static member functions instead. This makes it easier to navigate the code + backtraces look nicer. :^)
This commit is contained in:
parent
7c4e53f31e
commit
56936b97d0
20 changed files with 233 additions and 149 deletions
|
@ -42,6 +42,8 @@ public:
|
|||
private:
|
||||
virtual const char* class_name() const override { return "EventTargetWrapper"; }
|
||||
|
||||
static JS::Value add_event_listener(JS::Interpreter&);
|
||||
|
||||
NonnullRefPtr<EventTarget> m_impl;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue