Skip to content

Commit f5c1a4f

Browse files
committed
fix tests for node 6 and 8
1 parent 0074619 commit f5c1a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/basic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test('error handling', t => {
2626

2727
function onUncaughtException (err) {
2828
t.equal(err.message, 'some error')
29-
process.off('uncaughtException', onUncaughtException)
29+
process.removeListener('uncaughtException', onUncaughtException)
3030
}
3131

3232
queueMicrotask(() => {

0 commit comments

Comments
 (0)