diff options
author | Rich Trott <rtrott@gmail.com> | 2020-09-07 01:33:16 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-09-09 03:22:37 +0300 |
commit | 665330134cafb6d40e39d134f3bef03b09fbd9ae (patch) | |
tree | d705f80ef0bb8a0ba127f4c89709d5ff5c1c015d /doc/api/module.md | |
parent | b5a47ca2d1f3b8e885164c5f1a6b3db0cdffa1c2 (diff) |
doc: make minor improvements to module.md
* sort references in ASCII order
* replace abbreviation
* split comma splice into two sentences and add appropriate punctuation
* replace future tense with present tense
PR-URL: https://github.com/nodejs/node/pull/35083
Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Diffstat (limited to 'doc/api/module.md')
-rw-r--r-- | doc/api/module.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/api/module.md b/doc/api/module.md index 383e7214b29..797c50b9d6e 100644 --- a/doc/api/module.md +++ b/doc/api/module.md @@ -150,10 +150,10 @@ added: should be fetched. The `error` instance should be passed as the second parameter to `findSourceMap` -in exceptional flows, e.g., when an overridden +in exceptional flows, such as when an overridden [`Error.prepareStackTrace(error, trace)`][] is invoked. Modules are not added to -the module cache until they are successfully loaded, in these cases source maps -will be associated with the `error` instance along with the `path`. +the module cache until they are successfully loaded. In these cases, source maps +are associated with the `error` instance along with the `path`. ### Class: `module.SourceMap` <!-- YAML @@ -200,14 +200,14 @@ consists of the following keys: * originalLine: {number} * originalColumn: {number} +[CommonJS]: modules.html +[ES Modules]: esm.html [Source map v3 format]: https://sourcemaps.info/spec.html#h.mofvlxcwqzej [`--enable-source-maps`]: cli.html#cli_enable_source_maps [`Error.prepareStackTrace(error, trace)`]: https://v8.dev/docs/stack-trace-api#customizing-stack-traces [`NODE_V8_COVERAGE=dir`]: cli.html#cli_node_v8_coverage_dir [`SourceMap`]: #module_class_module_sourcemap [`createRequire()`]: #module_module_createrequire_filename +[`module`]: modules.html#modules_the_module_object [module wrapper]: modules_cjs.html#modules_cjs_the_module_wrapper [source map include directives]: https://sourcemaps.info/spec.html#h.lmz475t4mvbx -[`module`]: modules.html#modules_the_module_object -[CommonJS]: modules.html -[ES Modules]: esm.html |