mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: vm.SourceTextModule() without context option
Explaining that vm.SourceTextModule() is able to evaluate in current context if non is given Fixes: https://github.com/nodejs/node/issues/47280 PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
6ab22151c4
commit
ece029f64e
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user