Ver Fonte

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

Andreas Kling há 5 anos atrás
pai
commit
218f082226
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      Libraries/LibJS/Runtime/ConsoleObject.cpp

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