summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-20 14:26:31 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-20 14:41:23 +0100
commit218f082226c16d44b765a23fe4d221e73cf96a1e (patch)
tree5c71554014ab216343390e949812e5b43ef7e1e6 /Libraries
parent2176a3dd18ae3567c1d4f28b2d6d8471e850b69e (diff)
downloadserenity-218f082226c16d44b765a23fe4d221e73cf96a1e.zip
LibJS: Print a newline in each console.log()
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibJS/Runtime/ConsoleObject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibJS/Runtime/ConsoleObject.cpp b/Libraries/LibJS/Runtime/ConsoleObject.cpp
index dce83985ab..b9c3a34ca7 100644
--- a/Libraries/LibJS/Runtime/ConsoleObject.cpp
+++ b/Libraries/LibJS/Runtime/ConsoleObject.cpp
@@ -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();
});
}