[Pkg-mozext-commits] [firebug] 02/16: Issue 7774: Remove console.log().toString

David Prévot taffit at moszumanska.debian.org
Fri Apr 10 02:19:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository firebug.

commit 790572b5f5ce9fe218e1a779aebccb495de12d1c
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date:   Sun Mar 15 23:13:06 2015 +0100

    Issue 7774: Remove console.log().toString
    
    https://code.google.com/p/fbug/issues/detail?id=7774
---
 extension/content/firebug/console/console.js | 24 +-----------------------
 1 file changed, 1 insertion(+), 23 deletions(-)

diff --git a/extension/content/firebug/console/console.js b/extension/content/firebug/console/console.js
index 264f727..282a2fa 100644
--- a/extension/content/firebug/console/console.js
+++ b/extension/content/firebug/console/console.js
@@ -34,8 +34,7 @@ var Cu = Components.utils;
 var scope = Cu.import("resource://gre/modules/devtools/Loader.jsm", {});
 var {ConsoleAPIListener} = scope.devtools.require("devtools/toolkit/webconsole/utils");
 
-// Note: createDefaultReturnValueInstance() is a local helper (see below).
-var defaultReturnValue = createDefaultReturnValueInstance();
+var defaultReturnValue = Object.preventExtensions(Object.create(null));
 
 var Trace = FBTrace.to("DBG_CONSOLE");
 var TraceError = FBTrace.toError();
@@ -494,27 +493,6 @@ Firebug.ConsoleListener =
 };
 
 // ********************************************************************************************* //
-// Local Helpers
-
-function createDefaultReturnValueInstance()
-{
-    var proto =
-    {
-        __exposedProps__:
-        {
-            "toString": "rw"
-        },
-
-        toString: function()
-        {
-            return undefined;
-        }
-    };
-
-    return Object.preventExtensions(Object.create(proto));
-}
-
-// ********************************************************************************************* //
 // Registration
 
 Firebug.Console = Console;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git



More information about the Pkg-mozext-commits mailing list