Ensure clone methods clone expando properties of boolean, number, & string objects. [closes #2008]

This commit is contained in:
John-David Dalton
2016-02-16 20:39:44 -08:00
parent 664d66a89e
commit 7b93dc9c32
2 changed files with 27 additions and 5 deletions

View File

@@ -2318,9 +2318,10 @@
return copySymbols(value, baseAssign(result, value));
}
} else {
return cloneableTags[tag]
? initCloneByTag(value, tag, isDeep)
: (object ? value : {});
if (!cloneableTags[tag]) {
return object ? value : {};
}
result = initCloneByTag(value, tag, isDeep);
}
}
// Check for circular references and return its corresponding clone.