From eb82c00da799aebb6925a676c1eccc671653b587 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Wed, 29 Mar 2023 14:18:55 +0200 Subject: [PATCH] Explaining that vm.SourceTextModule() is able to evaluate in current context if non is given --- doc/api/vm.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/vm.md b/doc/api/vm.md index f6eaeda1212c5e..1b8bb71715250c 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -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