mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57: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.
|
* // Create a suped-up `defer` in Node.js.
|
||||||
* var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
|
* var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
|
||||||
*/
|
*/
|
||||||
function runInContext(context) {
|
var runInContext = (function runInContext(context) {
|
||||||
context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root;
|
context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root;
|
||||||
|
|
||||||
/** Built-in constructor references. */
|
/** Built-in constructor references. */
|
||||||
@@ -16860,7 +16860,7 @@
|
|||||||
lodash.prototype[iteratorSymbol] = wrapperToIterator;
|
lodash.prototype[iteratorSymbol] = wrapperToIterator;
|
||||||
}
|
}
|
||||||
return lodash;
|
return lodash;
|
||||||
}
|
});
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user