summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-07-312014.07.31, Version 0.10.30 (Stable)Timothy J Fontaine
* uv: Upgrade to v0.10.28 * npm: Upgrade to v1.4.21 * v8: Interrupts must not mask stack overflow. * Revert "stream: start old-mode read in a next tick" (Fedor Indutny) * buffer: fix sign overflow in `readUIn32BE` (Fedor Indutny) * buffer: improve {read,write}{U}Int* methods (Nick Apperson) * child_process: handle writeUtf8String error (Fedor Indutny) * deps: backport 4ed5fde4f from v8 upstream (Fedor Indutny) * deps: cherry-pick eca441b2 from OpenSSL (Fedor Indutny) * lib: remove and restructure calls to isNaN() (cjihrig) * module: eliminate double `getenv()` (Maciej Małecki) * stream2: flush extant data on read of ended stream (Chris Dickinson) * streams: remove unused require('assert') (Rod Vagg) * timers: backport f8193ab (Julien Gilli) * util.h: interface compatibility (Oguz Bastemur) * zlib: do not crash on write after close (Fedor Indutny)
2014-07-31uv: Upgrade to v0.10.28Timothy J Fontaine
2014-07-31v8: Interrupts must not mask stack overflow.Fedor Indutny
Backport of https://codereview.chromium.org/339883002
2014-07-31npm: Upgrade to v1.4.21Timothy J Fontaine
2014-07-31module: eliminate double `getenv()`Maciej Małecki
`process.env` access results in a synchronous `getenv` call. Cache the first result instead and save one syscall.
2014-07-31streams: remove unused require('assert')Rod Vagg
2014-07-31timers: backport f8193abJulien Gilli
Original commit message: timers: use uv_now instead of Date.now This saves a few calls to gettimeofday which can be expensive, and potentially subject to clock drift. Instead use the loop time which uses hrtime internally. In addition to the backport, this commit: - keeps _idleStart timers' property which is still set to Date.now() to avoid breaking existing code that uses it, even if its use is discouraged. - adds automated tests. These tests use a specific branch of libfaketime that hasn't been submitted upstream yet. libfaketime is git cloned if needed when running automated tests. Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
2014-07-31gyp: do not rm unused openssl syms on osx/linuxFedor Indutny
fix #8026 Reviewed-By: Fedor Indutny <fedor@indutny.com>
2014-07-29buffer: fix sign overflow in `readUIn32BE`Fedor Indutny
`|` operation takes precendence on `+`, which will result in `new Buffer('ffffffff', 16).readUInt32BE(0)` returning `-1` instead of `ffffffff`.
2014-07-23test: fix test-https-foafsslFedor Indutny
2014-07-23test: fix test-tls-server-verifyFedor Indutny
fix #7963
2014-07-23doc: console.trace takes a message formatSam Roberts
Documentation claimed it accepted a single label argument, as time and timeEnd do, which was incorrect. Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-07-23gyp: fix post-mortem in v0.11Fedor Indutny
Expose missing constants and keep symbols on OSX.
2014-07-18deps: backport 4ed5fde4f from v8 upstreamFedor Indutny
Original commit message: Fix x64 MathMinMax for negative untagged int32 arguments. An untagged int32 has zeros in the upper half even if it is negative. Using cmpq to compare such numbers will incorrectly ignore the sign. BUG=164442 R=mvstanton@chromium.org Review URL: https://chromiumcodereview.appspot.com/11665007 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@13273 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-07-17gyp: do not let `v8dbg_` slip away on osxFedor Indutny
Pass `-force_load` to linker when linking to `libv8_base` to preserve `v8dbg_` symbols, which are useful for debugging.
2014-07-15lib: jslint string_decoder.jsFedor Indutny
2014-07-15stream2: flush extant data on read of ended streamChris Dickinson
A ReadableStream with a base64 StringDecoder backed by only one or two bytes would fail to output its partial data before ending. This fix adds a check to see if the `read` was triggered by an internal `flow`, and if so, empties any remaining data. fixes #7914. Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-07-12child_process: handle writeUtf8String errorFedor Indutny
When handling `writeUtf8String` error, return after emitting it. Otherwise a runtime failure can occur. fix #7923
2014-07-10lib: remove and restructure calls to isNaN()cjihrig
Switch condition order to check for null before calling isNaN(). Also remove two unnecessary calls to isNaN() that are already covered by calls to isFinite(). This commit targets v0.10, as opposed to #7891, which targets master (suggested by @bnoordhuis). Closes #7840. Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-07-07doc: added X.json to the LOAD_AS_FILE sudo codeMaurice Butler
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-07-07doc: fix console.assert docs, message is a formatSam Roberts
Documentation for console.assert incorrectly described message as a single message, but it is a format. Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-07-03deps: cherry-pick eca441b2 from OpenSSLFedor Indutny
Original commit message: bn_exp.c: fix x86_64-specific crash with one-word modulus. PR: #3397 Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-07-02configure: fix v8 overriding commands on buildTrevor Norris
V8 seems to ignore the default value for want_separate_host_toolset and would override it at build time. Instead always explicitly set the value. Fixes #7833
2014-07-02doc: fix createCipher descriptionBrian White
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
2014-07-02constants: add O_NONBLOCK constantFedor Indutny
It appears that it is defined unconditionally on all supported unixes. fix #7867 #7855 Signed-off-by: Trevor Norris <trev.norris@gmail.com>
2014-07-02Revert "constants: export O_NONBLOCK"Fedor Indutny
This reverts commit 00890e43fb935c8bc5dc150f0f2c96bc465d8a4d. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
2014-07-02Revert "src: fix _XOPEN_SOURCE redefinition warning"Fedor Indutny
This reverts commit 885142a5edc2c803fa8b9d92b5d0771379237764. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
2014-06-30Revert "stream: start old-mode read in a next tick"Fedor Indutny
This reverts commit 2efe4ab7616669448f873b0417e9aa81221324e2.
2014-06-27zlib: do not crash on write after closeFedor Indutny
fix #7767 Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-06-27util.h: interface compatibilityOguz Bastemur
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-06-23buffer: improve {read,write}{U}Int* methodsNick Apperson
Increase the performance and simplify the logic of Buffer#write{U}Int* and Buffer#read{U}Int* methods by placing the byte manipulation code directly inline. Also improve the speed of buffer-write benchmarks by creating a new call directly to each method by using Function() instead of calling by buff[fn]. Signed-off-by: Trevor Norris <trev.norris@gmail.com> Conflicts: lib/buffer.js
2014-06-22doc: buffer: clarify typed array constructionBen Noordhuis
It's possible to construct a typed array from a buffer but the buffer is treated as an array, not a byte array as one might expect. Fixes #7786. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
2014-06-16node: update changelog to have proper npm versionTimothy J Fontaine
fixes #7793
2014-06-13build: run wix tool chain out of processTimothy J Fontaine
Building MSIs for different arch's can sometimes confuse MSBuild and Wix, isntead run the toolchain externally so we don't have to worry about which arch cmd.exe is running as.
2014-06-11node: signing the CLA is no longer a requirementTimothy J Fontaine
2014-06-09Now working on 0.10.30Timothy J Fontaine
2014-06-09Merge branch 'v0.10.29-release' into v0.10Timothy J Fontaine
2014-06-092014.06.05, Version 0.10.29 (Stable)Timothy J Fontaine
* openssl: to 1.0.1h (CVE-2014-0224) * npm: upgrade to 1.4.10 * utf8: Prevent Node from sending invalid UTF-8 (Felix Geisendörfer) - *NOTE* this introduces a breaking change, previously you could construct invalid UTF-8 and invoke an error in a client that was expecting valid UTF-8, now unmatched surrogate pairs are replaced with the unknown UTF-8 character. To restore the old functionality simply have NODE_INVALID_UTF8 environment variable set. * child_process: do not set args before throwing (Greg Sabia Tucker) * child_process: spawn() does not throw TypeError (Greg Sabia Tucker) * constants: export O_NONBLOCK (Fedor Indutny) * crypto: improve memory usage (Alexis Campailla) * fs: close file if fstat() fails in readFile() (cjihrig) * lib: name EventEmitter prototype methods (Ben Noordhuis) * tls: fix performance issue (Alexis Campailla)
2014-06-08fs: remove duplicate checkBrian White
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-06-06v8: shift heap space for aslr on 64bitTimothy J Fontaine
Previously we were only shifting the address space for ASLR on 32bit processes, apply the same shift for 64bit so processes don't get artificially limited native heap.
2014-06-06npm: upgrade to v1.4.14Timothy J Fontaine
2014-06-06src: replace usage of String::Utf8ValueTimothy J Fontaine
v8::String::Utf8Value previously could allow invalid surrogates when interpreting values.
2014-06-06string_bytes: Guarantee valid utf-8 outputFelix Geisendörfer
Previously v8's WriteUtf8 function would produce invalid utf-8 output when encountering unmatched surrogate code units [1]. The new REPLACE_INVALID_UTF8 option fixes that by replacing invalid code points with the unicode replacement character. [1]: JS Strings are defined as arrays of 16 bit unsigned integers. There is no unicode enforcement, so one can easily end up with invalid unicode code unit sequences inside a string.
2014-06-06deps/v8: Apply REPLACE_INVALID_UTF8 patchFelix Geisendörfer
- https://codereview.chromium.org/121173009/ - https://code.google.com/p/v8/source/detail?r=18683 Note: The v8 test case did not cleanly apply, so it's missing from this patch. I'm assuming this is not a problem if the v8 test suite is not part of the node build / test system. If that's the case I'll fix it. Otherwise the test case will be integrated once v8 is upgraded.
2014-06-06string_decoder: Add more commentsFelix Geisendörfer
2014-06-06string_decoder: Fix failures from new test casesFelix Geisendörfer
This patch simplifies the implementation of StringDecoder, fixes the failures from the new test cases, and also no longer relies on v8's WriteUtf8 function to encode individual surrogates.
2014-06-06string_decoder: Improve test coverageFelix Geisendörfer
The test cases are still essentially the same, but now all possible ways of writing a buffer into the decoder are tested, which has exposed a few failing scenarios that had not been discovered so far!
2014-06-05stream: start old-mode read in a next tickFedor Indutny
Calling `.read()` in the same tick with `.on('data', ...)` may cause users missing `error` events, because no `error` listeners were set yet. fix #7618
2014-06-05deps: update openssl to 1.0.1hFedor Indutny
2014-05-31doc: fixed wording in child_processChris Barber
Signed-off-by: Fedor Indutny <fedor@indutny.com>