Skip to content

Commit

Permalink
test: fixup parallel/test-async-wrap-post-did-throw.js
Browse files Browse the repository at this point in the history
* change var to let
* replace equal with strictEqual

PR-URL: #8625
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
graphicbeacon authored and jasnell committed Sep 22, 2016
1 parent 53835a2 commit 0a9f56a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/parallel/test-async-wrap-post-did-throw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() { }
Expand Down

0 comments on commit 0a9f56a

Please sign in to comment.