mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Replace createWrapper references with new lodashWrapper references and refine Closure Compiler fix.
Former-commit-id: 552b98a4e9ccd42a00a980dd850e3b154cb7cd32
This commit is contained in:
@@ -32,10 +32,8 @@
|
||||
.replace(/prototype\s*=\s*{\s*valueOf\s*:\s*1\s*}/, 'prototype={valueOf:1,y:1}')
|
||||
.replace(/(document[^&]+&&)\s*(?:\w+|!\d)/, '$1!({toString:0}+"")')
|
||||
|
||||
source = source.replace(/(\w+\.prototype\s*=\s*)(\w+)(?=\.prototype;)/, function(match, left, funcName) {
|
||||
return RegExp('\\b(function ' + funcName + '|' + funcName + '=function)\\(').test(source)
|
||||
? match
|
||||
: left + /\w+(?=\.VERSION)/.exec(source);
|
||||
source = source.replace(/(\w+\.prototype\s*=\s*)\w+(?=\.prototype;)/, function(match, left) {
|
||||
return left + /\w+(?=\.VERSION)/.exec(source);
|
||||
});
|
||||
|
||||
// flip `typeof` expressions to help optimize Safari and
|
||||
|
||||
Reference in New Issue
Block a user