Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
repl: remove unused variable from try catch
Catch statement defines err variable that is never used, so it
is safe to remove that.

PR-URL: #23452
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
  • Loading branch information
mmisiarek authored and Trott committed Oct 13, 2018
commit c301518a456f36382a73ed9e36816061107b2444
2 changes: 1 addition & 1 deletion lib/internal/repl/await.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function processTopLevelAwait(src) {
let root;
try {
root = acorn.parse(wrapped, { ecmaVersion: 10 });
} catch (err) {
} catch {
return null;
}
const body = root.body[0].expression.callee.body;
Expand Down