From e38f408b5dea231af873ef8c0620439c2651001a Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 1 Feb 2011 19:19:29 +1100 Subject: [PATCH] Ignore non-enumerable properties in set.has. --- common/modules/base.jsm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/modules/base.jsm b/common/modules/base.jsm index 593b6379..badf93f8 100644 --- a/common/modules/base.jsm +++ b/common/modules/base.jsm @@ -365,7 +365,8 @@ set.add = function (set, key) { * @param {string} key The key to check. * @returns {boolean} */ -set.has = function (set, key) hasOwnProperty.call(set, key); +set.has = function (set, key) hasOwnProperty.call(set, key) && + objproto.propertyIsEnumerable.call(set, key); /** * Returns a new set containing the members of the first argument which * do not exist in any of the other given arguments.