mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Add TypeError check for methods that reject falsey params.
This commit is contained in:
@@ -23122,9 +23122,8 @@
|
|||||||
try {
|
try {
|
||||||
index ? func(value) : func();
|
index ? func(value) : func();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
pass = lodashStable.includes(checkFuncs, methodName)
|
pass = !pass && (e instanceof TypeError) &&
|
||||||
? e.message == FUNC_ERROR_TEXT
|
(!lodashStable.includes(checkFuncs, methodName) || (e.message == FUNC_ERROR_TEXT));
|
||||||
: !pass;
|
|
||||||
}
|
}
|
||||||
return pass;
|
return pass;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user