Skip to content

Commit

Permalink
doc: vm.SourceTextModule() without context option
Browse files Browse the repository at this point in the history
Explaining that vm.SourceTextModule() is able to evaluate in current
context if non is given

Fixes: #47280
PR-URL: #47295
Reviewed-By: Debadree Chatterjee <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
  • Loading branch information
axkibe committed Mar 31, 2023
1 parent b541d2c commit b74b9dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,8 @@ changes:
`cachedData` was created.
* `context` {Object} The [contextified][] object as returned by the
`vm.createContext()` method, to compile and evaluate this `Module` in.
If no context is specified, the module is evaluated in the current
execution context.
* `lineOffset` {integer} Specifies the line number offset that is displayed
in stack traces produced by this `Module`. **Default:** `0`.
* `columnOffset` {integer} Specifies the first-line column number offset that
Expand Down

0 comments on commit b74b9dd

Please sign in to comment.