From d9c39262a68c26848a39fc6c08bda14e69c7ab7c Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 16 Feb 2014 22:06:17 -0800 Subject: [PATCH] Restore some cruft that turned out not to be as crufty as it seemed :/ --- common/modules/base.jsm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/modules/base.jsm b/common/modules/base.jsm index a4550d29..9424141a 100644 --- a/common/modules/base.jsm +++ b/common/modules/base.jsm @@ -618,7 +618,9 @@ function isObject(obj) typeof obj === "object" && obj != null || obj instanceof * any window, frame, namespace, or execution context, which * is not the case when using (obj instanceof Array). */ -var { isArray } = Array; +var isArray = + // This is bloody stupid. + function isArray(val) Array.isArray(val) || val && val.constructor && val.constructor.name === "Array"; /** * Returns true if and only if its sole argument is an