Skip to content

Commit eb82c00

Browse files
author
Axel Kittenberger
committed
Explaining that vm.SourceTextModule() is able to evaluate in current context if non is given
1 parent 3cf65bd commit eb82c00

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
@@ -747,6 +747,8 @@ changes:
747747
`cachedData` was created.
748748
* `context` {Object} The [contextified][] object as returned by the
749749
`vm.createContext()` method, to compile and evaluate this `Module` in.
750+
If no context is specified, the module is evaluated in the current
751+
execution context.
750752
* `lineOffset` {integer} Specifies the line number offset that is displayed
751753
in stack traces produced by this `Module`. **Default:** `0`.
752754
* `columnOffset` {integer} Specifies the first-line column number offset that

0 commit comments

Comments
 (0)