Skip to content

Commit

Permalink
doc fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu committed Dec 20, 2017
1 parent 9e708d6 commit 574b6f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ added: v0.3.1
**Default:** `'VM Context i'`, where `i` is an ascending numerical index of
the created context.
* `contextOrigin` {string} [Origin][origin] corresponding to the newly
created context for display purposes. **Default:** the empty string.
created context for display purposes. **Default:** `''`.

First contextifies the given `sandbox`, runs the compiled code contained by
the `vm.Script` object within the created sandbox, and returns the result.
Expand Down Expand Up @@ -258,7 +258,7 @@ added: v0.3.1
**Default:** `'VM Context i'`, where `i` is an ascending numerical index of
the created context.
* `origin` {string} [Origin][origin] corresponding to the newly created
context for display purposes. **Default:** the empty string.
context for display purposes. **Default:** `''`.

If given a `sandbox` object, the `vm.createContext()` method will [prepare
that sandbox][contextified] so that it can be used in calls to
Expand Down Expand Up @@ -373,7 +373,7 @@ added: v0.3.1
**Default:** `'VM Context i'`, where `i` is an ascending numerical index of
the created context.
* `contextOrigin` {string} [Origin][origin] corresponding to the newly
created context for display purposes. **Default:** the empty string.
created context for display purposes. **Default:** `''`.

The `vm.runInNewContext()` first contextifies the given `sandbox` object (or
creates a new `sandbox` if passed as `undefined`), compiles the `code`, runs it
Expand Down

0 comments on commit 574b6f7

Please sign in to comment.