Add TypeError check for methods that reject falsey params.

This commit is contained in:
John-David Dalton
2016-01-02 13:52:34 -06:00
parent cd8218541a
commit 973e0812ad

View File

@@ -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;
});