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:
parent
2e92c2e5e1
commit
e9c7d4524a
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