Skip to content

Commit

Permalink
doc: removed unnecessary util imports from vm examples
Browse files Browse the repository at this point in the history
PR-URL: #33179
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
WalasPrime authored and addaleax committed May 7, 2020
1 parent dbad1b6 commit d6b19fd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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"');
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 };
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit d6b19fd

Please sign in to comment.