mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +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:
@@ -37,6 +37,8 @@ public:
|
||||
|
||||
private:
|
||||
virtual const char* class_name() const override { return "ConsoleObject"; }
|
||||
|
||||
static Value log(Interpreter&);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user