[Pkg-javascript-commits] [dojo] 04/23: Fix #16296 console.debug(NaN) produces error in IE9

David Prévot taffit at moszumanska.debian.org
Sun Sep 14 16:23:10 UTC 2014


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

taffit pushed a commit to annotated tag 1.9.4
in repository dojo.

commit 7890c4706748ab1a7a229b6ba140c83e39efa798
Author: James Morrin <jmorrin at sitepen.com>
Date:   Wed Mar 19 09:30:02 2014 -0400

    Fix #16296 console.debug(NaN) produces error in IE9
    
    Properly convert arguments to an Array when shimming a console function.
    
    (cherry picked from commit 97861d95302c4e4e08de697dc563f9a0786e1d8d)
---
 _base/kernel.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_base/kernel.js b/_base/kernel.js
index aaa893f..0ae15de 100644
--- a/_base/kernel.js
+++ b/_base/kernel.js
@@ -164,7 +164,7 @@ define(["../has", "./config", "require", "module"], function(has, config, requir
 				(function(){
 					var tcn = tn + "";
 					console[tcn] = ('log' in console) ? function(){
-						var a = Array.apply({}, arguments);
+						var a = Array.prototype.slice.call(arguments);
 						a.unshift(tcn + ":");
 						console["log"](a.join(" "));
 					} : function(){};

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



More information about the Pkg-javascript-commits mailing list