Skip to content

Commit 0cee4c3

Browse files
WalasPrimecodebytere
authored andcommittedJun 7, 2020
doc: removed unnecessary util imports from vm examples
PR-URL: #33179 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 9038620 commit 0cee4c3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

‎doc/api/vm.md

-5
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"');
@@ -791,7 +789,6 @@ properties but also having the built-in objects and functions any standard
791789
will remain unchanged.
792790

793791
```js
794-
const util = require('util');
795792
const vm = require('vm');
796793
797794
global.globalVar = 3;
@@ -896,7 +893,6 @@ The following example compiles and executes different scripts using a single
896893
[contextified][] object:
897894
898895
```js
899-
const util = require('util');
900896
const vm = require('vm');
901897
902898
const contextObject = { globalVar: 1 };
@@ -992,7 +988,6 @@ The following example compiles and executes code that increments a global
992988
variable and sets a new one. These globals are contained in the `contextObject`.
993989
994990
```js
995-
const util = require('util');
996991
const vm = require('vm');
997992
998993
const contextObject = {

0 commit comments

Comments
 (0)
Please sign in to comment.