[gjs: 5/10] debugger: Fix bug in help command



commit 0336a67b1c27daa0467a73896e059f37f6371d68
Author: Philip Chimento <philip endlessm com>
Date:   Thu Sep 13 10:29:50 2018 -0700

    debugger: Fix bug in help command
    
    Logic error while skipping the comment and eval commands.

 modules/_bootstrap/debugger.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/modules/_bootstrap/debugger.js b/modules/_bootstrap/debugger.js
index 8c75bb6a..93abfab4 100644
--- a/modules/_bootstrap/debugger.js
+++ b/modules/_bootstrap/debugger.js
@@ -601,7 +601,8 @@ function helpCommand() {
             group.push(cmd);
         } else {
             // Don't print commands for debugging the debugger
-            if (['comment', 'eval'].includes(group[0]))
+            if ([commentCommand, evalCommand].includes(cmd) ||
+                ['comment', 'eval'].includes(group[0]))
                 continue;
             if (group.length)
                 printcmd(group);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]