mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
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: 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