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