node/doc/api
geek e13d1df89b
assert: support custom errors
This commit adds special handling of Error instances when passed
as the message argument to assert functions. With this commit,
if an Error is passed as the message, then that Error is thrown
instead of an AssertionError.

PR-URL: https://github.com/nodejs/node/pull/15304
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2017-09-12 15:02:00 -04:00
..
_toc.md doc: add ESM doc to _toc.md and all.md 2017-09-08 06:34:47 +03:00
addons.md test,doc: make module name match gyp target name 2017-09-10 00:15:49 +03:00
all.md doc: add ESM doc to _toc.md and all.md 2017-09-08 06:34:47 +03:00
assert.md assert: support custom errors 2017-09-12 15:02:00 -04:00
async_hooks.md doc: fix link in async_hooks.md 2017-06-26 22:41:01 +03:00
buffer.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
child_process.md doc,lib,src,test: strip executable bits off files 2017-09-01 10:09:41 -07:00
cli.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
cluster.md doc: fix some internal links 2017-09-12 17:03:30 +03:00
console.md 2017-09-12, Version 8.5.0 (Current) 2017-09-12 17:34:51 +02:00
crypto.md doc: fix some internal links 2017-09-12 17:03:30 +03:00
debugger.md doc: fix some internal links 2017-09-12 17:03:30 +03:00
deprecations.md doc: fix some internal links 2017-09-12 17:03:30 +03:00
dgram.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
dns.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
documentation.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
domain.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
errors.md doc: fix some internal links 2017-09-12 17:03:30 +03:00
esm.md module: Allow runMain to be ESM 2017-09-07 15:18:32 -05:00
events.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
fs.md 2017-09-12, Version 8.5.0 (Current) 2017-09-12 17:34:51 +02:00
globals.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
http2.md 2017-09-12, Version 8.5.0 (Current) 2017-09-12 17:34:51 +02:00
http.md net: multiple listen() events fail silently 2017-09-04 12:41:54 +02:00
https.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
index.md doc: git mv to .md 2016-04-20 16:34:27 -07:00
inspector.md doc: fix some broken references 2017-07-02 21:44:46 +02:00
intl.md doc: environmental->environment & NodeJS->Node.js 2017-08-24 15:17:29 -07:00
modules.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
n-api.md 2017-09-12, Version 8.5.0 (Current) 2017-09-12 17:34:51 +02:00
net.md net: multiple listen() events fail silently 2017-09-04 12:41:54 +02:00
os.md src: add support to pass flags to dlopen 2017-09-08 17:14:03 -04:00
path.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
perf_hooks.md 2017-09-12, Version 8.5.0 (Current) 2017-09-12 17:34:51 +02:00
process.md doc: fix some internal links 2017-09-12 17:03:30 +03:00
punycode.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
querystring.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
readline.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
repl.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
stream.md doc: fix some internal links 2017-09-12 17:03:30 +03:00
string_decoder.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
synopsis.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
timers.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
tls.md tls: multiple PFX in createSecureContext 2017-09-07 21:48:46 -03:00
tracing.md src: Node Tracing Controller 2016-12-20 12:31:09 -08:00
tty.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
url.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
util.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
v8.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
vm.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00
zlib.md doc: add links to alternative versions of doc 2017-08-28 11:17:08 +02:00