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 <[email protected]>
Reviewed-By: Debadree Chatterjee <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
aduh95 authored and targos committed Mar 13, 2023
1 parent 4df0084 commit 83b529f
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 @@ -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
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 83b529f

Please sign in to comment.