LibJS: Print a newline in each console.log()
This commit is contained in:
parent
2176a3dd18
commit
218f082226
Notes:
sideshowbarker
2024-07-19 08:13:08 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/218f082226c
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 {
|
||||
for (auto& argument : arguments)
|
||||
printf("%s ", argument.to_string().characters());
|
||||
printf("\n");
|
||||
return js_undefined();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue