Skip to content

Commit

Permalink
test: favor === over == in vm test
Browse files Browse the repository at this point in the history
PR-URL: #8191
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
  • Loading branch information
jun-oka authored and fhinkel committed Aug 21, 2016
1 parent f6a7434 commit ce8753a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-vm-sigint-existing-handler.js
Expand Up @@ -43,7 +43,7 @@ if (process.argv[2] === 'child') {

process.on('SIGINT', common.mustCall(() => {
// Handler attached _after_ execution.
if (afterHandlerCalled++ == 0) {
if (afterHandlerCalled++ === 0) {
// The first time it just bounces back to check that the `once()`
// handler is not called the second time.
process.kill(parent, 'SIGUSR2');
Expand Down

0 comments on commit ce8753a

Please sign in to comment.