mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +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
|
@ -1122,11 +1122,10 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
virtual JS::Value clear() override
|
||||
virtual void clear() override
|
||||
{
|
||||
js_out("\033[3J\033[H\033[2J");
|
||||
fflush(stdout);
|
||||
return JS::js_undefined();
|
||||
}
|
||||
|
||||
virtual JS::Value trace() override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue