util: moving internal helpers to internal module#2025
util: moving internal helpers to internal module#2025thefourtheye wants to merge 1 commit intonodejs:masterfrom
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
|
@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?
|
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?
|
There are other modules this might break. But it's probably their fault. |
|
Closing this as it breaks |
|
@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.