node/doc/api
Julian Dax 38e6ac7b44
doc: improve example for Error.captureStackTrace()
Change the `MyError` example so that instances of `MyError`are
`instanceof Error` and also  native errors when checked with
`util.types.isNativeError()`.

Co-authored-by: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: https://github.com/nodejs/node/pull/46886
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2023-03-26 20:38:27 +00:00
..
addons.md doc: use "file system" instead of "filesystem" 2023-01-14 01:10:38 +00:00
assert.md assert,util: revert recursive breaking change 2023-02-20 15:47:08 +01:00
async_context.md doc: fix typos in async_context.md 2023-03-20 22:21:03 +00:00
async_hooks.md doc: fix fs missing import 2023-03-03 23:46:12 +00:00
buffer.md buffer: graduate File from experimental and expose as global 2023-03-22 19:28:12 +00:00
child_process.md doc: abort controller emits error in child process 2023-01-07 08:01:47 +00:00
cli.md test_runner: support defining test reporter in NODE_OPTIONS 2023-03-14 16:59:35 +00:00
cluster.md doc: use os.availableParallelism() in async_context and cluster 2022-12-28 11:45:10 +00:00
console.md doc: use serial comma in console docs 2022-05-31 14:57:50 +01:00
corepack.md doc: mention corepack prepare supports tag or range 2022-10-10 02:47:39 +02:00
crypto.md crypto: remove DEFAULT_ENCODING 2023-03-26 18:03:58 +00:00
debugger.md debugger: improve validations and documents for watch and unwatch 2023-03-13 04:29:53 +00:00
deprecations.md crypto: remove DEFAULT_ENCODING 2023-03-26 18:03:58 +00:00
dgram.md 2022-12-13, Version 16.19.0 'Gallium' (LTS) 2022-12-13 08:01:09 -05:00
diagnostics_channel.md doc: fix history information for node:diagnostics_channel 2023-03-08 08:47:10 +00:00
dns.md doc: update to match changed --dns-result-order default 2023-01-17 00:56:07 +01:00
documentation.md doc: add experimental stages 2023-01-14 14:25:08 +00:00
domain.md doc: add node: prefix for all core modules 2022-04-20 10:23:41 +02:00
embedding.md src: add detailed embedder process initialization API 2022-08-05 19:46:08 +00:00
errors.md doc: improve example for Error.captureStackTrace() 2023-03-26 20:38:27 +00:00
esm.md doc: fix typo on esm loaders example 2023-03-10 17:09:54 +00:00
events.md events: add getMaxListeners method 2023-03-19 12:58:19 +00:00
fs.md doc: clarify that fs.create{Read,Write}Stream support AbortSignal 2023-03-18 17:21:51 +00:00
globals.md doc: update output of example in AbortController 2023-03-25 22:46:05 +09:00
http2.md doc: fix port of destination server is not defined in http2 2023-03-06 00:29:27 +00:00
http.md doc: clarify http error events after calling destroy() 2023-03-26 20:30:05 +00:00
https.md doc: https update default request timeout 2023-01-13 08:32:19 +00:00
index.md src: add initial support for single executable applications 2023-02-18 02:49:18 +00:00
inspector.md doc: add tip for session.post function 2023-01-29 03:32:23 +00:00
intl.md doc: fix icu-small example 2022-06-30 09:34:10 -04:00
module.md lib: codify findSourceMap return value when not found 2022-08-27 23:13:53 +00:00
modules.md doc: use "file system" instead of "filesystem" 2023-01-14 01:10:38 +00:00
n-api.md node-api: extend type-tagging to externals 2023-03-22 04:47:08 +00:00
net.md 2023-03-14, Version 19.8.0 (Current) 2023-03-14 19:52:10 +01:00
os.md 2023-02-02, Version 18.14.0 'Hydrogen' (LTS) 2023-02-02 14:08:50 -05:00
packages.md doc: fix typos in packages.md 2022-12-24 21:04:19 +01:00
path.md doc: add lint rule to enforce trailing commas 2022-11-17 13:19:12 +00:00
perf_hooks.md doc: indicate that name is no longer an optional argument 2023-03-17 12:48:53 +00:00
permissions.md src,process: add permission model 2023-02-23 18:11:51 +00:00
policy.md doc: move policy docs to the permissions scope 2022-09-05 16:07:45 +00:00
process.md 2023-03-07, Version 18.15.0 'Hydrogen' (LTS) 2023-03-07 14:52:01 -05:00
punycode.md doc: format doc/api/*.md with markdown formatter 2021-10-20 11:59:11 +02:00
querystring.md doc: remove Legacy status from querystring 2022-10-09 15:22:50 +00:00
readline.md doc: add lint rule to enforce trailing commas 2022-11-17 13:19:12 +00:00
repl.md doc: update error message of example in repl 2022-12-24 20:09:54 +00:00
report.md doc: use "file system" instead of "filesystem" 2023-01-14 01:10:38 +00:00
single-executable-applications.md doc,test: extend the list of platforms supported by single-executables 2023-03-11 08:58:52 +00:00
stream.md doc: update stream.reduce concurrency note 2023-03-24 11:27:55 +00:00
string_decoder.md doc: add node: prefix for all core modules 2022-04-20 10:23:41 +02:00
synopsis.md doc: use ASCII apostrophes consistently 2022-05-17 20:04:51 +01:00
test.md 2023-03-14, Version 19.8.0 (Current) 2023-03-14 19:52:10 +01:00
timers.md doc: use console.error for error case in timers and tls 2023-01-01 06:41:28 +00:00
tls.md 2023-03-14, Version 19.8.0 (Current) 2023-03-14 19:52:10 +01:00
tracing.md src: trace threadpool event 2022-11-01 04:21:13 +00:00
tty.md doc: add node: prefix for all core modules 2022-04-20 10:23:41 +02:00
url.md url: implement URL.canParse 2023-03-22 19:44:44 +00:00
util.md doc: improve documentation for util.types.isNativeError() 2023-03-18 13:13:37 +00:00
v8.md 2023-03-07, Version 18.15.0 'Hydrogen' (LTS) 2023-03-07 14:52:01 -05:00
vm.md 2023-03-07, Version 18.15.0 'Hydrogen' (LTS) 2023-03-07 14:52:01 -05:00
wasi.md 2023-03-14, Version 19.8.0 (Current) 2023-03-14 19:52:10 +01:00
webcrypto.md crypto: use WebIDL converters in WebCryptoAPI 2023-01-17 08:57:58 +00:00
webstreams.md doc: remove unused functions from example of streamConsumers.text 2023-02-13 03:46:03 +00:00
worker_threads.md 2023-03-14, Version 19.8.0 (Current) 2023-03-14 19:52:10 +01:00
zlib.md doc: add lint rule to enforce trailing commas 2022-11-17 13:19:12 +00:00