1
0
Fork 0
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:
Emanuele Torre 2020-05-01 15:19:43 +02:00 committed by Andreas Kling
parent 2e92c2e5e1
commit e9c7d4524a
Notes: sideshowbarker 2024-07-19 07:07:02 +09:00
3 changed files with 37 additions and 28 deletions

View file

@ -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;