Ensure _.clone handles generators correctly.

This commit is contained in:
John-David Dalton
2015-11-29 17:00:45 -06:00
parent fdc15df3b3
commit 9bcbcc5293
2 changed files with 19 additions and 17 deletions

View File

@@ -2262,7 +2262,7 @@
}
} else {
var tag = getTag(value),
isFunc = tag == funcTag;
isFunc = tag == funcTag || tag == genTag;
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
if (isHostObject(value)) {