mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
LibJS: Implement console.assert()
This commit is contained in:
parent
e37421bddc
commit
8d490aba76
12 changed files with 89 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Emanuele Torre <torreemanuele6@gmail.com>
|
||||
* Copyright (c) 2020, Linus Groh <mail@linusgroh.de>
|
||||
* Copyright (c) 2020-2021, Linus Groh <mail@linusgroh.de>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -118,6 +118,13 @@ Value Console::count_reset()
|
|||
return js_undefined();
|
||||
}
|
||||
|
||||
Value Console::assert_()
|
||||
{
|
||||
if (m_client)
|
||||
return m_client->assert_();
|
||||
return js_undefined();
|
||||
}
|
||||
|
||||
unsigned Console::counter_increment(String label)
|
||||
{
|
||||
auto value = m_counters.get(label);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue