-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v5.4.0 propose #4547
v5.4.0 propose #4547
Commits on Jan 6, 2016
-
doc: fix link in addons.markdown
Update link from github.com/rvagg to github.com/nodejs PR-URL: nodejs#4331 Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 699bf2c - Browse repository at this point
Copy the full SHA 699bf2cView commit details -
doc: Typo in buffer.markdown referencing buf.write()
The buffer's write function is documented below the buf.toString function and all of the docs reference "buf" instead of "buffer". PR-URL: nodejs#4324 Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5ce6e99 - Browse repository at this point
Copy the full SHA 5ce6e99View commit details -
doc: fix, modernize examples in docs
* Use single quotes consistently * Modernize examples to use template strings and arrow funcs * Fix a few typos * Example edits for consistency PR-URL: nodejs#4282 Reviewed-By: Chris Dickinson <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 04dd861 - Browse repository at this point
Copy the full SHA 04dd861View commit details -
http: Remove an unnecessary assignment
This just removes an assignment to `ret` of a value that's not used before it's overwritten. Immediately following the assigment is an `if/else` in which both branches assign to `ret` without using it. PR-URL: nodejs#4323 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b841967 - Browse repository at this point
Copy the full SHA b841967View commit details -
debugger: guard against call from non-node context
Fix a segmentation fault when the debug message handler was called from a context without an associated `node::Environment`. Fixes: nodejs#4261 Fixes: nodejs#4322 PR-URL: nodejs#4328 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a5094a3 - Browse repository at this point
Copy the full SHA a5094a3View commit details -
test: try other ipv6 localhost alternatives
PR-URL: nodejs#4325 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 96501e5 - Browse repository at this point
Copy the full SHA 96501e5View commit details -
node: fix erroneously named function call
The initial implementation of setPropByIndex() set the value of an Array by index during development. Though the final form of the function simply pushes passed values to an array as passed by arguments. Thus the functions have been renamed to pushValueToArray() and push_values_to_array_function() respectively. Also add define for maximum number of arguments should be used before hitting the limit of performance increase. Fixes: 494227b "node: improve GetActiveRequests performance" PR-URL: nodejs#3780 Reviewed-By: Fedor Indutny <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8464667 - Browse repository at this point
Copy the full SHA 8464667View commit details -
http_parser: use pushValueToArray for headers
For performance add headers to the headers Array by pushing them on from JS. Benchmark added to demonstrate this case. PR-URL: nodejs#3780 Reviewed-By: Fedor Indutny <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b8366e7 - Browse repository at this point
Copy the full SHA b8366e7View commit details -
fs: use pushValueToArray for readdir(Sync)
Improve performance by pushing directory entries to returned array in batches of 8 using pushValueToArray() in JS. Add benchmarks to demonstrate this improvement. PR-URL: nodejs#3780 Reviewed-By: Fedor Indutny <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e742422 - Browse repository at this point
Copy the full SHA e742422View commit details -
node: improve GetActiveHandles performance
Improve performance of process._getActiveHandles by sending handles in batches to JS to be set on the passed Array. Add test to check proper active handles are returned. Alter implementation of GetActiveRequests to match GetActiveHandles' implementation. PR-URL: nodejs#3780 Reviewed-By: Fedor Indutny <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c8fc217 - Browse repository at this point
Copy the full SHA c8fc217View commit details -
node: improve performance of hrtime()
process.hrtime() was performing too many operations in C++ that could be done faster in JS. Move those operations over by creating a length 4 Uint32Array and perform bitwise operations on the seconds so that it was unnecessary for the native API to do any object creation or set any fields. This has improved performance from ~350 ns/op to ~65 ns/op. Light benchmark included to demonstrate the performance change. PR-URL: nodejs#3780 Reviewed-By: Fedor Indutny <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 89f056b - Browse repository at this point
Copy the full SHA 89f056bView commit details -
node: improve accessor perf of process.env
Set process.env array entries in JS. PR-URL: nodejs#3780 Reviewed-By: Fedor Indutny <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ecef817 - Browse repository at this point
Copy the full SHA ecef817View commit details -
crypto: load PFX chain the same way as regular one
Load the certificate chain from the PFX file the same as we do it for a regular certificate chain. Fix: nodejs#4127 PR-URL: nodejs#4165 Reviewed-By: Ben Noordhuis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fcf632b - Browse repository at this point
Copy the full SHA fcf632bView commit details -
test: fix flaky test-net-error-twice
On Windows there can exist some race condition where the notification of the client's `socket.destroy()` isn't received before the server writes to the socket. This race condition was more evident/reproducible on a single core system. This commit fixes the flakiness by waiting until the server's connection event handler has been called to destroy the client socket and perform the server socket write. Fixes: nodejs#4057 PR-URL: nodejs#4342 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: João Reis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 82f74ca - Browse repository at this point
Copy the full SHA 82f74caView commit details -
repl: use String#repeat instead of Array#join
String#repeat is quite a bit faster than new Array().join(). PR-URL: nodejs#3900 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d11930d - Browse repository at this point
Copy the full SHA d11930dView commit details -
assert: typed array deepequal performance fix
assert.deepEqual: when actual and expected are typed arrays, wrap them in a new Buffer each to increase performance significantly. PR-URL: nodejs#4330 Fixes: nodejs#4294 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d265fc8 - Browse repository at this point
Copy the full SHA d265fc8View commit details -
http: remove excess calls to removeSocket
socket.destroy() triggers a 'close' event from the socket which triggers the onClose handler of HTTPAgent which calls self.removeSocket(). So by calling self.removeSocket() prior to socket.destroy() we end up with two calls to self.removeSocket(). If there are pending requests, removeSocket ends up creating a new socket. So if there are pending requests, each time a request completes, we tear down one socket and create two more. So the total number of sockets grows exponentially and without regard for any maxSockets settings. This was noticed in nodejs#4050. Let's get rid of the extra calls to removeSocket so we only call it once per completed request. PR-URL: nodejs#4172 Reviewed-By: Brian White <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Fedor Indutny <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8f7af9a - Browse repository at this point
Copy the full SHA 8f7af9aView commit details -
repl: Fixed node repl history edge case.
If the deprecated NODE_REPL_HISTORY_FILE is set to default node history file path ($HOME/.node_repl_history) and the file doesn't exist, then node creates the file and then crashes when it tries to parse that file as JSON thinking that it's an older JSON formatted history file. This fixes that bug. This patch also prevents node repl from throwing if the old history file is empty or if $HOME/.node_repl_history is empty. Fixes: nodejs#4102 PR-URL: nodejs#4108 Reviewed-By: Jeremiah Senkpiel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3d41a44 - Browse repository at this point
Copy the full SHA 3d41a44View commit details -
https: use
servername
in agent keyhttps requests with different SNI values should not be sent over the same connection, even if the `host` is the same. Server may want to present different certificate or route the incoming TLS connection differently, depending on the received servername extension. Fix: nodejs#3940 PR-URL: nodejs#4389 Reviewed-By: Ben Noordhuis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ca97e72 - Browse repository at this point
Copy the full SHA ca97e72View commit details -
test: use platformTimeout() in more places
Without these changes, the pi1-raspbian-wheezy CI node was timing out on these tests. PR-URL: nodejs#4387 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6d14b65 - Browse repository at this point
Copy the full SHA 6d14b65View commit details -
test: fix domain-top-level-error-handler-throw
Check the stderr output in the `close` event as it's not guaranteed to be fully available when the `exit` event is fired. PR: nodejs#4364 PR-URL: nodejs#4364 Reviewed-By: Julien Gilli <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 00b37de - Browse repository at this point
Copy the full SHA 00b37deView commit details -
doc: improve addons.markdown copy
General improvements to the documentation in addons.markdown. PR-URL: nodejs#4320 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 57684d6 - Browse repository at this point
Copy the full SHA 57684d6View commit details -
doc: improvements to buffer.markdown copy
General improvements to buffer.markdown including new examples, a few fixes to existing examples, consistent formatting and others PR-URL: nodejs#4370 Reviewed-By: Trevor Norris <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 474a0f0 - Browse repository at this point
Copy the full SHA 474a0f0View commit details -
buffer: refactor create buffer
Use createBuffer to reduce new Uint8Array() and setPrototypeOf. PR-URL: nodejs#4340 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Trevor Norris <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8781c59 - Browse repository at this point
Copy the full SHA 8781c59View commit details -
buffer: faster case for create Buffer from new Buffer(0)
When create Buffer from a Buffer will copy data from old to new even though length is zero. This patch can improve edge case 4x faster. following is benchmark results. new: buffers/buffer_zero.js n=1024: 2463.53891 old: buffers/buffer_zero.js n=1024: 618.70801 PR-URL: nodejs#4326 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6d8053a - Browse repository at this point
Copy the full SHA 6d8053aView commit details -
doc: improve grammar in tls docs
Fix: nodejs#4246 PR-URL: nodejs#4315 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Fedor Indutny <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6450d86 - Browse repository at this point
Copy the full SHA 6450d86View commit details -
http: 451 status code "Unavailable For Legal Reasons"
This http code allows us to provide a fair reason when we can't return some data to the client by legal issues. IETF https://datatracker.ietf.org/doc/draft-ietf-httpbis-legally-restricted-status/ Fixes: nodejs#4376 PR-URL: nodejs#4377 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c77fd68 - Browse repository at this point
Copy the full SHA c77fd68View commit details -
test: test each block in addon.md contains js & cc
Allows more freedom in adding additional headings to addon.markdown, otherwise it'll try and convert each block under a heading to a test case. We need to have at least a .js and a .cc in order to have something to test. Fixes regression caused by adding a new 3rd-level heading in d5863bc PR-URL: nodejs#4411 Reviewed-By: Myles Borins <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 71b79bc - Browse repository at this point
Copy the full SHA 71b79bcView commit details -
PR-URL: nodejs#4384 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e79eda7 - Browse repository at this point
Copy the full SHA e79eda7View commit details -
test: fix http-response-multiheaders
Make sure the server is not closed until both responses have been received. PR-URL: nodejs#3958 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8742090 - Browse repository at this point
Copy the full SHA 8742090View commit details -
test: refactor test-net-connect-options-ipv6
Remove unused variable and refactor checking for event firing. PR-URL: nodejs#4395 Reviewed-By: Brian White <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8c9d0c1 - Browse repository at this point
Copy the full SHA 8c9d0c1View commit details -
Some files in `lib` were using `require` to load modules that were subsequently not used in the file. This removes those `require` statements. PR-URL: nodejs#4396 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b5aaccc - Browse repository at this point
Copy the full SHA b5aacccView commit details -
test: remove unused
util
importsA number of tests in `test/parallel` were importing the `util` module via `require()` but not using `util` for anything. This removes those `require()` statements. PR-URL: nodejs#4397 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3710028 - Browse repository at this point
Copy the full SHA 3710028View commit details -
replStart() was defined but never used. The function has been removed. Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Chris Dickinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 65c40d7 - Browse repository at this point
Copy the full SHA 65c40d7View commit details -
test: remove unused var from test-assert.js
`aethrow` is defined as a function returned from makeBlock() but the function is never used and the call to makeBlock() does not run any tests. PR-URL: nodejs#4405 Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0799a9a - Browse repository at this point
Copy the full SHA 0799a9aView commit details -
test: remove unnecessary assignments
common.js needs to be loaded in all tests so that there is checking for variable leaks and possibly other things. However, it does not need to be assigned to a variable if nothing in common.js is referred to elsewhere in the test. PR-URL: nodejs#4408 Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cd79ec2 - Browse repository at this point
Copy the full SHA cd79ec2View commit details -
child_process: guard against race condition
It is possible that the internal hnadleMessage() might try to send to a channel that has been closed. The result can be an AssertionError. Guard against this. Fixes: nodejs#4205 PR-URL: nodejs#4418 Reviewed-By: Brian White <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2526282 - Browse repository at this point
Copy the full SHA 2526282View commit details -
test: mark test-debug-no-context is flaky
test-debug-no-context is flaky on Windows. Mark as such. Ref: nodejs#4343 PR-URL: nodejs#4421 Reviewed-By: Brian White <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c639d0f - Browse repository at this point
Copy the full SHA c639d0fView commit details -
doc: improve assert.markdown copy
General improvements to assert.markdown copy including new and improved examples PR-URL: nodejs#4360 Reviewed-By: Trevor Norris <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c835ba3 - Browse repository at this point
Copy the full SHA c835ba3View commit details -
doc: catch the WORKING_GROUPS.md bootstrap docs up to date
* Link to the separate CODE_OF_CONDUCT.md file in nodejs/node * Link to the ModerationPolicy.md file in nodejs/TSC PR-URL: nodejs#4367 Reviewed-By: Trevor Norris <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bc1c0dc - Browse repository at this point
Copy the full SHA bc1c0dcView commit details -
test: remove unused variables form http tests
The http tests seem especially prone to including unused variables. This change removes them. PR-URL: nodejs#4422 Reviewed-By: Johan Bergström <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c36ca37 - Browse repository at this point
Copy the full SHA c36ca37View commit details -
test: remove unused variables from TLS tests
Some of the TLS tests have variables that do not get used. This removes those variables. PR-URL: nodejs#4424 Reviewed-By: Johan Bergström <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 585c01f - Browse repository at this point
Copy the full SHA 585c01fView commit details -
test: remove unused variables from HTTPS tests
PR-URL: nodejs#4426 Reviewed-By: Johan Bergström <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 684eb32 - Browse repository at this point
Copy the full SHA 684eb32View commit details -
test: fix flaky child-process-fork-regr-nodejsgh-2847
Windows would die with ECONNRESET most times when running this particular test. This commit makes handling these errors more tolerable. PR-URL: nodejs#4442 Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 03c4bc7 - Browse repository at this point
Copy the full SHA 03c4bc7View commit details -
test: fix flaky cluster-net-send
Before this commit, it was possible on Windows for the server's 'connection' handler to be called *after* the client socket's 'connect' handler. This caused the 'message' event to be missed and the test would never end (timing out in CI). This problem was more easily reproducible on a low resource (slow CPU) Windows (2012r2) installation. This commit waits until both handlers have been called before sending the handle to the master process. Fixes: nodejs#3957 PR-URL: nodejs#4444 Reviewed-By: Rich Trott <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 715afc9 - Browse repository at this point
Copy the full SHA 715afc9View commit details -
test: fix flaky cluster-disconnect-race
On single core Windows systems, process.send() would cause an EPIPE because of the ordering of the IPC channel disconnect and the process.send(). The test was originally only relevant for non-Windows platforms, so this commit merely skips the test on Windows. Fixes: nodejs#4450 PR-URL: nodejs#4457 Reviewed-By: Rich Trott <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e72112f - Browse repository at this point
Copy the full SHA e72112fView commit details -
test: remove unused vars in ChildProcess tests
In addition to removing unused vars, this also fixes an instance where booleans were set presumably to check something but then never used. This now confirms that the events that were setting the booleans are fired. PR-URL: nodejs#4425 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 54004f0 - Browse repository at this point
Copy the full SHA 54004f0View commit details -
test: remove unused variables from net tests
Remove a handful of variables that are declared but never used in the tests for the net module. PR-URL: nodejs#4430 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c6a99dd - Browse repository at this point
Copy the full SHA c6a99ddView commit details -
tools: run tick processor without forking
Using the tick processor no longer creates temporary files or spawns a child process. PR-URL: nodejs#4224 Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]> Reviewed-By: jasnell - James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 14a947f - Browse repository at this point
Copy the full SHA 14a947fView commit details -
doc: fix formatting in process.markdown
All the other properties get an h2/## but process.connected gets an h3/### for no discernible reason. Change it to h2/## like the others. PR-URL: nodejs#4433 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Stephan Belanger <[email protected]> Reviewed-By: Roman Klauke <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9e66735 - Browse repository at this point
Copy the full SHA 9e66735View commit details -
test: extend timeout in Debug mode
Debug mode slows execution speed. There is work afoot to enable Debug mode runs on the continuous integration infrastructure for the project. Some tests are timing out, such as test-net-nodejsGH-5504.js. This change doubles the timeout returned from `common.platformTimeout()` when running in Debug mode. It also removes an unused variable from the aforementioned test-net-nodejsGH-5504.js. PR-URL: nodejs#4431 Reviewed-By: Johan Bergström <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b19d19e - Browse repository at this point
Copy the full SHA b19d19eView commit details -
doc: copyedit setTimeout() documentation
Copyedit the documentation for setTimeout() and enforce wrapping at 80 characters in the markdown file for nearby text. PR-URL: nodejs#4434 Reviewed-By: Trevor Norris <[email protected]> Reviewed-By: jasnell - James M Snell <[email protected]> Reviewed-By: Stephan Belanger <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 150f628 - Browse repository at this point
Copy the full SHA 150f628View commit details -
test: make temp path customizable
In CI we previously passed `NODE_COMMON_PIPE` to the test runner to avoid long filenames. Add an option to the test runner that allows the user to change the temporary directory instead. This also allows us to run test suites in parallel since `NODE_COMMON_PIPE` otherwise would have been used from multiple tests at the same time. PR-URL: nodejs#3325 Reviewed-By: Joao Reis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 55c6946 - Browse repository at this point
Copy the full SHA 55c6946View commit details -
test: don't assume a certain folder structure
A few tests assumed that temp dirs always lived in the same parent folder as fixtures. Make these use `common.tmpDir` instead. PR-URL: nodejs#3325 Reviewed-By: Joao Reis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5110e4d - Browse repository at this point
Copy the full SHA 5110e4dView commit details -
test: don't use cwd for relative path
With the introduction of temporary paths in the test runner realpath tests would bail in scenarios where the temporary folder wasn't in the same directory as the source code. PR-URL: nodejs#4477 Reviewed-By: Rich Trott <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ba24450 - Browse repository at this point
Copy the full SHA ba24450View commit details -
http: fix non-string header value concatenation
Since headers are stored in an empty literal object ({}) instead of an object created with Object.create(null), care must be taken with property names inherited from Object. Currently there are only functions inherited, so we can safely check for existing strings instead. Fixes: nodejs#4456 PR-URL: nodejs#4460 Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ffb4a6e - Browse repository at this point
Copy the full SHA ffb4a6eView commit details -
doc: improve child_process.markdown copy
General improvements to child_process.markdown PR-URL: nodejs#4383 Reviewed-By: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c1bc9a1 - Browse repository at this point
Copy the full SHA c1bc9a1View commit details -
doc: improvements to console.markdown copy
Several improvements including a few new examples PR-URL: nodejs#4428 Reviewed-By: Stephen Belanger <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Evan Lucas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e177cc9 - Browse repository at this point
Copy the full SHA e177cc9View commit details -
doc: improvements to dns.markdown copy
General improvements to dns.markdown copy and examples PR-URL: nodejs#4449 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Stephen Belanger <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ed15962 - Browse repository at this point
Copy the full SHA ed15962View commit details -
doc: improvements to events.markdown copy
General improvements to events.markdown copy including a bit of restructuring and improved examples PR-URL: nodejs#4468 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Stephen Belanger <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ccd75fe - Browse repository at this point
Copy the full SHA ccd75feView commit details -
http: use
self.keepAlive
instead ofself.options.keepAlive
In http.agent, all other options are directly accessed through `self.` not `self.options`. PR-URL: nodejs#4407 Reviewed-By: Brian White <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 083ae16 - Browse repository at this point
Copy the full SHA 083ae16View commit details -
doc: improvements to debugger.markdown copy
General improvements to debugger.markdown PR-URL: nodejs#4436 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Stephen Belanger <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e8bbeec - Browse repository at this point
Copy the full SHA e8bbeecView commit details -
test: remove unused assert module imports
Many test modules load assert but do not use it. This change removes those instances. It also removes a handful of other unused variables when they were nearby. PR-URL: nodejs#4438 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ec0b636 - Browse repository at this point
Copy the full SHA ec0b636View commit details -
test: fix race condition in test-http-client-onerror
Occasionally test-http-client-onerror will fail with a refused connection. This patch fixes the possibility that connections will be attempted before server is listening. PR-URL: nodejs#4346 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f68f86c - Browse repository at this point
Copy the full SHA f68f86cView commit details -
doc: add anchors for _transform _flush _writev in stream.markdown
PR-URL: nodejs#4448 Reviewed-By: Trevor Norris <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5a223d6 - Browse repository at this point
Copy the full SHA 5a223d6View commit details -
The `util.format()` is used frequently, make the method faster is better. R-URL: nodejs#3964 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8039ca0 - Browse repository at this point
Copy the full SHA 8039ca0View commit details -
doc: fix spelling error in lib/url.js comment
PR-URL: nodejs#4390 Reviewed-By: Stephen Belanger <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 40076bf - Browse repository at this point
Copy the full SHA 40076bfView commit details -
doc: explain ClientRequest#setTimeout time unit
State a time unit for the timeout parameter in ClientRequest#setTimeout PR-URL: nodejs#4458 Reviewed-By: Stephen Belanger <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c745b4d - Browse repository at this point
Copy the full SHA c745b4dView commit details -
doc: mention that http.Server inherits from net.Server
PR-URL: nodejs#4455 Reviewed-By: Brian White <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Stephen Belanger <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for eee5082 - Browse repository at this point
Copy the full SHA eee5082View commit details -
test: shorten path for bogus socket
This fixes CI failures for test-net-pipe-connect-errors on Raspberry Pi devices. PR-URL: nodejs#4478 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d46d850 - Browse repository at this point
Copy the full SHA d46d850View commit details -
node: improve performance of process.hrtime()
Move argument validation out of C++ and into JS. Improves performance by about 15-20%. PR-URL: nodejs#4484 Reviewed-By: Trevor Norris <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 921fb54 - Browse repository at this point
Copy the full SHA 921fb54View commit details -
Improves the message when an assertion fires in the test-net-pipe-connect-errors so that it indicates the incorrect value received rather than merely reporting that the value is incorrect. PR-URL: nodejs#4461 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Myles Borins <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3bfc187 - Browse repository at this point
Copy the full SHA 3bfc187View commit details -
test: inherit JOBS from environment
In some virtualized environments the amount of available resources are misleading; for instance `multiprocessing.cpu_count()` on our current 4-core smartos vm's returns `48`. This is not a bug, merely how the vm host provides information about available hardware. Avoid running into issues by overriding `cpu_count()` with `JOBS`. PR-URL: nodejs#4495 Reviewed-By: Brian White <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 08a3490 - Browse repository at this point
Copy the full SHA 08a3490View commit details -
test: clarify role of domains in test
Add a comment to clarify how the tests work and their purpose. Also removes unnecessary assignment of domain module to a variable. PR-URL: nodejs#4474 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Julien Gilli <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f1a66bc - Browse repository at this point
Copy the full SHA f1a66bcView commit details -
Many tests use require() to import modules that subsequently never gets used. This removes those imports and, in a few cases, removes other unused variables from tests. PR-URL: nodejs#4475 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 06043fd - Browse repository at this point
Copy the full SHA 06043fdView commit details -
test: write to tmp dir rather than fixture dir
test-fs-realpath.js was writing files to the fixture dir. This changes it to use the temp directory instead. This also replaces some of the string concatenation for paths with uses of path.join() and path.relative(). PR-URL: nodejs#4489 Reviewed-By: Johan Bergström <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ab3e5c1 - Browse repository at this point
Copy the full SHA ab3e5c1View commit details -
test: refactor test-fs-empty-readStream
Refactor test to remove unnecessary booleans and one unnecesary timer. Instead, throw Error objects where appropriate and rely on common.mustCall(). The timer seemed to be the source of an issue when parallelizing tests. Ref: nodejs#4476 (comment) PR-URL: nodejs#4490 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 02b3a5b - Browse repository at this point
Copy the full SHA 02b3a5bView commit details -
test-child-process-fork-net2.js checks that things happen within certain time constraints, thus doubling as a benchmark test in addition to a functionality test. This change removes the time check, as it was causing the test to fail on SmartOS and Windows (and possibly elsewhere) when the tests were run in parallel on CI. There is no guarantee that other tests won't consume enough resources to slow this test down, so don't check the time constraints (beyond the generous timeout that the test is given by test.py in the first place, of course). If we want to do benchmark/performance tests, we should keep them separate from pure functionality tests. The time check may have been a remnant of the distant past when Node.js was much slower. It predates io.js Ref: nodejs#4476 PR-URL: nodejs#4494 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a703b1b - Browse repository at this point
Copy the full SHA a703b1bView commit details -
PR-URL: nodejs#4357 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6c7bcd5 - Browse repository at this point
Copy the full SHA 6c7bcd5View commit details -
os: fix crash in GetInterfaceAddresses
If uv_interface_addresses() returns UV_ENOSYS then interfaces and count are uninitialised. This can cause a segmentation fault inside GetInterfaceAddresses when it tries to use the invalid interfaces[]. Fix the issue by returning from GetInterfaceAddresses on the UV_ENOSYS error. This issue was observed when using uCLibc-ng version 1.0.9 because uv_interface_addresses() in deps/uv/src/unix/linux-core.c incorrectly undefines HAVE_IFADDRS_H. Signed-off-by: Martin Bark <[email protected]> PR-URL: nodejs#4272 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Saúl Ibarra Corretgé <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e57fd51 - Browse repository at this point
Copy the full SHA e57fd51View commit details -
tls_wrap: clear errors on return
Adopt `MarkPopErrorOnReturn` from `node_crypto.cc`, and use it to clear errors after `SSL_read`/`SSL_write`/`SSL_shutdown` functions. See: nodejs#4485 PR-URL: nodejs#4515 Reviewed-By: Ben Noordhuis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 69343d6 - Browse repository at this point
Copy the full SHA 69343d6View commit details -
doc: improvements to errors.markdown copy
General improvements to errors.markdown including improved/revised examples PR-URL: nodejs#4454 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Stephen Belanger <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6cdfa38 - Browse repository at this point
Copy the full SHA 6cdfa38View commit details -
doc: improvements to dgram.markdown copy
General improvements to dgram.markdown copy PR-URL: nodejs#4437 Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Stephan Belanger <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 982f322 - Browse repository at this point
Copy the full SHA 982f322View commit details -
test: remove flaky designations for tests
Three tests designated as flaky on Linux have not failed on the continuous integration server in a long time. Removing flaky designation for these tests. Fixes: nodejs#4446 PR-URL: nodejs#4519 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Brian White <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e04a840 - Browse repository at this point
Copy the full SHA e04a840View commit details -
test: fix flaky test-http-agent-keepalive
Remove timeout delay causing flakiness on SmartOS. Fixes: nodejs#4492 PR-URL: nodejs#4524 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 46fefbc - Browse repository at this point
Copy the full SHA 46fefbcView commit details -
Use common.platformTimeout() to fix flaky test-stream2-readable-empty-buffer-no-eofi on Raspberry Pis. Fixes: nodejs#4493 PR-URL: nodejs#4516 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell<[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 30b0d75 - Browse repository at this point
Copy the full SHA 30b0d75View commit details -
http: handle errors on idle sockets
This change adds a new event handler to the `error` event of the socket after it has been used by the http_client. The purpose of this change is to catch errors on *keep alived* connections from idle sockets that otherwise will cause an uncaugh error event on the application. Fix: nodejs#3595 PR-URL: nodejs#4482 Reviewed-By: Fedor Indutny <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1dd2d01 - Browse repository at this point
Copy the full SHA 1dd2d01View commit details -
test: fix flaky test-cluster-shared-leak
Wait for worker2 to come online before doing anything that might result in an EPIPE. Fixes flakiness of test on Windows. Fixes: nodejs#3956 PR-URL: nodejs#4510 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: James M Snell<[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 984db93 - Browse repository at this point
Copy the full SHA 984db93View commit details -
test: remove unused vars from parallel tests
Remove all remaining unused variables from tests in test/parallel. PR-URL: nodejs#4511 Reviewed-By: James M Snell<[email protected]> Reviewed-By: Johan Bergström <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ae02466 - Browse repository at this point
Copy the full SHA ae02466View commit details -
test: add test-domain-exit-dispose-again back
1c85849 "fixed" test-domain-exit-dispose-again by changing its logic to test that process.domain was cleared properly in case an error was thrown from a timer's callback. However, it became clear when reviewing a recent change that refactors lib/timers.js that it was not quite the intention of the original test. Thus, this change adds the original implementation of test-domain-exit-dispose-again back, with comments that make its implementation easier to understand. It also preserve the changes made by 1c85849, but it moves them to a new test file named test-timers-reset-process-domain-on-throw.js. PR: nodejs#4256 PR-URL: nodejs#4256 Reviewed-By: Jeremiah Senkpiel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2a69ab3 - Browse repository at this point
Copy the full SHA 2a69ab3View commit details -
doc: fix numbering in stream.markdown
PR-URL: nodejs#4538 Reviewed-By: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 35aec4c - Browse repository at this point
Copy the full SHA 35aec4cView commit details -
doc: close backtick in process.title description
PR-URL: nodejs#4534 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5be0259 - Browse repository at this point
Copy the full SHA 5be0259View commit details -
Remove unused vars in tests PR-URL: nodejs#4536 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Conflicts: test/parallel/test-timers-throw-when-cb-not-function.js
Configuration menu - View commit details
-
Copy full SHA for 4b14f1c - Browse repository at this point
Copy the full SHA 4b14f1cView commit details -
tools: implement no-unused-vars for eslint
PR-URL: nodejs#4536 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 386030b - Browse repository at this point
Copy the full SHA 386030bView commit details -
doc: fix heading level error in Buffer doc
tools/doc/html.js in make doc throws an error in checking a heading level in the markdown file. PR-URL: nodejs#4537 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 334e739 - Browse repository at this point
Copy the full SHA 334e739View commit details -
tools: fix warning in doc parsing
The description of "[start[, end]]" in the doc shows warning of "invalid param" when parsing an optional parameter in the section. This fixes insufficient trimming of right square brackets. PR-URL: nodejs#4537 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ca9812c - Browse repository at this point
Copy the full SHA ca9812cView commit details -
test: fix linting for the v5.x branch
PR-URL: nodejs#4547 Reviewed-By: Myles Borins <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4220d25 - Browse repository at this point
Copy the full SHA 4220d25View commit details -
2016-01-06, Version 5.4.0 (Stable)
* http: - A new status code was added: 451 - "Unavailable For Legal Reasons" (Max Barinov) nodejs#4377 - Idle sockets that have been kept alive now handle errors (José F. Romaniello) nodejs#4482 * This release also includes several minor performance improvements: - assert: deepEqual is now speedier when comparing TypedArrays (Claudio Rodriguez) nodejs#4330 - lib: Use arrow functions instead of bind where possible (Minwoo Jung) nodejs#3622 - node: Improved accessor perf of process.env (Trevor Norris) nodejs#3780 - node: Improved performance of process.hrtime() (Trevor Norris) nodejs#3780, (Evan Lucas) nodejs#4484 - node: Improved GetActiveHandles performance (Trevor Norris) nodejs#3780 - util: Use faster iteration in util.format() (Jackson Tian) nodejs#3964 PR-URL: nodejs#4547
Configuration menu - View commit details
-
Copy full SHA for af591d4 - Browse repository at this point
Copy the full SHA af591d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 138e1e5 - Browse repository at this point
Copy the full SHA 138e1e5View commit details