Skip to content

Commit 353c626

Browse files
axkibeRafaelGSS
authored andcommitted
doc: vm.SourceTextModule() without context option
Explaining that vm.SourceTextModule() is able to evaluate in current context if non is given Fixes: #47280 PR-URL: #47295 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 15e68fa commit 353c626

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/vm.md

+2
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,8 @@ changes:
745745
`cachedData` was created.
746746
* `context` {Object} The [contextified][] object as returned by the
747747
`vm.createContext()` method, to compile and evaluate this `Module` in.
748+
If no context is specified, the module is evaluated in the current
749+
execution context.
748750
* `lineOffset` {integer} Specifies the line number offset that is displayed
749751
in stack traces produced by this `Module`. **Default:** `0`.
750752
* `columnOffset` {integer} Specifies the first-line column number offset that

0 commit comments

Comments
 (0)