Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ece029f

Browse filesBrowse files
axkibedanielleadams
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 6ab2215 commit ece029f
Copy full SHA for ece029f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/vm.md‎

Copy file name to clipboardExpand all lines: doc/api/vm.md
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.