8000 Wrap `runInContext` in parentheses as a hint to avoid deferred parsing. · lodash/lodash@5c912bc · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c912bc

Browse files
committed
Wrap runInContext in parentheses as a hint to avoid deferred parsing.
1 parent b3742c8 commit 5c912bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lodash.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@
14071407
* // Create a suped-up `defer` in Node.js.
14081408
* var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
14091409
*/
1410-
function runInContext(context) {
1410+
var runInContext = (function runInContext(context) {
14111411
context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root;
14121412

14131413
/** Built-in constructor references. */
@@ -16860,7 +16860,7 @@
1686016860
lodash.prototype[iteratorSymbol] = wrapperToIterator;
1686116861
}
1686216862
return lodash;
16863-
}
16863+
});
1686416864

1686516865
/*--------------------------------------------------------------------------*/
1686616866

0 commit comments

Comments
 (0)
0