Skip to content

Commit

Permalink
debugger: add trailing commas in source files
Browse files Browse the repository at this point in the history
PR-URL: #46714
Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
aduh95 authored and danielleadams committed Apr 5, 2023
1 parent 6ff9027 commit 44375c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/.eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,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
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/debugger/inspect_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class Client extends EventEmitter {
const {
closed,
payload: payloadBuffer,
rest
rest,
} = decodeFrameHybi17(this._unprocessed);
this._unprocessed = rest;

Expand Down
4 changes: 2 additions & 2 deletions lib/internal/debugger/inspect_repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const SHORTCUTS = {
setBreakpoint: 'sb',
clearBreakpoint: 'cb',
run: 'r',
exec: 'p'
exec: 'p',
};

const HELP = StringPrototypeTrim(`
Expand Down Expand Up @@ -544,7 +544,7 @@ function createRepl(inspector) {
ArrayPrototypeMap(this, (callFrame, idx) => {
const {
location: { scriptId, lineNumber, columnNumber },
functionName
functionName,
} = callFrame;
const name = functionName || '(anonymous)';

Expand Down

0 comments on commit 44375c6

Please sign in to comment.