From b0619e8dff5dcf108ee92b2b043ea7ed7fd3db3b Mon Sep 17 00:00:00 2001 From: Jason Hedrick Date: Fri, 19 Aug 2016 14:24:52 -0700 Subject: [PATCH] test: comparison operator now more strict The 'equals' comparison operator was '==' instead of the more strict '===', so it has been changed to be more strict PR-URL: https://github.com/nodejs/node/pull/8190 Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/parallel/test-timers-zero-timeout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-timers-zero-timeout.js b/test/parallel/test-timers-zero-timeout.js index 00e75b7ea8..5d72cfe85f 100644 --- a/test/parallel/test-timers-zero-timeout.js +++ b/test/parallel/test-timers-zero-timeout.js @@ -23,7 +23,7 @@ const assert = require('assert'); assert.strictEqual(a, 'foo'); assert.strictEqual(b, 'bar'); assert.strictEqual(c, 'baz'); - if (++ncalled == 3) clearTimeout(iv); + if (++ncalled === 3) clearTimeout(iv); } process.on('exit', function() {