Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-10-15 16:57:49 +0300
committerRich Trott <rtrott@gmail.com>2019-10-15 23:25:23 +0300
commitc4de76f7a66d285d5914e329663f65f4c6e69381 (patch)
tree3725417862795dd72a2327716770d2458235505c /doc/api/vm.md
parentf4f856b2381d10de48534e0de97df142f3e29994 (diff)
doc: update vm.md for link linting
Update vm.md for link linting rules that are about to be applied. Define an undefined link reference. Escape non-link text that uses `[` and `]`. PR-URL: https://github.com/nodejs/node/pull/29982 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/api/vm.md')
-rw-r--r--doc/api/vm.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/api/vm.md b/doc/api/vm.md
index 5d4ea640866..a531943de34 100644
--- a/doc/api/vm.md
+++ b/doc/api/vm.md
@@ -562,7 +562,7 @@ flag enabled.*
The `vm.SourceTextModule` class provides the [Source Text Module Record][] as
defined in the ECMAScript specification.
-### Constructor: new vm.SourceTextModule(code[, options])
+### Constructor: new vm.SourceTextModule(code\[, options\])
* `code` {string} JavaScript Module code to parse
* `options`
@@ -653,7 +653,7 @@ const module = new vm.SyntheticModule(['default'], function() {
// Use `module` in linking...
```
-### Constructor: new vm.SyntheticModule(exportNames, evaluateCallback[, options])
+### Constructor: new vm.SyntheticModule(exportNames, evaluateCallback\[, options\])
<!-- YAML
added: REPLACEME
-->
@@ -1168,6 +1168,7 @@ queues.
[GetModuleNamespace]: https://tc39.es/ecma262/#sec-getmodulenamespace
[HostResolveImportedModule]: https://tc39.es/ecma262/#sec-hostresolveimportedmodule
[Link() concrete method]: https://tc39.es/ecma262/#sec-moduledeclarationlinking
+[Module Record]: https://www.ecma-international.org/ecma-262/#sec-abstract-module-records
[Source Text Module Record]: https://tc39.es/ecma262/#sec-source-text-module-records
[Synthetic Module Record]: https://heycam.github.io/webidl/#synthetic-module-records
[V8 Embedder's Guide]: https://v8.dev/docs/embed#contexts