File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -621,7 +621,7 @@ in the ECMAScript specification.
621621Evaluate the module and its depenendencies. Corresponds to the [ Evaluate() concrete method] [ ] field of
622622[ Cyclic Module Record] [ ] s in the ECMAScript specification.
623623
624- If the module is a ` vm.SourceTextModule ` ,` evaluate() ` must be called after the module has been at least linked ;
624+ If the module is a ` vm.SourceTextModule ` , ` evaluate() ` must be called after the module has been instantiated ;
625625otherwise ` evaluate() ` will return a rejected promise.
626626
627627For a ` vm.SourceTextModule ` , the promise returned by ` evaluate() ` may be fulfilled either
@@ -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- that causes the evaluation to fail.
634+ ` module.error ` that causes the evaluation to fail and .
6356352 . 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 ` .
You can’t perform that action at this time.
0 commit comments