From cba68435bc6d649a38b23a76e15ca13d7e9b4be8 Mon Sep 17 00:00:00 2001 From: David Rajchenbach-Teller Date: Fri, 2 Aug 2013 12:42:46 -0400 Subject: [PATCH] Bug 900944 - OS.File LOG now actually logs. r=froydnj --- .../components/osfile/modules/osfile_shared_allthreads.jsm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/toolkit/components/osfile/modules/osfile_shared_allthreads.jsm b/toolkit/components/osfile/modules/osfile_shared_allthreads.jsm index f03f5d26be7c..fc64e94a540b 100644 --- a/toolkit/components/osfile/modules/osfile_shared_allthreads.jsm +++ b/toolkit/components/osfile/modules/osfile_shared_allthreads.jsm @@ -107,10 +107,7 @@ if (typeof console != "undefined" && console.log) { gLogger = console.log.bind(console, "OS"); } else { gLogger = function(...args) { - let text = "OS"; - for (let i = 0; i < args.length; ++i) { - text += (" " + args[i]); - } + dump("OS " + args.join(" ") + "\n"); }; }