node/doc/api
Denis Zavershinskiy 49cf67efd6 doc: update experimental loader hooks example code
It fix 2 issues in provided Loader hooks examples:
1. Original ``new URL(`${process.cwd()}/`, 'file://');``
is not cross-platform, it gives wrong URL on windows
2. Based on `CHECK` in ModuleWrap::Resolve (node 12.9.1,
https://github.com/nodejs/node/blob/v12.9.1/src/module_wrap.cc#L1132)
the 2nd parameter should be a `string`, not an `URL` object

PR-URL: https://github.com/nodejs/node/pull/29373
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2019-09-17 09:49:55 -07:00
..
addons.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
assert.md doc: space around lists 2019-09-09 16:45:24 -07:00
async_hooks.md doc: async_hooks.createHook promiseResolve option 2019-09-06 06:05:58 +02:00
buffer.md doc: start unorded lists at start of line 2019-09-03 20:55:39 -07:00
child_process.md doc: start unorded lists at start of line 2019-09-03 20:55:39 -07:00
cli.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
cluster.md doc: exitedAfterDisconnect value can be false 2019-09-09 05:47:45 +02:00
console.md doc: space around lists 2019-09-09 16:45:24 -07:00
crypto.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
debugger.md doc: change the 'txt' to 'console' for a command 2019-09-03 14:21:34 -07:00
deprecations.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
dgram.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
dns.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
documentation.md doc: remove multiple consecutive blank lines 2019-08-31 15:27:58 -07:00
domain.md doc: add extends for derived classes 2019-09-01 08:18:10 -07:00
errors.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
esm.md doc: update experimental loader hooks example code 2019-09-17 09:49:55 -07:00
events.md doc: space around lists 2019-09-09 16:45:24 -07:00
fs.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
globals.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
http2.md doc: space around lists 2019-09-09 16:45:24 -07:00
http.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
https.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
index.md doc: add node-report documentation 2019-01-18 10:35:55 +05:30
inspector.md inspector: new API - Session.connectToMainThread 2019-09-16 09:01:55 -07:00
intl.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
modules.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
n-api.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
net.md doc: space around lists 2019-09-09 16:45:24 -07:00
os.md doc: improve os.homedir() docs 2019-07-17 21:48:40 -07:00
path.md doc: fix extname with the correct description 2019-04-20 17:01:09 +03:00
perf_hooks.md doc: space around lists 2019-09-09 16:45:24 -07:00
policy.md doc: remove multiple consecutive blank lines 2019-08-31 15:27:58 -07:00
process.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
punycode.md doc: prevent some redirections 2018-07-14 22:57:03 +03:00
querystring.md doc: space around lists 2019-09-09 16:45:24 -07:00
readline.md doc: add extends for derived classes 2019-09-01 08:18:10 -07:00
repl.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
report.md report: include network interfaces in report 2019-08-03 07:25:52 -10:00
stream.md doc: add documentation for stream readableFlowing 2019-09-12 00:50:36 -07:00
string_decoder.md string_decoder: support typed array or data view 2018-09-17 17:48:44 +02:00
synopsis.md doc: move Usage and Example to same header level 2019-07-09 19:45:20 -07:00
timers.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
tls.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
tracing.md doc: document trace-events category for dns requests 2019-06-12 19:42:54 -07:00
tty.md doc: space around lists 2019-09-09 16:45:24 -07:00
url.md doc: use consistent indenting for unordered list items 2019-09-03 20:55:39 -07:00
util.md util: add encodeInto to TextEncoder 2019-09-13 20:27:18 +02:00
v8.md doc: space around lists 2019-09-09 16:45:24 -07:00
vm.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
worker_threads.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00
zlib.md doc: use consistent unordered list style 2019-09-16 11:24:54 -07:00