From d45462864624f62bb3859bb7f44a365cd5ac2d23 Mon Sep 17 00:00:00 2001 From: capGoblin Date: Tue, 10 Oct 2023 17:44:36 +0530 Subject: [PATCH] add check for undefined --- src/core/friendly_errors/validate_params.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/friendly_errors/validate_params.js b/src/core/friendly_errors/validate_params.js index b3b1171863..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' : typeof arg === 'number' && isNaN(arg) ? 'NaN' : arg.name || typeof arg; + : arg === null ? 'null' : arg === undefined ? 'undefined' : typeof arg === 'number' && isNaN(arg) ? 'NaN' : arg.name || typeof arg; translationObj = { func,