Skip to content

Commit 7d80da4

Browse files
aduh95RaisinTen
andauthored
fixup! doc: use top-level await syntax in vm.md
Co-authored-by: Darshan Sen <[email protected]>
1 parent 5e0b0b8 commit 7d80da4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/vm.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,10 @@ const bar = new vm.SourceTextModule(`
458458
async function linker(specifier, referencingModule) {
459459
if (specifier === 'foo') {
460460
return new vm.SourceTextModule(`
461-
// The "secret" variable refers to the global variable we added to
462-
// "contextifiedObject" when creating the context.
463-
export default secret;
464-
`, { context: referencingModule.context });
461+
// The "secret" variable refers to the global variable we added to
462+
// "contextifiedObject" when creating the context.
463+
export default secret;
464+
`, { context: referencingModule.context });
465465

466466
// Using `contextifiedObject` instead of `referencingModule.context`
467467
// here would work as well.
@@ -686,7 +686,7 @@ const module = new vm.SourceTextModule(
686686
meta.prop = {};
687687
}
688688
});
689-
// Since module has no dependencies, the linker function will never be called.
689+
// Since module has no dependencies, the linker function will never be called.
690690
await module.link(() => {});
691691
await module.evaluate();
692692

0 commit comments

Comments
 (0)