mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Remove unnecessary space character at the end of console.log()
This commit is contained in:
@@ -34,9 +34,12 @@ namespace JS {
|
||||
ConsoleObject::ConsoleObject()
|
||||
{
|
||||
put_native_function("log", [](Object*, const Vector<Value>& arguments) -> Value {
|
||||
for (auto& argument : arguments)
|
||||
printf("%s ", argument.to_string().characters());
|
||||
printf("\n");
|
||||
for (size_t i = 0; i < arguments.size(); ++i) {
|
||||
printf("%s", arguments[i].to_string().characters());
|
||||
if (i != arguments.size() - 1)
|
||||
putchar(' ');
|
||||
}
|
||||
putchar('\n');
|
||||
return js_undefined();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user