summaryrefslogtreecommitdiff
path: root/test/parallel/test-vm-sigint-existing-handler.js
diff options
context:
space:
mode:
authorjun-oka <o_askgulf@icloud.com>2016-08-19 14:13:15 -0700
committerFranziska Hinkelmann <franzih@chromium.org>2016-08-21 12:59:32 +0200
commitce8753a4cef57d94fb46b6a76a2bf59a8e969fbb (patch)
tree177e1148fbb0b86efe1bb88b10bcf34d97d6dc27 /test/parallel/test-vm-sigint-existing-handler.js
parentf6a74345d1caa27209a81c7a9724db283b0fc84b (diff)
downloadnode-new-ce8753a4cef57d94fb46b6a76a2bf59a8e969fbb.tar.gz
test: favor `===` over `==` in vm test
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test/parallel/test-vm-sigint-existing-handler.js')
-rw-r--r--test/parallel/test-vm-sigint-existing-handler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-vm-sigint-existing-handler.js b/test/parallel/test-vm-sigint-existing-handler.js
index c0ab1f8d92..10df3888d3 100644
--- a/test/parallel/test-vm-sigint-existing-handler.js
+++ b/test/parallel/test-vm-sigint-existing-handler.js
@@ -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');