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:
parent
28ef654d13
commit
8c60ba1e42
3 changed files with 29 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue