From ce8753a4cef57d94fb46b6a76a2bf59a8e969fbb Mon Sep 17 00:00:00 2001 From: jun-oka Date: Fri, 19 Aug 2016 14:13:15 -0700 Subject: [PATCH] test: favor `===` over `==` in vm test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/8191 Reviewed-By: Rich Trott Reviewed-By: Anna Henningsen Reviewed-By: Myles Borins Reviewed-By: Colin Ihrig Reviewed-By: jbergstroem - Johan Bergström Reviewed-By: James M Snell Reviewed-By: Franziska Hinkelmann --- test/parallel/test-vm-sigint-existing-handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-vm-sigint-existing-handler.js b/test/parallel/test-vm-sigint-existing-handler.js index c0ab1f8d92b..10df3888d38 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');