diff options
author | Brian White <mscdex@mscdex.net> | 2016-05-29 14:39:29 -0400 |
---|---|---|
committer | Brian White <mscdex@mscdex.net> | 2016-06-07 00:27:42 -0400 |
commit | 3b8ec68a3a4cb014fdc7770bb0fec5248aee2691 (patch) | |
tree | ec30ae0ba6342c3ef770704a799b0a38b9ae6ca7 /lib/domain.js | |
parent | e18a9264f3cf7bad47d1887eabe86c4a74c58a6b (diff) | |
download | node-new-3b8ec68a3a4cb014fdc7770bb0fec5248aee2691.tar.gz |
domain: add message for dispose deprecation
PR-URL: https://github.com/nodejs/node/pull/7053
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/domain.js')
-rw-r--r-- | lib/domain.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/domain.js b/lib/domain.js index d6958b2c30..355c09c6e9 100644 --- a/lib/domain.js +++ b/lib/domain.js @@ -314,4 +314,5 @@ Domain.prototype.dispose = util.deprecate(function() { // mark this domain as 'no longer relevant' // so that it can't be entered or activated. this._disposed = true; -}); +}, 'Domain.dispose is deprecated. Recover from failed I/O actions explicitly ' + + 'via error event handlers set on the domain instead.'); |