1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00

LibJS: Print a newline in each console.log()

This commit is contained in:
Andreas Kling 2020-03-20 14:26:31 +01:00
parent 2176a3dd18
commit 218f082226

View file

@ -35,6 +35,7 @@ ConsoleObject::ConsoleObject()
put_native_function("log", [](Object*, const Vector<Value>& arguments) -> Value {
for (auto& argument : arguments)
printf("%s ", argument.to_string().characters());
printf("\n");
return js_undefined();
});
}