Implement console.count/countReset (#31635)

* Implement console.count/countReset

* Address review comment

Signed-off-by: syvb <me@iter.ca>

---------

Signed-off-by: syvb <me@iter.ca>
This commit is contained in:
Smitty 2024-03-17 05:50:40 -04:00 committed by GitHub
parent f98975bbbe
commit d2dcb20bea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 46 additions and 72 deletions

View file

@ -17,6 +17,10 @@ namespace console {
undefined assert(boolean condition, optional any message);
undefined clear();
// Counting
undefined count(optional DOMString label = "default");
undefined countReset(optional DOMString label = "default");
// Grouping
undefined group(any... data);
undefined groupCollapsed(any... data);