Skip to content

Commit 1b494d3

Browse files
graphicbeaconFishrock123
authored andcommitted
test: fixup parallel/test-async-wrap-post-did-throw.js
* 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>
1 parent 0310655 commit 1b494d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/parallel/test-async-wrap-post-did-throw.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
require('../common');
44
const assert = require('assert');
55
const async_wrap = process.binding('async_wrap');
6-
var asyncThrows = 0;
7-
var uncaughtExceptionCount = 0;
6+
let asyncThrows = 0;
7+
let uncaughtExceptionCount = 0;
88

99
process.on('uncaughtException', (e) => {
10-
assert.equal(e.message, 'oh noes!', 'error messages do not match');
10+
assert.strictEqual(e.message, 'oh noes!', 'error messages do not match');
1111
});
1212

1313
process.on('exit', () => {
1414
process.removeAllListeners('uncaughtException');
15-
assert.equal(uncaughtExceptionCount, 1);
16-
assert.equal(uncaughtExceptionCount, asyncThrows);
15+
assert.strictEqual(uncaughtExceptionCount, 1);
16+
assert.strictEqual(uncaughtExceptionCount, asyncThrows);
1717
});
1818

1919
function init() { }

0 commit comments

Comments
 (0)