mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
LibJS: Implement ConsoleObject::count() as a Console::count() wrapper
Also implement ConsoleObject::count_clear() as a wrapper for Console::count_clear()
This commit is contained in:
parent
2e92c2e5e1
commit
e9c7d4524a
Notes:
sideshowbarker
2024-07-19 07:07:02 +09:00
Author: https://github.com/emanuele6
Commit: e9c7d4524a
Pull-request: https://github.com/SerenityOS/serenity/pull/2049
3 changed files with 37 additions and 28 deletions
|
@ -43,6 +43,9 @@ public:
|
|||
|
||||
HashMap<String, unsigned>& counters() { return m_counters; }
|
||||
|
||||
unsigned count(String label = "default");
|
||||
bool count_reset(String label = "default");
|
||||
|
||||
private:
|
||||
Interpreter& m_interpreter;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue