1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00: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
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;