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 authored and RafaelGSS committed Apr 5, 2023
1 parent e574827 commit ca9f0f0
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 @@ -745,6 +745,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 ca9f0f0

Please sign in to comment.