mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
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:
2
build.js
2
build.js
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user