Skip to content

Commit 3b8ec68

Browse files
committed
domain: add message for dispose deprecation
PR-URL: #7053 Reviewed-By: James M Snell <[email protected]>
1 parent e18a926 commit 3b8ec68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/domain.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,5 @@ Domain.prototype.dispose = util.deprecate(function() {
314314
// mark this domain as 'no longer relevant'
315315
// so that it can't be entered or activated.
316316
this._disposed = true;
317-
});
317+
}, 'Domain.dispose is deprecated. Recover from failed I/O actions explicitly ' +
318+
'via error event handlers set on the domain instead.');

0 commit comments

Comments
 (0)