瀏覽代碼

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

Andreas Kling 5 年之前
父節點
當前提交
218f082226
共有 1 個文件被更改,包括 1 次插入0 次删除
  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 {
     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();
     });
     });
 }
 }