mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 22:22:30 +02:00
Ignore non-enumerable properties in set.has.
This commit is contained in:
1 parent
7d2605456c
commit
e38f408b5d
1 file changed
+2
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user