Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: de7d698df7d2
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 02fde585b15f
Choose a head ref
  • 2 commits
  • 18 files changed
  • 1 contributor

Commits on Aug 29, 2013

  1. vm: update API to use options argument

    Passing a filename is still supported in place of certain options
    arguments, for backward-compatibility, but timeout and display-errors
    are not translated since those were undocumented.
    
    Also managed to eliminate an extra stack trace line by not calling
    through the `createScript` export.
    
    Added a few message tests to show how `displayErrors` works.
    domenic authored and isaacs committed Aug 29, 2013
    Copy the full SHA
    fd36576 View commit details
    Browse the repository at this point in the history
  2. vm: document vm2's changes.

    - The caveats no longer apply.
    - Document options arguments, including `displayErrors` and the
      different things it means in each place.
    - Re-did examples to be more on point, e.g. `runInContext` example
      runs multiple scripts in the same context.
    - Documented how `vm.createContext`s meaning has substantially changed,
      and is now more of a "contextifier" than a "creator."
    - Reordered vm functions to be readable in order; the concept of
      contextifying needs to come before `runInContext` and
      `runInNewContext`.
    - Documented new `vm.isContext`.
    - Documented the `vm.Script` constructor, instead of `createScript`,
      since factory methods are silly and we wanted to document the class's
      methods anyway.
    - Documented `script.runInContext`.
    - Change stability to stable, if I may be so bold.
    domenic authored and isaacs committed Aug 29, 2013
    Copy the full SHA
    02fde58 View commit details
    Browse the repository at this point in the history