8000 Add existence check for `runInContext`. [closes #2694] · lodash/lodash@01c0950 · GitHub
[go: up one dir, main page]

Skip to content

Commit 01c0950

Browse files
committed
Add existence check for runInContext. [closes #2694]
1 parent 20fa523 commit 01c0950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fp/_convertBrowser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function browserConvert(lodash, options) {
1212
return baseConvert(lodash, lodash, options);
1313
}
1414

15-
if (typeof _ == 'function') {
15+
if (typeof _ == 'function' && typeof _.runInContext == 'function') {
1616
_ = browserConvert(_.runInContext());
1717
}
1818
module.exports = browserConvert;

0 commit comments

Comments
 (0)
0