Fix the build to work with _.merge.

Former-commit-id: cb1d9897b97b357197bb6933c65f4afbecea1aea
This commit is contained in:
John-David Dalton
2012-08-04 17:13:09 -07:00
parent b7374e3f8e
commit dff950748c
2 changed files with 69 additions and 42 deletions

View File

@@ -888,6 +888,11 @@
source = source.replace(reFunc, '$1' + getFunctionSource(lodash[funcName]) + ';\n');
});
// replace `callee` in `_.merge` with `merge`
source = source.replace(matchFunction(source, 'merge'), function(match) {
return match.replace(/\bcallee\b/g, 'merge');
});
// remove JScript [[DontEnum]] fix from `_.isEqual`
source = source.replace(/(?:\s*\/\/.*)*\n( +)if *\(hasDontEnumBug[\s\S]+?\n\1}/, '');