diff --git a/test/parallel/test-async-wrap-post-did-throw.js b/test/parallel/test-async-wrap-post-did-throw.js index 9781983f58..15a262af1c 100644 --- a/test/parallel/test-async-wrap-post-did-throw.js +++ b/test/parallel/test-async-wrap-post-did-throw.js @@ -3,17 +3,17 @@ require('../common'); 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() { }