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
Notes: sideshowbarker 2024-07-19 08:13:08 +09:00

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();
});
}