mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Wrap runInContext in parentheses as a hint to avoid deferred parsing.
This commit is contained in:
@@ -1407,7 +1407,7 @@
|
||||
* // Create a suped-up `defer` in Node.js.
|
||||
* var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
|
||||
*/
|
||||
function runInContext(context) {
|
||||
var runInContext = (function runInContext(context) {
|
||||
context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root;
|
||||
|
||||
/** Built-in constructor references. */
|
||||
@@ -16860,7 +16860,7 @@
|
||||
lodash.prototype[iteratorSymbol] = wrapperToIterator;
|
||||
}
|
||||
return lodash;
|
||||
}
|
||||
});
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user