| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
common.mustCall() takes an optional second argument that specifies the number of times the function should be called. You could use that here, and then completely remove the process.on('exit', ...) block.
Sorry, something went wrong.
|
adjusted |
Sorry, something went wrong.
There was a problem hiding this comment.
I don't think you can drop this check. It changes the behavior. The server will be closed the first time instead of the second.
Sorry, something went wrong.
refactor var -> const/let
refactor process.on('exit') into common.mustCall
|
adjusted |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM pending CI.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM pending CI (will run the CI soon, just waiting for other jobs to finish)
Sorry, something went wrong.
Sorry, something went wrong.
|
Single CI failure is unrelated. |
Sorry, something went wrong.
refactor var -> const/let
refactor process.on('exit') into common.mustCall
PR-URL: nodejs#9934
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
|
Landed in d648f2b. |
Sorry, something went wrong.
refactor var -> const/let
refactor process.on('exit') into common.mustCall
PR-URL: #9934
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
refactor var -> const/let
refactor process.on('exit') into common.mustCall
PR-URL: nodejs#9934
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
refactor var -> const/let
refactor process.on('exit') into common.mustCall
PR-URL: nodejs#9934
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
refactor var -> const/let
refactor process.on('exit') into common.mustCall
PR-URL: #9934
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
refactor var -> const/let
refactor process.on('exit') into common.mustCall
PR-URL: #9934
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
refactor var -> const/let
refactor process.on('exit') into common.mustCall
PR-URL: #9934
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
test: refactor to const/let and common.mustCall
Checklist
Affected core subsystem(s)
test
Description of change
task assigned at NINA 2016 Austin code and learn
refactor var -> const/let
refactor process.on('exit') into common.mustCall