0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal
Michael Dawson e912c67d24 dgram: convert to using internal/errors
Covert lib/dgram.js over to using lib/internal/errors.js
for generating Errors. See
[using-internal-errors.md](https://github.com/nodejs/node/blob/master/doc/guides/using-internal-errors.md)
for more details.

I have not addressed the cases that use errnoException() and
exceptionWithHostPort() helper methods as changing these would require
fixing the tests across all of the different files that use them. In
addition, these helpers already add a `code` to the Error and we'll
have to discuss how that interacts with the `code` used by
lib/internal/errors.js.  I believe we should convert all users
of errnoException and exceptionWithHostPort in a PR dedicated to
that conversion.

PR-URL: https://github.com/nodejs/node/pull/12926
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben.bridgewater@fintura.de>
2017-05-24 10:16:46 -04:00
..
cluster cluster: remove debug arg handling 2017-05-02 14:58:22 -07:00
process stream: add destroy and _destroy methods. 2017-05-22 08:34:14 +02:00
streams stream: fix destroy(err, cb) regression 2017-05-24 11:21:03 +02:00
test test: add Unicode characters regression test 2017-04-04 11:14:14 -07:00
bootstrap_node.js cmd: support dash as stdin alias 2017-05-23 20:41:13 +02:00
buffer.js
child_process.js errors, child_process: migrate to using internal/errors 2017-04-27 15:44:14 -07:00
errors.js dgram: convert to using internal/errors 2017-05-24 10:16:46 -04:00
freelist.js freelist: simplify export 2017-05-01 11:18:51 -07:00
fs.js fs: simplify constant decls 2017-05-01 11:18:46 -07:00
http.js http: avoid retaining unneeded memory 2017-03-22 10:26:02 -07:00
linkedlist.js linkedlist: remove unused methods 2017-04-04 10:59:44 -07:00
module.js async_hooks: initial async_hooks implementation 2017-05-10 22:22:26 +02:00
net.js net: add symbol to normalized connect() args 2017-05-19 11:22:40 -04:00
process.js process: refactor internal/process.js export style 2017-05-01 11:18:31 -07:00
querystring.js lib: use Object.create(null) directly 2017-03-24 15:25:49 -07:00
readline.js readline: move escape codes into internal/readline 2017-05-07 22:54:26 +02:00
readme.md doc: limit lines to 80 cols in internal README 2017-04-13 15:30:10 -07:00
repl.js repl: fix /dev/null history file regression 2017-05-02 18:47:16 -04:00
socket_list.js
url.js url: fix permanent deoptimizations 2017-04-30 03:17:47 -04:00
util.js util: fixup internal util exports 2017-05-15 08:26:57 -07:00
v8_prof_polyfill.js
v8_prof_processor.js

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These are subject to change at any time. Reliance on these modules outside of core is not supported in any way.