Ensure the modern build version of _.isPlainObject doesn't error when passed an object created via Object.create. [closes #248]

Former-commit-id: d24641ed2562925fbbd2b64653e8e93ab1aa02bc
This commit is contained in:
John-David Dalton
2013-04-20 19:40:48 -07:00
parent 0b6993bb7c
commit 0562228e9a
4 changed files with 67 additions and 53 deletions

View File

@@ -1176,7 +1176,7 @@
// remove `support.nodeClass` from `shimIsPlainObject`
source = source.replace(matchFunction(source, 'shimIsPlainObject'), function(match) {
return match.replace(/ *&& *\(support\.nodeClass[\s\S]+?\)\)/, '');
return match.replace(/\(support\.nodeClass[\s\S]+?\)\)/, 'true');
});
// remove `support.nodeClass` from `_.clone`