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:
Sam Atkins 2021-12-08 19:24:17 +00:00 committed by Andreas Kling
commit 9b78e287b0
Notes: sideshowbarker 2024-07-17 22:06:57 +09:00
5 changed files with 9 additions and 7 deletions

View file

@ -24,7 +24,7 @@ public:
void send_messages(i32 start_index);
private:
virtual JS::Value clear() override;
virtual void clear() override;
virtual JS::Value trace() override;
virtual JS::Value assert_() override;
virtual JS::ThrowCompletionOr<JS::Value> printer(JS::Console::LogLevel log_level, Vector<JS::Value>&) override;