[Pkg-javascript-commits] [dojo] 09/27: Fix #16296 console.debug(NaN) produces error in IE9
David Prévot
taffit at moszumanska.debian.org
Sun Sep 14 16:23:05 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.7.6
in repository dojo.
commit 0299ef009c1bf5708103932641ae405807c7d419
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 c2f3193..9778d49 100644
--- a/_base/kernel.js
+++ b/_base/kernel.js
@@ -167,7 +167,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