mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Add existence check for runInContext. [closes #2694]
This commit is contained in:
@@ -12,7 +12,7 @@ function browserConvert(lodash, options) {
|
|||||||
return baseConvert(lodash, lodash, options);
|
return baseConvert(lodash, lodash, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof _ == 'function') {
|
if (typeof _ == 'function' && typeof _.runInContext == 'function') {
|
||||||
_ = browserConvert(_.runInContext());
|
_ = browserConvert(_.runInContext());
|
||||||
}
|
}
|
||||||
module.exports = browserConvert;
|
module.exports = browserConvert;
|
||||||
|
|||||||
Reference in New Issue
Block a user