diff options
Diffstat (limited to 'common/modules/base.jsm')
-rw-r--r-- | common/modules/base.jsm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/modules/base.jsm b/common/modules/base.jsm index 071688eb..caaab70b 100644 --- a/common/modules/base.jsm +++ b/common/modules/base.jsm @@ -427,7 +427,7 @@ function isinstance(object, interfaces) { if (objproto.toString.call(object) === "[object " + interfaces[i] + "]") return true; } - else if ("isinstance" in object && object.isinstance !== isinstance) { + else if (typeof object === "object" && "isinstance" in object && object.isinstance !== isinstance) { if (object.isinstance(interfaces[i])) return true; } |