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