diff --git a/src/core/friendly_errors/validate_params.js b/src/core/friendly_errors/validate_params.js index d040030293..824926ba7a 100644 --- a/src/core/friendly_errors/validate_params.js +++ b/src/core/friendly_errors/validate_params.js @@ -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' : arg === undefined ? 'undefined' : typeof arg === 'number' && isNaN(arg) ? 'NaN' : arg.name || typeof arg; translationObj = { func,