From 334910216e62ac32bc6ccbead9a2a6c7966506a2 Mon Sep 17 00:00:00 2001 From: Deven Bansod Date: Mon, 17 Oct 2016 13:36:09 +0530 Subject: [PATCH] Check if the function actually has arguments or not Fix #12639 Signed-off-by: Deven Bansod --- js/console.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/console.js b/js/console.js index 79aedb448e..ad5893bd4e 100644 --- a/js/console.js +++ b/js/console.js @@ -1235,7 +1235,7 @@ PMA_consoleDebug = { functionName += dbgStep.type; } functionName += dbgStep.function; - if (dbgStep.args.length) { + if (dbgStep.args && dbgStep.args.length) { functionName += '(...)'; } else { functionName += '()'; @@ -1303,7 +1303,7 @@ PMA_consoleDebug = { .append( $('').text(this._formatFileName(step)) ); - if (step.args.length) { + if (step.args && step.args.length) { $stepElem .append( $('').html(this._formatFunctionArgs(step))