0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Michael Dawson ac41db4af0 n-api: add code parameter to error helpers
In support of the effort to add error codes to all errors
generated by Node.js, add an optional code parameter to the
helper functions used to throw/create errors in N-API.

PR-URL: https://github.com/nodejs/node/pull/13988
Fixes: https://github.com/nodejs/node/issues/13933
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2017-07-13 15:05:19 -04:00
..
internal n-api: add code parameter to error helpers 2017-07-13 15:05:19 -04:00
_http_agent.js http: guard against failed sockets creation 2017-07-03 15:15:43 -04:00
_http_client.js benchmark,lib,test: use braces for multiline block 2017-06-23 14:43:20 -07:00
_http_common.js lib: implement async_hooks API in core 2017-05-10 22:22:29 +02:00
_http_incoming.js http: suppress data event if req aborted 2017-05-31 10:39:17 +02:00
_http_outgoing.js benchmark,lib,test: use braces for multiline block 2017-06-23 14:43:20 -07:00
_http_server.js lib: fix off-by-one indentation 2017-07-04 06:49:05 -07:00
_stream_duplex.js stream: add destroy and _destroy methods. 2017-05-22 08:34:14 +02:00
_stream_passthrough.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_stream_readable.js lib: use consistent indentation for ternaries 2017-07-07 06:57:16 -07:00
_stream_transform.js stream: use more explicit statements 2017-06-29 18:03:54 +02:00
_stream_wrap.js stream: use more explicit statements 2017-06-29 18:03:54 +02:00
_stream_writable.js stream: avoid possible slow path w UInt8Array 2017-06-30 19:17:54 +02:00
_tls_common.js lib: correct typo in createSecureContext 2017-06-13 09:05:43 -07:00
_tls_legacy.js lib: normalize indentation in parentheses 2017-07-10 11:55:35 -07:00
_tls_wrap.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
.eslintrc.yaml tools: eslint - use error and off 2017-07-05 16:41:19 -04:00
assert.js assert: refactor to reduce unecessary code paths 2017-07-09 14:16:34 -04:00
async_hooks.js async_hooks: make AsyncResource match emitInit 2017-07-13 14:15:06 +02:00
buffer.js errors,buffer: port errors to internal/errors 2017-07-12 17:00:30 -04:00
child_process.js child_process: refactor normalizeSpawnArguments() 2017-07-12 12:09:43 -07:00
cluster.js lib: use consistent indentation for ternaries 2017-07-07 06:57:16 -07:00
console.js console: use a plain object for the the error stack 2017-06-22 14:12:51 -04:00
constants.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
crypto.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
dgram.js dgram,process,util: refactor Error to TypeError 2017-06-28 20:00:36 +02:00
dns.js dns: make dns.setServers support customized port 2017-06-20 18:42:25 -04:00
domain.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
events.js lib: "iff" changed to "if and only if" 2017-06-06 14:38:28 -04:00
fs.js fs: two minor optimizations 2017-07-09 13:41:30 -04:00
http.js http: use more efficient module.exports pattern 2017-03-20 16:01:31 -07:00
https.js https: make opts optional & immutable when create 2017-06-14 15:14:34 -04:00
inspector.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
module.js inspector: --debug* deprecation and invalidation 2017-05-29 11:33:59 -04:00
net.js async-hooks,net: ensure asyncId=null if no handle 2017-07-05 15:51:08 +02:00
os.js os: refactor os structure, add Symbol.toPrimitive 2017-05-01 11:44:56 -07:00
path.js path: fix incorrect use of ERR_INVALID_ARG_TYPE 2017-07-03 16:28:02 +02:00
process.js
punycode.js lib: remove let from for loops 2016-10-04 12:17:32 -04:00
querystring.js querystring: fix up lastPos usage 2017-07-12 12:12:48 +08:00
readline.js lib: normalize indentation in parentheses 2017-07-10 11:55:35 -07:00
repl.js repl: fix crash with large buffer tab completion 2017-07-07 13:03:44 +08:00
stream.js stream: support Uint8Array input to methods 2017-05-27 11:19:39 +02:00
string_decoder.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
sys.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
timers.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
tls.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
tty.js lib: fix typos 2017-06-19 18:18:56 +02:00
url.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
util.js lib: remove excess indentation 2017-07-07 13:18:19 -07:00
v8.js v8: add new to the throw statement 2017-06-28 20:00:42 +02:00
vm.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
zlib.js zlib: improve performance 2017-06-13 11:48:59 -07:00