reggi
ffdbe9d4f1
doc: fix typos in cluster & errors
...
PR-URL: https://github.com/nodejs/node/pull/3011
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2015-09-23 22:06:43 +02:00
Sakthipriyan Vairamani
7953c83b85
doc: remove usage of events.EventEmitter
...
The `events` module already exports `EventEmitter` constructor function
So, we don't have to use `events.EventEmitter` to access it.
Refer: https://github.com/nodejs/node/pull/2896
PR-URL: https://github.com/nodejs/node/pull/2921
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
2015-09-23 00:22:11 +05:30
Christopher J. Brody
451acc7559
doc: remove extra using v8::HandleScope statement
...
v8::HandleScope does not seem to be required for addon functions.
PR-URL: https://github.com/nodejs/node/pull/2983
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-09-21 17:58:11 +02:00
Rich Trott
4fb4c14b61
doc: clarify description of assert.ifError()
...
This fixes a few typographical errors (comma splices and the like) and
clarifies the description of assert.ifError(). It also standardizes the
document on "inequality" rather than having both "inequality" and "non-
equality".
PR-URL: https://github.com/nodejs/node/pull/2941
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-09-18 23:46:36 -07:00
Rich Trott
4dcf24cfab
doc: refine process.kill() and exit explanations
...
Add corrections about when exit event fires and how .kill() works on
Windows.
PR-URL: https://github.com/nodejs/node/pull/2918
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2015-09-17 15:03:04 -07:00
Rich Trott
43cb1ddb00
doc: process exit event is not guaranteed to fire
...
This change:
* notes that the exit event is not guaranteed to fire
* provides an example situation where the exit event may not fire
* makes a minor copyediting change
* enforces 80 character wrap in one place where it was not honored
Fixes: https://github.com/nodejs/node/issues/2853
PR-URL: https://github.com/nodejs/node/pull/2861
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-09-16 13:56:48 -07:00
Sam Roberts
6cb9e8a9c4
doc: remove incorrect reference to TCP in net docs
...
createServer() can create socket of types other than TCP.
PR-URL: https://github.com/nodejs/node/pull/2903
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-09-16 10:52:12 -07:00
Sam Roberts
e148dcce45
doc: correct buffer.slice arg syntax
...
PR-URL: https://github.com/nodejs/node/pull/2903
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-09-16 10:52:03 -07:00
Sam Roberts
a12628bd97
doc: describe spawn option.detached
...
PR-URL: https://github.com/nodejs/node/pull/2903
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-09-16 10:51:37 -07:00
Sam Roberts
94e663ac5f
timer: ref/unref return self
...
Most calls to ref() and unref() are chainable, timers should be
chainable, too.
Typical use:
var to = setTimeout(ontimeout, 123).unref();
PR-URL: https://github.com/nodejs/node/pull/2905
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Trevor Norris <trevnorris@nodejs.org >
2015-09-16 10:29:13 -07:00
Sven Slootweg
360d0faf44
doc: add missing backtick in buffer.markdown
...
Fixes: https://github.com/nodejs/node/issues/2880
PR-URL: https://github.com/nodejs/node/pull/2881
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2015-09-15 13:59:45 -04:00
Yazhong Liu
1f842c2c61
fs: consider NaN/Infinity in toUnixTimestamp
...
PR-URL: https://github.com/nodejs/node/pull/2387
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-09-14 16:55:15 -06:00
Danny Nemer
a85f4b5ce5
doc: fix broken link in repl.markdown
...
PR-URL: https://github.com/nodejs/node/pull/2827
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2015-09-14 17:29:01 -04:00
Jeremiah Senkpiel
892bf65d9a
doc: fix two doc errors in stream and process
...
`process.stdout` always blocks as of
20176a9841
`WritableState.buffer` is `getBuffer()` as of
91586661c9
PR-URL: https://github.com/nodejs/node/pull/2549
Reviewed-By: Alexis Campailla <orangemocha@nodejs.org >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2015-09-14 09:39:59 -04:00
Tristian Flanagan
abb2a4b8fe
doc: fixed io.js references in process.markdown
...
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2846
2015-09-13 13:42:26 -07:00
Minwoo Jung
958a94e19d
doc: use "Calls" over "Executes" for consistency
...
"Calls" is used frequently throughout the docs except for this line.
Use "Calls" over "Executes" to make it consistent.
PR-URL: https://github.com/nodejs/node/pull/2800
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2015-09-11 11:10:37 -04:00
Anne-Gaelle Colom
e1fb0e8289
doc: use US English for consistency
...
behaviour -> behavior
PR-URL: https://github.com/nodejs/node/pull/2784
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
2015-09-10 14:39:16 -07:00
Anne-Gaelle Colom
d2f70fee13
doc: use 3rd person singular for consistency
...
PR-URL: https://github.com/nodejs/node/pull/2765
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2015-09-10 06:03:54 -07:00
Sam Roberts
f442904a27
doc: describe process API for IPC
...
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
PR-URL: https://github.com/nodejs/node/pull/1978
2015-09-09 09:46:20 -07:00
Rich Trott
8f87169805
doc: fix comma splice in Assertion Testing doc
...
This fixes a minor typographical error in the Assertion Testing doc.
PR-URL: https://github.com/nodejs/node/pull/2728
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
2015-09-08 14:42:27 -07:00
Sakthipriyan Vairamani
f0a75ab2d3
doc,test: enable recursive file watching in Windows
...
Recursive file watching is supported by libuv since 1.7.0. Refer
https://github.com/nodejs/node/blob/master/deps/uv/ChangeLog#L126 . This
patch notes that in the docs and enables testing this feature. It also
adds proper TAP plugin parsable message for other platforms.
PR-URL: https://github.com/nodejs/node/pull/2649
Fixes: https://github.com/nodejs/node/issues/375
Reviewed-By: rvagg - Rod Vagg <rod@vagg.org >
Reviewed-By: silverwind - Roman Reiss <me@silverwind.io >
2015-09-06 21:38:07 +10:00
Jeremiah Senkpiel
65844affe9
doc: update url doc to account for escaping
...
Fixes: https://github.com/nodejs/node/issues/2113
Ref: 17a379ec39
PR-URL: https://github.com/nodejs/node/pull/2605
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: mscdex - Brian White <mscdex@mscdex.net >
2015-09-06 21:37:59 +10:00
Ben Noordhuis
607aa3ac82
child_process: add callback parameter to .send()
...
Add an optional callback parameter to `ChildProcess.prototype.send()`
that is invoked when the message has been sent.
Juggle the control channel's reference count so that in-flight messages
keep the event loop (and therefore the process) alive until they have
been sent.
`ChildProcess.prototype.send()` and `process.send()` used to operate
synchronously but became asynchronous in commit libuv/libuv@393c1c5
("unix: set non-block mode in uv_{pipe,tcp,udp}_open"), which landed
in io.js in commit 07bd05b ("deps: update libuv to 1.2.1").
Fixes: https://github.com/nodejs/node/issues/760
PR-URL: https://github.com/nodejs/node/pull/2620
Reviewed-By: trevnorris - Trevor Norris <trev.norris@gmail.com >
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
2015-09-06 21:37:58 +10:00
Jeremiah Senkpiel
4c5fc3b1d4
doc: clarify cluster behaviour with no workers
...
Fixes: https://github.com/nodejs/node/issues/1239
Ref: 41b75ca926
PR-URL: https://github.com/nodejs/node/pull/2606
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2015-08-28 20:32:56 -04:00
Ben Noordhuis
de88255b0f
Revert "lib,src: add unix socket getsockname/getpeername"
...
This reverts commit 6cd0e2664b .
This reverts commit 7a999a1376 .
This reverts commit f337595441 .
It turns out that on Windows, uv_pipe_getsockname() is a no-op for
client sockets. It slipped through testing because of a CI snafu.
PR-URL: https://github.com/nodejs/node/pull/2584
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-08-28 00:14:13 +02:00
Ben Noordhuis
6cd0e2664b
doc: update io.js reference
...
Commit f337595 ("lib,src: add unix socket getsockname/getpeername")
accidentally left in a reference to io.js v1.5.0 in the documentation.
Update it to say "Node.js v4.0.0", the upcoming release.
PR-URL: https://github.com/nodejs/node/pull/2580
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2015-08-27 18:00:55 +02:00
Ben Noordhuis
7a999a1376
lib: add net.Socket#localFamily property
...
Complements the existing net.Socket#remoteFamily property.
PR-URL: https://github.com/nodejs/node/pull/956
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-08-27 17:45:29 +02:00
Ben Noordhuis
f337595441
lib,src: add unix socket getsockname/getpeername
...
The implementation is a minor API change in that socket.address() now
returns a `{ address: '/path/to/socket' }` object, like it does for TCP
and UDP sockets. Before this commit, it returned `socket._pipeName`,
which is a string when present.
Change common.PIPE on Windows from '\\\\.\\pipe\\libuv-test' to
'\\\\?\\pipe\\libuv-test'. Windows converts the '.' to a '?' when
creating a named pipe, meaning that common.PIPE didn't match the
result from NtQueryInformationFile().
Fixes: https://github.com/nodejs/node/issues/954
PR-URL: https://github.com/nodejs/node/pull/956
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-08-27 17:45:04 +02:00
Сковорода Никита Андреевич
d6714ff1a4
doc: minor clarification in buffer.markdown
...
Replaced "contents is" with "contents are".
Added a note that initial Buffer contents could contain sensitive data.
PR-URL: https://github.com/nodejs/node/pull/2574
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-08-27 18:08:13 +03:00
James M Snell
2e8bb62011
doc: fix bad merge on modules.markdown
...
My previous commit landed a bad merge on modules.markdown.
This fixes it.
2015-08-25 19:00:02 -07:00
James M Snell
09768e306c
doc: minor additional corrections and improvements
...
Per feedback from @thefourtheye: (a) improve word on the
description of the `close` event in stream.markdown and
(b) remove `[module section]: modules.html` from
globals.markdown
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:52 -07:00
James M Snell
758d02e4e9
doc: minor grammatical update in crypto.markdown
...
Per: https://github.com/joyent/node/pull/8878
Originally submitted by @jacksonhoose
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:47 -07:00
James M Snell
b11ba2791c
doc: minor grammatical update
...
Per: https://github.com/joyent/node/pull/9009
Originally submitted by @peerwit
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:42 -07:00
James M Snell
c58a63a18e
doc: remove repeated statement in globals.markdown
...
Per: https://github.com/joyent/node/pull/25102
Originally reported by @kuldipem
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:37 -07:00
James M Snell
ac0563f97d
doc: remove 'dudes' from documentation
...
per: https://github.com/joyent/node/pull/25572#discussion_r33197896
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:32 -07:00
James M Snell
a5b7852292
doc: update tense in child_process.markdown
...
per: https://github.com/joyent/node/pull/25826
originally submitted by: @ClimbsRocks
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:28 -07:00
James M Snell
89788dc347
doc: fixed worker.id type
...
per: https://github.com/joyent/node/pull/25459
originally submitted by @sonnyp
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:25 -07:00
James M Snell
c549c8b30c
doc: port is optional for socket.bind()
...
per: https://github.com/joyent/node/pull/25356
originally submitted by @dcousens
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:20 -07:00
James M Snell
281be6ce65
doc: fix minor types and grammar in fs docs
...
per: https://github.com/joyent/node/pull/7431
originally submitted by @linclark
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:13 -07:00
James M Snell
0679dcc9b7
doc: update parameter name in net.markdown
...
per: https://github.com/joyent/node/pull/7112
originally submitted by @Peekmo
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:09 -07:00
James M Snell
3cecff35ce
doc: small typo in domain.markdown
...
per: https://github.com/joyent/node/pull/7715
originally submitted by @tonylukasavage
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:05 -07:00
James M Snell
36151d698d
doc: fixed typo in net.markdown (missing comma)
...
per: https://github.com/joyent/node/pull/7930
originally submitted by @pbrewczynski
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:52:01 -07:00
James M Snell
7860977524
doc: update description of fs.exists in fs.markdown
...
per: https://github.com/joyent/node/pull/7944
originally submitted by @oconnore
Minor update to the description in `fs.exists()`
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:51:57 -07:00
James M Snell
db4cb338be
doc: clarification on the 'close' event
...
per: https://github.com/joyent/node/pull/8209
originally submitted by @jeromew
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:51:53 -07:00
James M Snell
5299a743d5
doc: improve working in stream.markdown
...
per: https://github.com/joyent/node/pull/8430
originally submitted by @mscdex
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:51:47 -07:00
James M Snell
aebc2d1aab
doc: update path.extname documentation
...
per: https://github.com/joyent/node/pull/8509
originally submitted by @thauburger
Adding an additional example to path.extname documentation
to demonstrate the case where the first character of the last
path component is '.'. This case is interesting, as something
like path.extname('.txt') returns an empty string. In this
case, .txt can be used as a valid file name (while arguably
maintaining an extension). I agree with Node's behavior in this
case, but I think the added example provides additional clarity
for the developer.
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:51:41 -07:00
James M Snell
dc27ff4d85
doc: small clarifications to modules.markdown
...
per: https://github.com/joyent/node/pull/8708
A modified version of the original PR submitted by @builtbylane.
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:51:37 -07:00
James M Snell
4215d28f9f
doc: code style cleanups in repl.markdown
...
per: https://github.com/joyent/node/pull/8778
originally submitted by @reggi
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:51:31 -07:00
James M Snell
e7e0706946
doc: correct grammar in cluster.markdown
...
per: https://github.com/joyent/node/pull/14352
originally submitted by @AlexKVal
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:51:23 -07:00
James M Snell
cc912b99c6
doc: Clarify the module.parent is set once
...
Per: https://github.com/jorrit/node/commit/54a7f79a4a2ecb9c6f235a03287fe2992f19f0bb
Fixes: https://github.com/joyent/node/issues/6149
Originally submitted by @jorrit
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/2378
2015-08-25 18:50:24 -07:00