From 4caf81ab89e4d0561f328ea8bbe822387f50a4b5 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Mon, 14 May 2012 10:11:11 -0700 Subject: [PATCH] Fix console non-existence bug (for real) --- q.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/q.js b/q.js index b2bb2fb8..986b1460 100644 --- a/q.js +++ b/q.js @@ -454,7 +454,7 @@ function isRejected(object) { var rejections = []; var errors = []; -if (typeof window !== "undefined" && typeof window.console === "function") { +if (typeof window !== "undefined" && typeof window.console === "object") { // This promise library consumes exceptions thrown in handlers so // they can be handled by a subsequent promise. The rejected // promises get added to this array when they are created, and