- Oct 13, 2015
-
-
Liang-Chi Hsieh authored
The debug process running "node debug a.js" will be stuck when the script ends. This is because the debug handler has been unrefed. We shouldn't unref the debug handler to avoid this problem. PR-URL: https://github.com/nodejs/node/pull/2778 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Rich Trott authored
util is loaded just for one use of util.format(). Replace it with a string template. While we're at it, delete nearby lengthy comment justifying use of fs.readFileSync(). PR-URL: https://github.com/nodejs/node/pull/3324 Reviewed-By:
Michaël Zasso <mic.besace@gmail.com> Reviewed-By:
Johan Bergström <bugs@bergstroem.nu> Reviewed By: Evan Lucas <evanlucas@me.com>
-
Fedor Indutny authored
`CallbackInfo` is now bound to `ArrayBuffer` instance, not `Uint8Array`, therefore `SPREAD_ARG` will abort with: Assertion failed: ((object)->IsUint8Array()) Make changes necessary to migrate it to `ArrayBuffer`. See: https://github.com/nodejs/node/pull/3080#issuecomment-147502167 Reviewed-By:James M Snell <jasnell@gmail.com> Reviewed-By:
Trevor Norris <trev.norris@gmail.com> PR-URL: https://github.com/nodejs/node/pull/3329
-
Rich Trott authored
The Pi 1's in CI don't always fail on the buffer.toString() tests. But they time out sometimes, so let's split the tests up so they don't. PR-URL: https://github.com/nodejs/node/pull/3323 Reviewed By: Evan Lucas <evanlucas@me.com> Reviewed-By:
Brian White <mscdex@mscdex.net> Reviewed By: Trevor Norris <trev.norris@gmail.com>
-
Ryan Graham authored
63644dd1 introduced a regression caused by everyone's favourite JavaScript feature: undefined < 0 === undefined >= 0. Add a case to the existing tests to cover this scenario and then add the check for undefined that makes the test pass. PR-URL: https://github.com/nodejs/node/pull/3331 Reviewed-By:
Fedor Indutny <fedor@indutny.com> Reviewed By: Evan Lucas <evanlucas@me.com>
-
James M Snell authored
The first Node.js LTS release! See https://github.com/nodejs/LTS/ for details of the LTS process. * **icu**: Updated to version 56 with significant performance improvements (Steven R. Loomis) https://github.com/nodejs/node/pull/3281 * **node**: - Added new `-c` (or `--check`) command line argument for checking script syntax without executing the code (Dave Eddy) https://github.com/nodejs/node/pull/2411 - Added `process.versions.icu` to hold the current ICU library version (Evan Lucas) https://github.com/nodejs/node/pull/3102 - Added `process.release.lts` to hold the current LTS codename when the binary is from an active LTS release line (Rod Vagg) https://github.com/nodejs/node/pull/3212 * **npm**: Upgraded to npm 2.14.7 from 2.14.4, see release notes: https://github.com/npm/npm/releases/tag/v2.14.7 for full details (Kat Marchán) https://github.com/nodejs/node/pull/3299 PR-URL: https://github.com/nodejs/node/pull/3258
-
Fedor Indutny authored
When closing the child TLSWrap handle - wait for the proper parent's handle close callback invocation. `uv_close_cb` may be invoked much later than the next libuv tick, depending on the platform. The only platform that currently seem to defer `uv_close_cb` is Windows XP. This behavior was not observed on other Windows systems, and is not possible on Unixes. Fix: https://github.com/nodejs/node/issues/2979 PR-URL: https://github.com/nodejs/node/pull/2991 Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
- Oct 12, 2015
-
-
Trevor Norris authored
If bytesWritten is accessed before the object has been properly constructed then return undefined. Fixes: https://github.com/nodejs/node/issues/3298 PR-URL: https://github.com/nodejs/node/pull/3305 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Rich Trott authored
common does not need util properties anymore. Remove them. PR-URL: https://github.com/nodejs/node/pull/3304 Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By:
Brendan Ashworth <brendan.ashworth@me.com> Reviewed-By:
Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
-
Brian White authored
If a pipe is cleaned up (due to unpipe) during a write that returned false, the source stream can get stuck in a paused state. Fixes: https://github.com/nodejs/node/issues/2323 PR-URL: https://github.com/nodejs/node/pull/2325 Reviewed-By:
Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
-
David Boivin authored
The current wording "This module is used for writing unit tests for your applications, you can access it with require('assert')." implies that this module should only be used in development while unit testing. The article "Error Handling in Node.js" by Joyent (https://www.joyent.com/developers/node/design/errors) uses the assert module in an efficient way to validate required function arguments. PR-URL: https://github.com/nodejs/node/pull/2799 Reviewed-By:Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By:
Rich Trott <rtrott@gmail.com> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
reggi authored
PR-URL: https://github.com/nodejs/node/pull/3291 Reviewed-By:
Roman Reiss <me@silverwind.io> Reviewed-By:
Michaël Zasso <mic.besace@gmail.com>
-
- Oct 11, 2015
-
-
Roman Klauke authored
The node-gyp is now in the nodejs/node-gyp. This commit replaces the repository owner link with the new nodejs/node-gyp link. PR-URL: https://github.com/nodejs/node/pull/3320 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
Michaël Zasso <mic.besace@gmail.com>
-
Rich Trott authored
Fixes a persistently troublesome failing test by splitting it out into multiple parallel tests. Reviewed By: Evan Lucas <evanlucas@me.com> Reviewed By: Trevor Norris <trev.norris@gmail.com> Reviewed By: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/3287
-
Balázs Galambosi authored
Fixes: https://github.com/nodejs/node/issues/3313 PR-URL: https://github.com/nodejs/node/pull/3314 Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By:
Rich Trott <rtrott@gmail.com>
-
Karl Skomski authored
On Big Endian platforms v8 strings are need to converted to Little Endian before searching in utf16le buffer Fixes: https://github.com/nodejs/node/issues/3283 Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Trevor Norris <trev.norris@gmail.com> Reviewed-By:
Michael Dawson <mhdawson@ca.ibm.com> PR-URL: https://github.com/nodejs/node/pull/3295
-
- Oct 10, 2015
-
-
Kat Marchán authored
PR-URL: https://github.com/nodejs/node/pull/3299 Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Rich Trott authored
test-sys.js tests common.inspect() (which is test-specific code) and not sys (which, although deprecated, should still be tested). This commit moves the tests to the not-deprecated util and adds a test to check that deprecated sys and util are the same. PR-URL: https://github.com/nodejs/node/pull/3256 Reviewed-By:
Evan Lucas <evanlucas@me.com>
-
Trevor Norris authored
Accessing prototype properties directly on a typed array will throw. So do an extra check in Buffer's own getters to verify it is being called on an instance. Fixes: https://github.com/nodejs/node/issues/3297 PR-URL: https://github.com/nodejs/node/pull/3302 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Jason Karns authored
Instead of recommending `0` as the magic value to set max listeners to unlimited, recommend `Infinity`. This paves the way for `0` as a magic value eventually being deprecated and finally removed. PR-URL: https://github.com/nodejs/node/pull/2559 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
targos - Michaël Zasso <mic.besace@gmail.com> Reviewed-By:
Brendan Ashworth <brendan.ashworth@me.com> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Dave Hodder authored
PR-URL: https://github.com/nodejs/node/pull/3285 Reviewed-By:
Michaël Zasso <mic.besace@gmail.com> Reviewed-By:
Evan Lucas <evanlucas@me.com> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Alejandro Oviedo authored
Added links to referenced methods. PR-URL: https://github.com/nodejs/node/pull/3186 Reviewed-By:
Roman Reiss <me@silverwind.io>
-
Alejandro Oviedo authored
Added links to referenced methods. PR-URL: https://github.com/nodejs/node/pull/3196 Reviewed-By:
Roman Reiss <me@silverwind.io>>
-
- Oct 09, 2015
-
-
Rich Trott authored
common.inspect() is just util.inspect(). common copies every property from util but this is the only one that gets used and it only gets used in three places. Well, four, but the fourth is removed in a pending PR. This commit removes it. Subsequently, the "copy util to common" part of `common` can be removed altogether. PR-URL: https://github.com/nodejs/node/pull/3257 Reviewed-By:
Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By:
Evan Lucas <evanlucas@me.com>
-
Rich Trott authored
common.PIPE resides in the temp directory (except on Windows). Insure that the temp directory is refreshed in tests that use common.PIPE. PR-URL: https://github.com/nodejs/node/pull/3231 Fixes: https://github.com/nodejs/node/issues/3227 Reviewed-By:
Johan Bergström <bugs@bergstroem.nu>
-
Rich Trott authored
Deprecate _linklist and add test to confirm internal linklist and public _linklist are the same. PR-URL: https://github.com/nodejs/node/pull/3078 Reviewed-By:
Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Steven R. Loomis authored
* ICU 56 was just released yesterday. Update to it. * Notable changes: Unicode 8, CLDR 28, 2-3x number format perf, 20% improvement in Collator startup * more at http://site.icu-project.org/download/56 or in #2917 Also: * cleanup out/**/*.d and deps/icu on "make clean" * cleanup deps/icu on "vcbuild clean" When building from an non-clean directory, it's important to run `make clean` or `vcbuild clean` to remove the existing ICU 55 from the deps path before building. Fixes: https://github.com/nodejs/node/issues/2917 PR-URL: https://github.com/nodejs/node/pull/3281 Reviewed-By:
James M Snell <jasnell@gmail.com>
-
Junliang Yan authored
Fix intermittent test failure on slower machines. Gives test longer time to complete but checks at regular intervals so that the test only runs longer on slower machines or in the failure case. PR-URL: https://github.com/nodejs/node/pull/3218 Fixes: https://github.com/nodejs/node/issues/3215 Reviewed-By:
Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By:
James Snell <jasnell@gmail.com>>
-
Trevor Norris authored
Attempting to check IsAlive() on a JSStream before the isAlive() callback can be set in JS causes a CHECK to fail in MakeCallback. Instead return false if the callback hasn't been set. PR-URL: https://github.com/nodejs/node/pull/3282 Reviewed-By:
Fedor Indutny <fedor.indutny@gmail.com>
-
Ben Noordhuis authored
`x instanceof f` where f is an arrow function throws a (spec-conforming) "Function has non-object prototype 'undefined' in instanceof check" exception. Add a workaround so that it's possible to pass arrow functions as the second argument to assert.throws(). The try/catch block is a little jarring but swapping around the clauses in the if statements changes the semantics too much. Fixes: https://github.com/nodejs/node/issues/3275 PR-URL: https://github.com/nodejs/node/pull/3276 Reviewed-By:
Michaël Zasso <mic.besace@gmail.com> Reviewed-By:
Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
-
Karl Skomski authored
PR-URL: https://github.com/nodejs/node/pull/3049 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
- Oct 08, 2015
-
-
Junliang Yan authored
Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
Michael Dawson <michael_dawson@ca.ibm.com> PR-URL: https://github.com/nodejs/node/pull/3190
-
Johan Bergström authored
This makes it easier to store icu tarballs outside of the node.js directory which is useful in our CI where git directories are scrubbed between runs. PR-URL: https://github.com/nodejs/node/pull/3200 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Doug Shamoo authored
Direct help requests and technical issues that are not issues with Node.js to the nodejs help repo issue tracker. Add link. PR-URL: https://github.com/nodejs/node/pull/3233 Fixes: https://github.com/nodejs/node/issues/3185 Reviewed-By:
Evan Lucas <evanlucas@me.com> Reviewed-By:
Michaël Zasso <mic.besace@gmail.com> Reviewed-By:
Rich Trott <rtrott@gmail.com>
-
Karl Skomski authored
Adds the string search implementation from v8 which uses naive search if pattern length < 8 or to a specific badness then uses Boyer-Moore-Horspool Added benchmark shows the expected improvements Added option to use ucs2 encoding with Buffer::IndexOf Reviewed-By:
James M Snell <jasnell@gmail.com> Reviewed-By:
Trevor Norris <trev.norris@gmail.com> PR-URL: https://github.com/nodejs/node/pull/2539
-
Trevor Norris authored
Previous logic didn't allow parent to propagate to the init callback properly. The fix now allows the init callback to be called and receive the parent if: - async wrap callbacks are enabled and parent exists - the init callback has been called on the parent and an init callback exists then it will be called regardless of whether async wrap callbacks are disabled. Change the init/pre/post callback checks to see if it has been properly set. This allows removal of the Environment "using_asyncwrap" variable. Pass Isolate to a TryCatch instance. Fixes: https://github.com/nodejs/node/issues/2986 PR-URL: https://github.com/nodejs/node/pull/3216 Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Roman Reiss authored
Using TLS session resumption correctly is not obvious. This added example code should help new users understand how to use it correctly. Related issue: https://github.com/nodejs/node/issues/3132 PR-URL: https://github.com/nodejs/node/pull/3147 Reviewed-By:
Fedor Indutny <fedor.indutny@gmail.com>
-
Jérémy Lal authored
Fixes: https://github.com/nodejs/node/issues/2942 PR-URL: https://github.com/nodejs/node/pull/3228 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Brian White <mscdex@mscdex.net>
-
Rich Trott authored
common.error() is just deprecated util.error() renamed. Remove calls to it and some other extraneous console logging in tests. PR-URL: https://github.com/nodejs/node/pull/3079 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
- Oct 07, 2015
-
-
Ali Ijaz Sheikh authored
This reverts commit 6fff47ff as it is causing issues in upstream: https://codereview.chromium.org/1390923004/ PR-URL: https://github.com/nodejs/node/pull/3237 Reviewed-By:
targos - Michaël Zasso <mic.besace@gmail.com>
-