Skip to content

Commit c4de76f

Browse files
committed
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: #29982 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent f4f856b commit c4de76f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/api/vm.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ flag enabled.*
562562
The `vm.SourceTextModule` class provides the [Source Text Module Record][] as
563563
defined in the ECMAScript specification.
564564

565-
### Constructor: new vm.SourceTextModule(code[, options])
565+
### Constructor: new vm.SourceTextModule(code\[, options\])
566566

567567
* `code` {string} JavaScript Module code to parse
568568
* `options`
@@ -653,7 +653,7 @@ const module = new vm.SyntheticModule(['default'], function() {
653653
// Use `module` in linking...
654654
```
655655
656-
### Constructor: new vm.SyntheticModule(exportNames, evaluateCallback[, options])
656+
### Constructor: new vm.SyntheticModule(exportNames, evaluateCallback\[, options\])
657657
<!-- YAML
658658
added: REPLACEME
659659
-->
@@ -1168,6 +1168,7 @@ queues.
11681168
[GetModuleNamespace]: https://tc39.es/ecma262/#sec-getmodulenamespace
11691169
[HostResolveImportedModule]: https://tc39.es/ecma262/#sec-hostresolveimportedmodule
11701170
[Link() concrete method]: https://tc39.es/ecma262/#sec-moduledeclarationlinking
1171+
[Module Record]: https://www.ecma-international.org/ecma-262/#sec-abstract-module-records
11711172
[Source Text Module Record]: https://tc39.es/ecma262/#sec-source-text-module-records
11721173
[Synthetic Module Record]: https://heycam.github.io/webidl/#synthetic-module-records
11731174
[V8 Embedder's Guide]: https://v8.dev/docs/embed#contexts

0 commit comments

Comments
 (0)