From 747ed7ffb54a1fdc312d8e098c7f0e7279b18f27 Mon Sep 17 00:00:00 2001 From: Jermaine Oppong Date: Sat, 17 Sep 2016 10:35:28 +0100 Subject: [PATCH] test: Changes var to let in parallel/test-async-wrap-post-did-throw.js. Replaces equal method on assert module to strictEqual. --- test/parallel/test-async-wrap-post-did-throw.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-async-wrap-post-did-throw.js b/test/parallel/test-async-wrap-post-did-throw.js index 37f18b649da139..35dbfe1378464a 100644 --- a/test/parallel/test-async-wrap-post-did-throw.js +++ b/test/parallel/test-async-wrap-post-did-throw.js @@ -8,17 +8,17 @@ if (!common.hasCrypto) { const assert = require('assert'); const async_wrap = process.binding('async_wrap'); -var asyncThrows = 0; -var uncaughtExceptionCount = 0; +let asyncThrows = 0; +let uncaughtExceptionCount = 0; process.on('uncaughtException', (e) => { - assert.equal(e.message, 'oh noes!', 'error messages do not match'); + assert.strictEqual(e.message, 'oh noes!', 'error messages do not match'); }); process.on('exit', () => { process.removeAllListeners('uncaughtException'); - assert.equal(uncaughtExceptionCount, 1); - assert.equal(uncaughtExceptionCount, asyncThrows); + assert.strictEqual(uncaughtExceptionCount, 1); + assert.strictEqual(uncaughtExceptionCount, asyncThrows); }); function init() { }