LibJS: Make output_debug_message accept a StringView

This commit is contained in:
Shannon Booth 2024-12-03 20:46:50 +13:00 committed by Sam Atkins
parent e9ab3e5a80
commit bd2f794873
Notes: github-actions[bot] 2024-12-04 16:48:27 +00:00
2 changed files with 2 additions and 2 deletions

View file

@ -678,7 +678,7 @@ GC::MarkedVector<Value> Console::vm_arguments()
return arguments;
}
void Console::output_debug_message(LogLevel log_level, String const& output) const
void Console::output_debug_message(LogLevel log_level, StringView output) const
{
switch (log_level) {
case Console::LogLevel::Debug:

View file

@ -87,7 +87,7 @@ public:
ThrowCompletionOr<Value> time_log();
ThrowCompletionOr<Value> time_end();
void output_debug_message(LogLevel log_level, String const& output) const;
void output_debug_message(LogLevel log_level, StringView output) const;
void report_exception(JS::Error const&, bool) const;
private: