mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibJS+LibWeb: Convert empty PrimitiveString instances to String
This commit is contained in:
parent
e99a4ba7c8
commit
49e8dcf0b2
9 changed files with 26 additions and 26 deletions
|
@ -622,7 +622,7 @@ ThrowCompletionOr<MarkedVector<Value>> ConsoleClient::formatter(MarkedVector<Val
|
|||
else if (specifier == "%c"sv) {
|
||||
// NOTE: This has no spec yet. `%c` specifiers treat the argument as CSS styling for the log message.
|
||||
add_css_style_to_current_message(TRY(current.to_deprecated_string(vm)));
|
||||
converted = PrimitiveString::create(vm, "");
|
||||
converted = PrimitiveString::create(vm, String {});
|
||||
}
|
||||
|
||||
// 7. If any of the previous steps set converted, replace specifier in target with converted.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue