File tree 1 file changed +0
-5
lines changed
1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,6 @@ the value of another global variable, then execute the code multiple times.
160
160
The globals are contained in the ` context ` object.
161
161
162
162
``` js
163
- const util = require (' util' );
164
163
const vm = require (' vm' );
165
164
166
165
const context = {
@@ -235,7 +234,6 @@ the code multiple times in different contexts. The globals are set on and
235
234
contained within each individual ` context ` .
236
235
237
236
``` js
238
- const util = require (' util' );
239
237
const vm = require (' vm' );
240
238
241
239
const script = new vm.Script (' globalVar = "set"' );
@@ -791,7 +789,6 @@ properties but also having the built-in objects and functions any standard
791
789
will remain unchanged.
792
790
793
791
` ` ` js
794
- const util = require('util');
795
792
const vm = require('vm');
796
793
797
794
global.globalVar = 3;
@@ -896,7 +893,6 @@ The following example compiles and executes different scripts using a single
896
893
[contextified][] object:
897
894
898
895
```js
899
- const util = require(' util' );
900
896
const vm = require(' vm' );
901
897
902
898
const contextObject = { globalVar: 1 };
@@ -992,7 +988,6 @@ The following example compiles and executes code that increments a global
992
988
variable and sets a new one. These globals are contained in the `contextObject`.
993
989
994
990
```js
995
- const util = require(' util' );
996
991
const vm = require(' vm' );
997
992
998
993
const contextObject = {
You can’t perform that action at this time.
0 commit comments