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: 1b7489280788
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 7bd6e333182c
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 13, 2014

  1. doc: streams must be open to be passed to child

    spawn stdio options can be a 'stream', but the following code
    fails with "Incorrect value for stdio stream: [object Object]",
    despite being a stream. The problem is the test isn't really
    for a stream, its for an object with a numeric `.fd` property,
    and streams do not have an fd until their async 'open' event
    has occurred. This is reasonable, but was not documented.
    
        child_process.spawn('date', [], {stdio: [
          'ignore',
          fs.createWriteStream('out.txt',{flags:'a'}),
          'ignore']})
    sam-github authored and indutny committed Jan 13, 2014
    Copy the full SHA
    7bd6e33 View commit details
    Browse the repository at this point in the history