Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Walasek <coreconviction@gmail.com>2020-05-01 00:50:43 +0300
committerAnna Henningsen <anna@addaleax.net>2020-05-08 02:20:10 +0300
commitd6b19fd5378d53ed1180ad241b8597c4f9c550eb (patch)
tree5c3d8530712bd481b689e169c3e6d952773fd647 /doc/api/vm.md
parentdbad1b65155f2ed9b20d034a83758dc7a5c01a21 (diff)
doc: removed unnecessary util imports from vm examples
PR-URL: https://github.com/nodejs/node/pull/33179 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/api/vm.md')
-rw-r--r--doc/api/vm.md5
1 files changed, 0 insertions, 5 deletions
diff --git a/doc/api/vm.md b/doc/api/vm.md
index 5bf0c6e62b7..986e2c50b1d 100644
--- a/doc/api/vm.md
+++ b/doc/api/vm.md
@@ -160,7 +160,6 @@ the value of another global variable, then execute the code multiple times.
The globals are contained in the `context` object.
```js
-const util = require('util');
const vm = require('vm');
const context = {
@@ -235,7 +234,6 @@ the code multiple times in different contexts. The globals are set on and
contained within each individual `context`.
```js
-const util = require('util');
const vm = require('vm');
const script = new vm.Script('globalVar = "set"');
@@ -891,7 +889,6 @@ properties but also having the built-in objects and functions any standard
will remain unchanged.
```js
-const util = require('util');
const vm = require('vm');
global.globalVar = 3;
@@ -996,7 +993,6 @@ The following example compiles and executes different scripts using a single
[contextified][] object:
```js
-const util = require('util');
const vm = require('vm');
const contextObject = { globalVar: 1 };
@@ -1092,7 +1088,6 @@ The following example compiles and executes code that increments a global
variable and sets a new one. These globals are contained in the `contextObject`.
```js
-const util = require('util');
const vm = require('vm');
const contextObject = {