1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibJS: Implement console.count()

This commit is contained in:
Emanuele Torre 2020-05-01 07:14:57 +02:00 committed by Andreas Kling
parent 28ef654d13
commit 8c60ba1e42
3 changed files with 29 additions and 0 deletions

View file

@ -162,6 +162,8 @@ public:
Value last_value() const { return m_last_value; }
HashMap<String, unsigned>& console_counters() { return m_console_counters; }
private:
Interpreter();
@ -177,6 +179,8 @@ private:
Exception* m_exception { nullptr };
ScopeType m_unwind_until { ScopeType::None };
HashMap<String, unsigned> m_console_counters;
};
}