mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 19:17:41 +00:00
LibJS: Print a newline in each console.log()
This commit is contained in:
parent
2176a3dd18
commit
218f082226
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ ConsoleObject::ConsoleObject()
|
||||||
put_native_function("log", [](Object*, const Vector<Value>& arguments) -> Value {
|
put_native_function("log", [](Object*, const Vector<Value>& arguments) -> Value {
|
||||||
for (auto& argument : arguments)
|
for (auto& argument : arguments)
|
||||||
printf("%s ", argument.to_string().characters());
|
printf("%s ", argument.to_string().characters());
|
||||||
|
printf("\n");
|
||||||
return js_undefined();
|
return js_undefined();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue