From 655b070d31efeea2f5580ca221167f8abc43f0e8 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 12 Feb 2023 19:14:20 +0100 Subject: [PATCH] debugger: add trailing commas in source files PR-URL: https://github.com/nodejs/node/pull/46714 Reviewed-By: Kohei Ueno Reviewed-By: Debadree Chatterjee Reviewed-By: Darshan Sen Reviewed-By: Moshe Atlow Reviewed-By: James M Snell --- lib/.eslintrc.yaml | 2 +- lib/internal/debugger/inspect_client.js | 2 +- lib/internal/debugger/inspect_repl.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index a851009c16d6e3..da38169aac2b4d 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -275,7 +275,7 @@ overrides: - ./internal/child_process/*.js - ./internal/cli_table.js - ./internal/cluster/*.js - - ./internal/debugger/inspect.js + - ./internal/debugger/*.js - ./internal/events/*.js - ./internal/fixed_queue.js - ./internal/freelist.js diff --git a/lib/internal/debugger/inspect_client.js b/lib/internal/debugger/inspect_client.js index 5c8e5ab997ddfe..e467899fb3e746 100644 --- a/lib/internal/debugger/inspect_client.js +++ b/lib/internal/debugger/inspect_client.js @@ -182,7 +182,7 @@ class Client extends EventEmitter { const { closed, payload: payloadBuffer, - rest + rest, } = decodeFrameHybi17(this._unprocessed); this._unprocessed = rest; diff --git a/lib/internal/debugger/inspect_repl.js b/lib/internal/debugger/inspect_repl.js index babf5817d544f4..a1b3f0d705ec4c 100644 --- a/lib/internal/debugger/inspect_repl.js +++ b/lib/internal/debugger/inspect_repl.js @@ -67,7 +67,7 @@ const SHORTCUTS = { setBreakpoint: 'sb', clearBreakpoint: 'cb', run: 'r', - exec: 'p' + exec: 'p', }; const HELP = StringPrototypeTrim(` @@ -544,7 +544,7 @@ function createRepl(inspector) { ArrayPrototypeMap(this, (callFrame, idx) => { const { location: { scriptId, lineNumber, columnNumber }, - functionName + functionName, } = callFrame; const name = functionName || '(anonymous)';