LibJS: Make output_debug_message accept a StringView
This commit is contained in:
parent
e9ab3e5a80
commit
bd2f794873
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue