mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
LibJS+WebContent+js: Bring console.clear() to spec
This is identical to before, since we don't have "group stacks" yet, but clear() now uses ThrowCompletionOr.
This commit is contained in:
parent
834ced82d4
commit
9b78e287b0
5 changed files with 9 additions and 7 deletions
|
@ -115,10 +115,9 @@ void WebContentConsoleClient::send_messages(i32 start_index)
|
|||
m_client.async_did_get_js_console_messages(start_index, message_types, messages);
|
||||
}
|
||||
|
||||
JS::Value WebContentConsoleClient::clear()
|
||||
void WebContentConsoleClient::clear()
|
||||
{
|
||||
clear_output();
|
||||
return JS::js_undefined();
|
||||
}
|
||||
|
||||
JS::Value WebContentConsoleClient::trace()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue