Remove unnecessary defineProperty guards.

This commit is contained in:
John-David Dalton
2016-05-19 21:36:29 -07:00
parent 47635b9978
commit 9cbb50d3a6

View File

@@ -7025,7 +7025,6 @@
assert.expect(4); assert.expect(4);
lodashStable.each(['a', ['a'], { 'a': 1 }, NaN], function(value) { lodashStable.each(['a', ['a'], { 'a': 1 }, NaN], function(value) {
if (defineProperty) {
var object = {}, var object = {},
pass = true; pass = true;
@@ -7038,10 +7037,6 @@
func(object, { 'a': value }); func(object, { 'a': value });
assert.ok(pass); assert.ok(pass);
}
else {
skipAssert(assert);
}
}); });
}); });
}); });
@@ -15196,7 +15191,6 @@
QUnit.test('should skip merging when `object` and `source` are the same value', function(assert) { QUnit.test('should skip merging when `object` and `source` are the same value', function(assert) {
assert.expect(1); assert.expect(1);
if (defineProperty) {
var object = {}, var object = {},
pass = true; pass = true;
@@ -15209,10 +15203,6 @@
_.merge(object, object); _.merge(object, object);
assert.ok(pass); assert.ok(pass);
}
else {
skipAssert(assert);
}
}); });
QUnit.test('should convert values to arrays when merging arrays of `source`', function(assert) { QUnit.test('should convert values to arrays when merging arrays of `source`', function(assert) {
@@ -20081,7 +20071,6 @@
assert.expect(4); assert.expect(4);
lodashStable.each(['a', ['a'], { 'a': 1 }, NaN], function(value) { lodashStable.each(['a', ['a'], { 'a': 1 }, NaN], function(value) {
if (defineProperty) {
var object = {}, var object = {},
pass = true, pass = true,
updater = isUpdate ? lodashStable.constant(value) : value; updater = isUpdate ? lodashStable.constant(value) : value;
@@ -20095,10 +20084,6 @@
func(object, 'a', updater); func(object, 'a', updater);
assert.ok(pass); assert.ok(pass);
}
else {
skipAssert(assert);
}
}); });
}); });
}); });
@@ -24906,7 +24891,7 @@
var object = {}; var object = {};
if (!isStrict && defineProperty) { if (!isStrict) {
defineProperty(object, 'a', { defineProperty(object, 'a', {
'configurable': false, 'configurable': false,
'enumerable': true, 'enumerable': true,