You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rich Trott
6ba5af2c2c
console: check that stderr is writable
`Console` constructor checks that `stdout.write()` is a function but
does not do an equivalent check for `stderr.write()`. If `stderr` is not
specified in the constructor, then `stderr` is set to be `stdout`.
However, if `stderr` is specified, but `stderr.write()` is not a
function, then an exception is not thrown until `console.error()` is
called.
This change adds the same check for 'stderr' in the constructor that is
there for `stdout`. If `stderr` fails the check, then a `TypeError` is
thrown.
Took the opportunity to copyedit the `console` doc a little too.
PR-URL: https://github.com/nodejs/node/pull/5635
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years ago
..
_toc.markdown
deps: update v8 to 4.4.63.9
10 years ago
addons.markdown
doc: fix typo in api/addons
9 years ago
all.markdown
deps: update v8 to 4.4.63.9
10 years ago
assert.markdown
doc: mention prototype check in deepStrictEqual()
9 years ago
buffer.markdown
doc: document base64url encoding support
9 years ago
child_process.markdown
doc: Add note about use of JSON.stringify()
9 years ago
cluster.markdown
doc: add missing property in cluster example
9 years ago
console.markdown
console: check that stderr is writable
9 years ago
crypto.markdown
doc: fix markdown links
9 years ago
debugger.markdown
doc: replace function expressions with arrows
9 years ago
dgram.markdown
doc: fix typo in api/dgram
9 years ago
dns.markdown
doc: fix dns.resolveCname description typo
9 years ago
documentation.markdown
doc: add info to docs on how to submit docs patch
9 years ago
domain.markdown
doc: fix type references for link gen, link css
9 years ago
errors.markdown
doc: fix markdown links
9 years ago
events.markdown
events: add eventNames() method
9 years ago
fs.markdown
doc: fix typo in api/fs
9 years ago
globals.markdown
doc: proper markdown escaping -> \_\_, \*, \_
9 years ago
http.markdown
doc: fix markdown links
9 years ago
https.markdown
doc: minor improvement to HTTPS doc
9 years ago
index.markdown
Remove util.print from docs
14 years ago
modules.markdown
doc: `require` behavior on case-insensitive systems
9 years ago
net.markdown
doc: fix relative links in net docs
9 years ago
os.markdown
doc: minor improvement in OS docs
9 years ago
path.markdown
doc: proper markdown escaping -> \_\_, \*, \_
9 years ago
process.markdown
doc: Add note about use of JSON.stringify()
9 years ago
punycode.markdown
doc: fenced all code blocks, typo fixes
9 years ago
querystring.markdown
doc: fenced all code blocks, typo fixes
9 years ago
readline.markdown
doc: don't use "interface" as a variable name
9 years ago
repl.markdown
repl: accept no arguments to start()
9 years ago
stream.markdown
doc: clarify when writable.write callback is called
9 years ago
string_decoder.markdown
doc: fenced all code blocks, typo fixes
9 years ago
synopsis.markdown
doc: harmonize $ node command line notation
9 years ago
timers.markdown
timers: fail early when callback is not a function
9 years ago
tls.markdown
doc: remove non-standard use of hyphens
9 years ago
tty.markdown
doc: fenced all code blocks, typo fixes
9 years ago
url.markdown
doc: fenced all code blocks, typo fixes
9 years ago
util.markdown
doc: copyedit util doc
9 years ago
v8.markdown
doc: update V8 URL
9 years ago
vm.markdown
vm: fix `produceCachedData`
9 years ago
zlib.markdown
doc: clarify type of first argument in zlib
9 years ago