From c4de76f7a66d285d5914e329663f65f4c6e69381 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 15 Oct 2019 06:57:49 -0700 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca --- doc/api/vm.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api/vm.md b/doc/api/vm.md index 5d4ea640866efd..a531943de34d12 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\]) @@ -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