Skip to content

Commit d6b19fd

Browse files
WalasPrimeaddaleax
authored andcommitted
doc: removed unnecessary util imports from vm examples
PR-URL: #33179 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent dbad1b6 commit d6b19fd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

doc/api/vm.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ the value of another global variable, then execute the code multiple times.
160160
The globals are contained in the `context` object.
161161

162162
```js
163-
const util = require('util');
164163
const vm = require('vm');
165164

166165
const context = {
@@ -235,7 +234,6 @@ the code multiple times in different contexts. The globals are set on and
235234
contained within each individual `context`.
236235

237236
```js
238-
const util = require('util');
239237
const vm = require('vm');
240238

241239
const script = new vm.Script('globalVar = "set"');
@@ -891,7 +889,6 @@ properties but also having the built-in objects and functions any standard
891889
will remain unchanged.
892890

893891
```js
894-
const util = require('util');
895892
const vm = require('vm');
896893
897894
global.globalVar = 3;
@@ -996,7 +993,6 @@ The following example compiles and executes different scripts using a single
996993
[contextified][] object:
997994
998995
```js
999-
const util = require('util');
1000996
const vm = require('vm');
1001997
1002998
const contextObject = { globalVar: 1 };
@@ -1092,7 +1088,6 @@ The following example compiles and executes code that increments a global
10921088
variable and sets a new one. These globals are contained in the `contextObject`.
10931089
10941090
```js
1095-
const util = require('util');
10961091
const vm = require('vm');
10971092
10981093
const contextObject = {

0 commit comments

Comments
 (0)