Skip to content

Commit

Permalink
fix misleading error message when NaN passed
Browse files Browse the repository at this point in the history
  • Loading branch information
capGoblin committed Oct 9, 2023
1 parent fbfac7e commit 6fb00c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/friendly_errors/validate_params.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ if (typeof IS_MINIFIED !== 'undefined') {
const argType =
arg instanceof Array
? 'array'
: arg === null ? 'null' : arg.name || typeof arg;
: arg === null ? 'null' : isNaN(arg) ? 'NaN' : arg.name || typeof arg;

translationObj = {
func,
Expand Down

0 comments on commit 6fb00c6

Please sign in to comment.