Uh oh!
There was an error while loading. Please reload this page.
util: moving internal helpers to internal module - #2025
Conversation
There was a problem hiding this comment.
Wouldn't this break graceful-fs again?
There was a problem hiding this comment.
It would. It's probably better to add a test for this to prevent accidental breakage
vkurchatkin
commented
Jun 20, 2015
@cjihrig why semver-major? |
There was a problem hiding this comment.
Since this is going into an internal module, it doesn't need the underscore name.
Also, can we name the function (exports.errnoException = function errnoException(..) {) so we don't have to deal with exports.errnoException() below?
brendanashworth
commented
Jun 21, 2015
I'm going to relabel this as semver-minor as backwards compatibility is kept. |
1. Moving `_errnoException` and `_exceptionWithHostPort` to `internal/util` module as they are internal helper functions. They should not be exposed as part of the `util` module. 2. Issuing a deprecation warning when those functions are used.
There was a problem hiding this comment.
Isn't this useful for making errors from libuv bindings in userland?
ChALkeR
commented
Jun 21, 2015
There are other modules this might break. But it's probably their fault. |
thefourtheye
commented
Jun 21, 2015
Closing this as it breaks |
ChALkeR
commented
Aug 17, 2016
@thefourtheye Perhaps it's time to reopen and revisit, as #6413 is going to be landed soon? We would probably need a deprecation message on |
@thefourtheye, #6413 landed, nothing is blocking this anymore. Do you wish to redo/reopen this PR? |
_errnoExceptionand_exceptionWithHostPorttointernal/utilmodule as they are internal helper functions. Theyshould not be exposed as part of the
utilmodule.