mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05:00
LibJS: Make output_debug_message accept a StringView
This commit is contained in:
parent
e9ab3e5a80
commit
bd2f794873
Notes:
github-actions[bot]
2024-12-04 16:48:27 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/bd2f794873d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2727 Reviewed-by: https://github.com/AtkinsSJ ✅
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