Anton Andesen
0a56e9690b
doc: add note for binary safe string reading
...
`readable.setEncoding(null)` - may be the most preferable way to proxy
a binary data without any encoding/decoding overhead
PR-URL: https://github.com/nodejs/node/pull/5155
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-03-02 13:19:56 -05:00
Prince J Wesley
2b88523836
repl: fix stack trace column number in strict mode
...
On strict mode, "'use strict'; void 0; " is added as prefix
in order to prevent "use strict" as the result value
for let/const statements. It causes wrong column number in
stack trace.
PR-URL: https://github.com/nodejs/node/pull/5416
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-03-02 13:19:56 -05:00
Alexander Makarenko
ea8331e15f
doc: improvements to crypto.markdown copy
...
Fix several typos. Add missing links.
PR-URL: https://github.com/nodejs/node/pull/5230
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Kelvin Knighton <keltheceo@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-03-02 13:19:55 -05:00
Matteo Collina
d3f9b84be8
dgram: handle default address case when offset and length are specified
...
Fixes a regression introduced by: https://github.com/nodejs/node/pull/4374 .
Adds a new test to avoid similar issue in the future.
The test is disabled on windows, because this feature never worked
there.
Fixes: https://github.com/nodejs/node/issues/5398
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2016-03-02 13:19:55 -05:00
Rich Trott
6aebe16669
benchmark: add benchmark for buf.compare()
...
There is a benchmark for the class method `Buffer.compare()` but not for
the instance method `buf.compare()`. This adds that benchmark.
I used this to confirm a performance regression in an implementation I
was considering. While the implementation was a bust, it does seem like
the benchmark is worthwhile.
The benchmark is nearly identical to the existing `Buffer.compare()`
benchmark except, of course, that it calls `buf.compare()` instead.
PR-URL: https://github.com/nodejs/node/pull/5441
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2016-03-02 13:19:54 -05:00
Rich Trott
b44b701e5b
tools,benchmark: increase lint compliance
...
In the hopes of soon having the benchmark code linted, this change
groups all the likely non-controversial lint-compliance changes such as
indentation, semi-colon usage, and single-vs.-double quotation marks.
Other lint rules may have subtle performance implications in the V8
currently shipped with Node.js. Those changes will require more careful
review and will be in a separate change.
PR-URL: https://github.com/nodejs/node/pull/5429
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Brian White <mscdex@mscdex.net >
2016-03-02 13:19:54 -05:00
Owen Smith
c83725c604
test: add test-cases for posix path.relative()
...
adds posix test cases for paths similar to those that caused #5447
PR-URL: https://github.com/nodejs/node/pull/5456
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-28 12:41:53 +11:00
Owen Smith
871396ce8f
path: fix win32 relative() for UNC paths
...
win32 normalize() will output a trailing '\' for some UNC paths. trim
them before processing
Change by @mscdex
Add basic UNC path tests to win32 relative()
PR-URL: https://github.com/nodejs/node/pull/5456
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-28 12:41:52 +11:00
Owen Smith
91782f1888
path: fix win32 relative() when "to" is a prefix
...
when the basename of "to" was a prefix of the basename of "from" win32
relative() would miss including it in the result
Fixes: https://github.com/nodejs/node/issues/5447
PR-URL: https://github.com/nodejs/node/pull/5456
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-28 12:41:52 +11:00
Brian White
dfe45f13e7
url: fix off-by-one error with parse()
...
Fixes: https://github.com/nodejs/node/issues/5393
PR-URL: https://github.com/nodejs/node/pull/5394
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2016-02-28 12:41:51 +11:00
Brian White
30cec18eeb
path: fix verbose relative() output
...
Fixes: https://github.com/nodejs/node/issues/5383
PR-URL: https://github.com/nodejs/node/pull/5389
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2016-02-28 12:41:51 +11:00
Hugo Wood
378a772034
doc: require behavior on case-insensitive systems
...
This adds a paragraph in the Module Caching Caveats section about the
behavior of require when Node is running on top of a file system (e.g.
HFS) or operating system (e.g. Windows) that will not consider the case
of file paths to find files.
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Alexis Campailla <orangemocha@nodejs.org >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-28 12:41:50 +11:00
Tristan Slominski
06b7eb6636
doc: document base64url encoding support
...
Documents that creating a buffer from base64 encoded string
transparently supports "URL and Filename Safe Alphabet" base64url
encoding.
PR-URL: https://github.com/nodejs/node/pull/5243
Reviewed-By: Ben Noorhduis <info@bnoordhuis.nl >
Reviewed-By: Benjamin Gruenbaum <inglor@gmail.com >
Reviewed-By: Alejandro Oviedo <alejandro.oviedo.g@gmail.com >
2016-02-28 12:41:50 +11:00
Jackson Tian
8ec3d904cb
doc: improve httpVersionMajor / httpVersionMajor
...
The description of httpVersionMajor & httpVersionMinor should
have same context like httpVersion.
PR-URL: https://github.com/nodejs/node/pull/5296
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-28 12:41:49 +11:00
Evan Lucas
534e88f56c
doc: fix relative links in net docs
...
They were not being processed as relative links.
PR-URL: https://github.com/nodejs/node/pull/5358
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-28 12:41:49 +11:00
Brian White
7b98a30976
doc: fix crypto function indentation level
...
PR-URL: https://github.com/nodejs/node/pull/5460
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-28 12:41:48 +11:00
dcposch@dcpos.ch
c0fd802cc2
doc: link to man pages
...
This changes the doc generator to automatically link references such as
`open(2)` to a man page on man7.org or freebsd.org
PR-URL: https://github.com/nodejs/node/pull/5073
Reviewed-By: Ben Noorhduis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-28 12:41:48 +11:00
Rafael Cepeda
f8c6701e22
doc: add missing property in cluster example
...
`Cluster.setupMaster(options)` Options object was missing an `args`
property on the example.
PR-URL: https://github.com/nodejs/node/pull/5305
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-28 12:41:47 +11:00
Chris Dew
3bfe0483f0
doc: corrected name of argument in socket.send
...
Corrected name of "msg" argument from "buf" to "msg".
PR-URL: https://github.com/nodejs/node/pull/5449
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-28 12:41:47 +11:00
Alexander Makarenko
c8725f5e95
doc: fix links in tls, cluster docs
...
Fix missing links described in #5322 .
PR-URL: https://github.com/nodejs/node/pull/5364
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-28 12:41:46 +11:00
Rod Vagg
f349a9a2cf
build: update Node.js logo on OSX installer
...
PR-URL: https://github.com/nodejs/node/pull/5401
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: kahwee
Reviewed-By: fhemberger
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2016-02-27 17:15:39 +11:00
Rich Trott
ff988b3ee6
doc,tools,test: lint doc-based addon tests
...
PR-URL: https://github.com/nodejs/node/pull/5427
Fixes: https://github.com/nodejs/node/issues/5424
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2016-02-27 17:15:39 +11:00
Stefan Budeanu
22bb7c9d27
test: fix test runner arg regression
...
Append --node-args to existing list, don't overwrite arg list.
Fixes: https://github.com/nodejs/node/issues/5442
PR-URL: https://github.com/nodejs/node/pull/5446
Reviewed-By: Ben Noorhduis <info@bnoordhuis.nl >
Reviewed-by: Michael Dawson <michael_dawson@ca.ibm.com >
2016-02-27 17:15:38 +11:00
Santiago Gimeno
8c67b94b11
test: refactor test-dgram-send-callback-recursive
...
Just send 10 messages recursively and check that the send calls are
asynchronous by asserting that a `setImmediate` callback has been called
in-between. It avoids a race condition in the test when the recursive
limit is reached without having received at least 10 messages.
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/5079
2016-02-27 17:15:38 +11:00
Santiago Gimeno
2c21d34a2f
test: refactor test-dgram-udp4
...
This test was sometimes timing out in `OS X`. Remove the timeout and
clean up the code.
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/5339
2016-02-27 17:15:38 +11:00
Andreas Madsen
00660f55c8
benchmark: move string-decoder to its own category
...
PR-URL: https://github.com/nodejs/node/pull/5177
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2016-02-27 17:15:37 +11:00
Andreas Madsen
4650cb3818
benchmark: fix configuation parameters
...
The benchmark runner spawns new processes for each configuration. The
specific configuration is transfered by process.argv. This means that
the values have to be parsed. As of right now only numbers and strings
are parsed correctly. However other values such as objects where used.
This fixes the benchmarks that used non-string/number values and
prevents future issues by asserting the type.
PR-URL: https://github.com/nodejs/node/pull/5177
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2016-02-27 17:15:37 +11:00
Andreas Madsen
3ccb275139
benchmark: merge url.js with url-resolve.js
...
url.js was broken since it didn't use the common.js runner. This fixes
that issue by merging it with url-resolve.js, which also benchmarks
url.resolve.
PR-URL: https://github.com/nodejs/node/pull/5177
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2016-02-27 17:15:37 +11:00
Andreas Madsen
c1e7dbffaa
benchmark: move misc to categorized directories
...
PR-URL: https://github.com/nodejs/node/pull/5177
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2016-02-27 17:15:36 +11:00
Phillip Johnsen
7f2cf9af5c
doc: explicit about VS 2015 support in readme
...
`vcbuild.bat` already supports both Visual Studio 2013 and 2015.
PR-URL: https://github.com/nodejs/node/pull/5406
Reviewed-By: Alexis Campailla <orangemocha@nodejs.org >
Reviewed-By: Rod Vagg <rod@vagg.org >
2016-02-27 17:15:36 +11:00
Rich Trott
12d3cdbfea
doc: remove out-of-date matter from internal docs
...
Remove out-of-date stability index material from `tools/doc/README.md`.
The stability index is documented in `doc/api/documentation.markdown`.
PR-URL: https://github.com/nodejs/node/pull/5421
Reviewed-By: Evan Lucas <evanlucas@me.com >
2016-02-27 17:15:36 +11:00
Rich Trott
43853679f7
doc: copyedit util doc
...
Add verbs to make sentence fragments less fragmentary.
PR-URL: https://github.com/nodejs/node/pull/5399
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-27 17:15:35 +11:00
Stefan Budeanu
479a43c876
test: allow passing args to executable
...
Add --node-args option that will pass arguments.
PR-URL: https://github.com/nodejs/node/pull/5376
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2016-02-27 17:15:35 +11:00
Marc Cuva
903e8d09e1
doc: fix typo in pbkdf2Sync code sample
...
Function name in code sample had the wrong capitalization.
PR-URL: https://github.com/nodejs/node/pull/5306
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-27 17:15:35 +11:00
Chinedu Francis Nwafili
79b1c22c9f
doc: fix buf.readInt16LE output
...
Previous example didn't account for the 1 byte offset
PR-URL: https://github.com/nodejs/node/pull/5282
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-27 17:15:34 +11:00
cjihrig
e46915f2f3
doc: note util.isError() @@toStringTag limitations
...
util.isError() is the only remaining util.is*() method that
depends on Object.prototype.toString() behavior. This commit
notes the limitations of isError() related to @@toStringTag.
Refs: https://github.com/nodejs/node/pull/2201
PR-URL: https://github.com/nodejs/node/pull/5414
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2016-02-27 17:15:34 +11:00
Ben Noordhuis
51db48f741
src,tools: remove null sentinel from source array
...
PR-URL: https://github.com/nodejs/node/pull/5418
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-02-27 17:15:34 +11:00
Ben Noordhuis
03a5daba55
src,tools: drop nul byte from built-in source code
...
PR-URL: https://github.com/nodejs/node/pull/5418
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-02-27 17:15:33 +11:00
Ben Noordhuis
17d14f3346
src,tools: allow utf-8 in built-in js source code
...
PR-URL: https://github.com/nodejs/node/pull/5418
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-02-27 17:15:33 +11:00
Dirceu Pereira Tiegs
935fd21fff
doc: clarify error handling in net.createServer
...
Remove indications that an error argument is sent to the `listen()` callback.
Fixes: https://github.com/nodejs/node/issues/5345
PR-URL: https://github.com/nodejs/node/pull/5353
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-02-27 17:15:32 +11:00
Ron Korving
93dce6d4fe
doc: document fs.datasync(Sync)
...
The APIs are implemented but currently not documented.
PR-URL: https://github.com/nodejs/node/pull/5402
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Rod Vagg <rod@vagg.org >
2016-02-27 17:15:32 +11:00
Rod Vagg
96daf51358
doc: add Evan Lucas to the CTC
...
Approved at CTC meeting
https://github.com/nodejs/node/issues/5409
Reviewers are CTC members who voted for this.
PR-URL: https://github.com/nodejs/node/pull/5275
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Alexis Campailla <alexis@janeasystems.com >
Reviewed-By: Chris Dickinson <chris@neversaw.us >
2016-02-27 17:15:32 +11:00
Rod Vagg
31b405d0cf
doc: add Rich Trott to the CTC
...
Approved at CTC meeting
https://github.com/nodejs/node/issues/5409
Reviewers are CTC members who voted for this.
PR-URL: https://github.com/nodejs/node/pull/5276
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Alexis Campailla <alexis@janeasystems.com >
Reviewed-By: Chris Dickinson <chris@neversaw.us >
2016-02-27 17:15:31 +11:00
Rod Vagg
bcd154e402
doc: add Ali Ijaz Sheikh to the CTC
...
Approved at CTC meeting
https://github.com/nodejs/node/issues/5409
Reviewers are CTC members who voted for this.
PR-URL: https://github.com/nodejs/node/pull/5277
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Alexis Campailla <alexis@janeasystems.com >
Reviewed-By: Chris Dickinson <chris@neversaw.us >
2016-02-27 17:15:31 +11:00
Rod Vagg
9d0330c804
doc: add Сковорода Никита Андреевич to the CTC
...
Approved at CTC meeting
https://github.com/nodejs/node/issues/5409
Reviewers are CTC members who voted for this.
PR-URL: https://github.com/nodejs/node/pull/5278
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Alexis Campailla <alexis@janeasystems.com >
Reviewed-By: Chris Dickinson <chris@neversaw.us >
2016-02-27 17:15:30 +11:00
Rich Trott
ff75023812
test: fix test-timers.reliability on OS X
...
Fixes: https://github.com/nodejs/node/issues/4404
PR-URL: https://github.com/nodejs/node/pull/5379
Reviewed-By: Julien Gilli <jgilli@fastmail.fm >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2016-02-27 17:15:30 +11:00
Rich Trott
5ffd7430d1
tools: apply custom buffer lint rule to /lib only
...
The lint rule is there to avoid a circular-dependency issue that only
applies to `/lib`. In preparation for linting `/benchmark`, apply that
rule to `/lib` only to avoid churn in `/benchmark`.
Refs: https://github.com/nodejs/node/issues/3983#issuecomment-158956113
PR-URL: https://github.com/nodejs/node/pull/5371
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-02-27 17:15:29 +11:00
Rich Trott
fa5d28f246
tools: enable additional lint rules
...
Enable additional likely-uncontroversial lint rules:
* `comma-dangle` set to prohibit dangling commas on objects and arrays
that are defined on a single line. Multi-line definitions can use or
omit a trailing comma.
* `no-unused-labels` Prohibits defining a label that is not used.
* `no-path-concat` Prohibits string-concatenation using i`__dirname` and
`__filename`. Use `path.join()`, `path.resolve()`, or template strings
instead.
* `no-new-symbol` disallow use of `new` operator with `Symbol` object.
Violating this rule would result in a `TypeError` at runtime.`
PR-URL: https://github.com/nodejs/node/pull/5357
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
2016-02-27 17:15:29 +11:00
Jeremiah Senkpiel
365cc63783
doc: add "building node with ninja" guide
...
PR-URL: https://github.com/nodejs/node/pull/4767
Refs: https://github.com/nodejs/docs/pull/38
Reviewed-By: Bryan English <bryan@bryanenglish.com >
Reviewed-By: Stephan Belanger <admin@stephenbelanger.com >
2016-02-27 17:15:29 +11:00
cjihrig
2b00c315e1
doc: mention prototype check in deepStrictEqual()
...
The docs for assert.deepStrictEqual() do not currently mention
that prototypes are compared for objects. This commit adds that
information to the documentation.
Fixes: https://github.com/nodejs/node/issues/5365
PR-URL: https://github.com/nodejs/node/pull/5367
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com >
Reviewed-By: Benjamin Gruenbaum <inglor@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2016-02-27 17:15:28 +11:00