Fix createSet feature test for Safari 8.

This commit is contained in:
John-David Dalton
2016-04-20 07:49:24 -07:00
parent e3566eb1ce
commit b21a87b50f

View File

@@ -4880,7 +4880,7 @@
* @param {Array} values The values to add to the set.
* @returns {Object} Returns the new set.
*/
var createSet = !(Set && (1 / setToArray(new Set([-0]))[0]) == INFINITY) ? noop : function(values) {
var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
return new Set(values);
};