Skip to content

Commit 6cdd4dc

Browse files
authored
fixup! vm: make vm.Module.evaluate() conditionally synchronous
1 parent 52ebb46 commit 6cdd4dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/vm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ synchronously or asynchronously:
631631
fulfilled _synchronously_ after the module and all its dependencies have been evaluated.
632632
1. If the evaluation succeeds, the promise will be _synchronously_ resolved to `undefined`.
633633
2. If the evaluation results in an exception, the promise will be _synchronously_ rejected with the exception
634-
`module.error` that causes the evaluation to fail and .
634+
that causes the evaluation to fail, which is the same as `module.error`.
635635
2. If the `vm.SourceTextModule` has top-level `await` in itself or any of its dependencies, the promise will be
636636
fulfilled _asynchronously_ after the module and all its dependencies have been evaluated.
637637
1. If the evaluation succeeds, the promise will be _asynchronously_ resolved to `undefined`.

0 commit comments

Comments
 (0)