Use eq in assignInDefaults.

This commit is contained in:
John-David Dalton
2015-12-29 01:29:18 -06:00
parent 20906c7bf7
commit 6798259b84

View File

@@ -2127,7 +2127,7 @@
*/ */
function assignInDefaults(objValue, srcValue, key, object) { function assignInDefaults(objValue, srcValue, key, object) {
if (objValue === undefined || if (objValue === undefined ||
(objValue === objectProto[key] && !hasOwnProperty.call(object, key))) { (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
return srcValue; return srcValue;
} }
return objValue; return objValue;