Rich Trott
3c8f19fcdf
doc: add added: in for tty
...
Refs: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/6783
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-14 12:45:14 -07:00
Rich Trott
5b50b1c255
doc: add added: info for string_decoder
...
PR-URL: https://github.com/nodejs/node/pull/6741
Ref: https://github.com/nodejs/node/issues/6578
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Klauke <romaaan.git@gmail.com >
2016-07-14 12:45:14 -07:00
Anna Henningsen
4474e83b78
doc: add added: information for repl
...
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/7256
Reviewed-By: Julian Duque <julianduquej@gmail.com >
2016-07-14 12:45:14 -07:00
Julian Duque
e6d7bfcbe7
doc: add added: information for readline
...
Got the information from git history, I added the version when Interface
was exported as class (v0.1.104), it was an internal class on previous
versions.
Refs: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/6996
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-14 12:45:14 -07:00
Bryan English
eec0c635ee
doc: add added: information for querystring
...
Module introduced in 7ff04c1f8 .
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/6593
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-07-14 12:45:14 -07:00
Daniel Wang
a870cdcd1f
doc: add added: information for punycode
...
PR-URL: https://github.com/nodejs/node/pull/6805
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-14 12:45:13 -07:00
Julian Duque
f1a37ad749
doc: add added: information for path
...
Got the information from git history mostly, I ignored previous path
methods attached to `node.path` (pre v0.1.16).
Refs: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/6985
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-14 12:45:13 -07:00
Bryan English
8b53f4b27c
doc: add added: information for os
...
Via git spelunking, mostly.
Some functions have been renamed. Used the version in which they were
renamed.
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/6609
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2016-07-14 12:45:13 -07:00
Italo A. Casas
78d361b22b
doc: add added information for net
...
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/7038
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-07-14 12:45:13 -07:00
Anna Henningsen
b08ff33c01
doc: add added: information for https
...
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/7392
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-14 12:45:12 -07:00
Julian Duque
1d99059bb1
doc: add added: information for dns
...
Got the information from git history and I ignored previous version of
dns attached to `node.dns` (pre v0.1.16).
There is a case where `dns.resolveNaptr` were intented to be in v0.7.12 and
it was reverted and addec back on `v0.9.12`, I left the latest version
when module was introduced. Same for `dns.resolvePtr` who was referenced
before but it was only added on `v6.0.0`
Refs: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/7021
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-07-14 12:45:12 -07:00
Adrian Estrada
a0ca24b798
doc: add added: information for console
...
Information extracted from git history.
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/6995
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Julian Duque <julianduquej@gmail.com >
2016-07-14 12:45:12 -07:00
Rich Trott
eb08c17a20
doc: add added: data for cli.md
...
PR-URL: https://github.com/nodejs/node/pull/6960
Refs: https://github.com/nodejs/node/issues/6578
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2016-07-14 12:45:11 -07:00
Anna Henningsen
ec9038478f
doc: add added: information for child_process
...
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/6927
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2016-07-14 12:45:11 -07:00
Rich Trott
e52b2b07d7
doc: add added: information for assert
...
PR-URL: https://github.com/nodejs/node/pull/6688
Ref: https://github.com/nodejs/node/issues/6578
Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Klauke <romaaan.git@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-07-14 12:45:11 -07:00
Anna Henningsen
8404e34665
Revert "test: mark test-vm-timeout flaky on windows"
...
This reverts commit f34caa96d1 .
PR-URL: https://github.com/nodejs/node/pull/7373
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-07-14 12:45:11 -07:00
Anna Henningsen
eab9ced2ee
test: fix flaky test-vm-timeout
...
Likely fix the flaky parallel/test-vm-timeout. Increase the outer
timeout in the test checking for nested timeouts with `vm` scripts
so that its firing won’t interfere with the inner timeout.
Fixes: https://github.com/nodejs/node/issues/6727
PR-URL: https://github.com/nodejs/node/pull/7373
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-07-14 12:45:11 -07:00
Ben Noordhuis
3eea55167d
src: fix memory leak in WriteBuffers() error path
...
Pointed out by Coverity. Introduced in commit 05d30d53 from July 2015
("fs: implemented WriteStream#writev").
WriteBuffers() leaked memory in the synchronous uv_fs_write() error path
when trying to write > 1024 buffers.
PR-URL: https://github.com/nodejs/node/pull/7374
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2016-07-14 12:45:10 -07:00
Ben Noordhuis
23797eb037
src: remove obsolete NOLINT comments
...
Obsoleted by the recent cpplint upgrade.
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:10 -07:00
Ben Noordhuis
68e9fd47c6
tools: fix -Wunused-variable warning
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:10 -07:00
Ben Noordhuis
5aff60e832
src: lint v8abbr.h
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:10 -07:00
Ben Noordhuis
42e7c9d266
src: lint node_lttng_tp.h
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:09 -07:00
Ben Noordhuis
27c2d25be6
src: lint node_win32_perfctr_provider.cc
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:09 -07:00
Ben Noordhuis
0db3aa9afa
build: remove unused files from CPPLINT_FILES
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:09 -07:00
Ben Noordhuis
4f4d3e77ef
src: fix whitespace/indent cpplint warnings
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:09 -07:00
Ben Noordhuis
066064d65f
src: fix whitespace/blank_line cpplint warnings
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:08 -07:00
Ben Noordhuis
44cbe0356d
src: fix runtime/references cpplint warnings
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:08 -07:00
Ben Noordhuis
f530a36c65
src: fix runtime/int cpplint warnings
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:08 -07:00
Ben Noordhuis
d6595adcdb
src: fix runtime/indentation_namespace warnings
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:08 -07:00
Ben Noordhuis
68db091aba
src: fix readability/nolint cpplint warnings
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:08 -07:00
Ben Noordhuis
4748bed736
src: fix readability/namespace cpplint warnings
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:07 -07:00
Ben Noordhuis
785211702a
src: fix readability/inheritance cpplint warnings
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:07 -07:00
Ben Noordhuis
c90ae7fb72
src: fix readability/constructors cpplint warnings
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:07 -07:00
Ben Noordhuis
16f2497994
src: fix readability/braces cpplint warnings
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:07 -07:00
Ben Noordhuis
c8f78a2682
src: fix build/header_guard cpplint warnings
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:06 -07:00
Ben Noordhuis
ccc701e1d5
src: fix build/c++tr1 cpplint warnings
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:06 -07:00
Ben Noordhuis
4a2bd2d515
tools: allow cpplint to run outside git repo
...
This reapplies commit a493dab ("cpplint: make it possible to run
outside git repo") from September 2015, this time with a proper
status line.
PR-URL: https://github.com/nodejs/node/pull/7462
Refs: https://github.com/nodejs/node/issues/2693
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:06 -07:00
Ben Noordhuis
09e98a4457
tools: add back --mode=tap to cpplint
...
This commit reimplements commit 7b45163 ("tools: add tap output to
cpplint") on top of the upgraded copy of cpplint.
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:06 -07:00
Ben Noordhuis
e74f199fe2
tools: disable unwanted cpplint rules again
...
This commit disables the build/include, build/include_alpha,
build/include_order and legal/copyright warnings again.
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:05 -07:00
Ben Noordhuis
391fc80487
tools: update cpplint to r456
...
PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:05 -07:00
Anna Henningsen
dda81b44b0
src: unify implementations of Utf8Value etc.
...
Unify the common code of `Utf8Value`, `TwoByteValue`, `BufferValue`
and `StringBytes::InlineDecoder` into one class. Always make the
result zero-terminated for the first three.
This fixes two problems in passing:
* When the conversion of the input value to String fails,
make the buffer zero-terminated anyway. Previously, this would
have resulted in possibly reading uninitialized data in multiple
places in the code. An instance of that problem can be reproduced
by running e.g.
`valgrind node -e 'net.isIP({ toString() { throw Error() } })'`.
* Previously, `BufferValue` copied one byte too much from the source,
possibly resulting in an out-of-bounds memory access.
This can be reproduced by running e.g.
`valgrind node -e \
'fs.openSync(Buffer.from("node".repeat(8192)), "r")'`.
Further minor changes:
* This lifts the `out()` method of `StringBytes::InlineDecoder`
to the common class so that it can be used when using the
overloaded `operator*` does not seem appropiate.
* Hopefully clearer variable names.
* Add checks to make sure the length of the data does not exceed
the allocated storage size, including the possible null terminator.
PR-URL: https://github.com/nodejs/node/pull/6357
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-07-14 12:45:05 -07:00
Ben Noordhuis
db2b23f06f
src: fix sporadic deadlock in SIGUSR1 handler
...
Calling v8::Debug::DebugBreak() directly from the signal handler is
unsafe because said function tries to grab a mutex. Work around that
by starting a watchdog thread that is woken up from the signal handler,
which then calls v8::Debug::DebugBreak().
Using a watchdog thread also removes the need to use atomic operations
so this commit does away with that.
Fixes: https://github.com/nodejs/node/issues/5368
PR-URL: https://github.com/nodejs/node/pull/5904
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-07-14 12:45:05 -07:00
Anna Henningsen
855759757a
vm: don't print out arrow message for custom error
...
In `AppendExceptionLine()`, which is used both by the `vm`
module and the uncaught exception handler, don’t print anything
to stderr when called from the `vm` module, even if the
thrown object is not a native error instance.
Fixes: https://github.com/nodejs/node/issues/7397
PR-URL: https://github.com/nodejs/node/pull/7398
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-07-14 12:45:04 -07:00
Ingvar Stepanyan
7dbb0d0084
buffer: fix dataview-set benchmark
...
Improves numbers up to 4x by avoiding repetitive dynamic method lookup.
PR-URL: https://github.com/nodejs/node/pull/6922
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
2016-07-14 12:45:04 -07:00
Santiago Gimeno
20d3378969
cluster: reset handle index on close
...
It allows reopening a server after it has been closed.
Fixes: https://github.com/nodejs/node/issues/6693
PR-URL: https://github.com/nodejs/node/pull/6981
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ron Korving <ron@ronkorving.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-14 12:45:04 -07:00
Santiago Gimeno
09349a8b92
cluster: don't send messages if no IPC channel
...
Avoid sending messages if the IPC channel is already disconnected. It
avoids undesired errors when calling `process.disconnect` when there are
still pending IPC messages.
PR-URL: https://github.com/nodejs/node/pull/7132
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-07-14 12:45:04 -07:00
Rich Trott
6a08535dd1
child_process: preserve argument type
...
A previous fix for a `maxBuffer` bug resulted in a change to the
argument type for the `data` event on `child.stdin` and `child.stdout`
when using `child_process.exec()`.
This fixes the `maxBuffer` bug in a way that does not have that side
effect.
PR-URL: https://github.com/nodejs/node/pull/7391
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Jackson Tian <shyvo1987@gmail.com >
Fixes: https://github.com/nodejs/node/issues/7342
Refs: https://github.com/nodejs/node/issues/1901
2016-07-14 12:45:03 -07:00
Rich Trott
fd05b0b289
Revert "child_process: measure buffer length in bytes"
...
This reverts commit c9a5990a76 .
PR-URL: https://github.com/nodejs/node/pull/7391
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Jackson Tian <shyvo1987@gmail.com >
2016-07-14 12:45:03 -07:00
Rich Trott
a31d3161f5
test: add test for exec() known issue
...
PR-URL: https://github.com/nodejs/node/pull/7375
Refs: https://github.com/nodejs/node/issues/7342
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com >
2016-07-14 12:45:03 -07:00
Michaël Zasso
5290c9d38c
build: use BUILDTYPE when building V8 in Makefile
...
Without this it would always compile Release and Debug builds.
Ref: https://github.com/nodejs/node/issues/7477
PR-URL: https://github.com/nodejs/node/pull/7482
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-14 12:45:03 -07:00