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

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


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

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

commit 385185cde2d8839968fc90020ae6505ec6806b68
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 ceb05b6..13ed526 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