summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2014.07.31, Version 0.10.30 (Stable)v0.10.30v0.10.30-releaseTimothy J Fontaine2014-07-313-2/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* uv: Upgrade to v0.10.28Timothy J Fontaine2014-07-3110-10/+125
|
* v8: Interrupts must not mask stack overflow.Fedor Indutny2014-07-311-7/+2
| | | | Backport of https://codereview.chromium.org/339883002
* npm: Upgrade to v1.4.21Timothy J Fontaine2014-07-31424-2536/+6747
|
* module: eliminate double `getenv()`Maciej Małecki2014-07-311-2/+3
| | | | | `process.env` access results in a synchronous `getenv` call. Cache the first result instead and save one syscall.
* streams: remove unused require('assert')Rod Vagg2014-07-311-1/+0
|
* timers: backport f8193abJulien Gilli2014-07-319-13/+228
| | | | | | | | | | | | | | | | | | | | 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>
* gyp: do not rm unused openssl syms on osx/linuxFedor Indutny2014-07-311-0/+13
| | | | | | fix #8026 Reviewed-By: Fedor Indutny <fedor@indutny.com>
* buffer: fix sign overflow in `readUIn32BE`Fedor Indutny2014-07-292-2/+18
| | | | | | `|` operation takes precendence on `+`, which will result in `new Buffer('ffffffff', 16).readUInt32BE(0)` returning `-1` instead of `ffffffff`.
* test: fix test-https-foafsslFedor Indutny2014-07-231-12/+23
|
* test: fix test-tls-server-verifyFedor Indutny2014-07-2324-183/+369
| | | | fix #7963
* doc: console.trace takes a message formatSam Roberts2014-07-231-2/+3
| | | | | | | Documentation claimed it accepted a single label argument, as time and timeEnd do, which was incorrect. Signed-off-by: Fedor Indutny <fedor@indutny.com>
* gyp: fix post-mortem in v0.11Fedor Indutny2014-07-231-2/+34
| | | | Expose missing constants and keep symbols on OSX.
* deps: backport 4ed5fde4f from v8 upstreamFedor Indutny2014-07-182-3/+48
| | | | | | | | | | | | | | | | | | 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>
* gyp: do not let `v8dbg_` slip away on osxFedor Indutny2014-07-172-1/+9
| | | | | Pass `-force_load` to linker when linking to `libv8_base` to preserve `v8dbg_` symbols, which are useful for debugging.
* lib: jslint string_decoder.jsFedor Indutny2014-07-151-2/+2
|
* stream2: flush extant data on read of ended streamChris Dickinson2014-07-152-2/+79
| | | | | | | | | | | 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>
* child_process: handle writeUtf8String errorFedor Indutny2014-07-121-0/+1
| | | | | | | When handling `writeUtf8String` error, return after emitting it. Otherwise a runtime failure can occur. fix #7923
* lib: remove and restructure calls to isNaN()cjihrig2014-07-103-3/+3
| | | | | | | | | | 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>
* doc: added X.json to the LOAD_AS_FILE sudo codeMaurice Butler2014-07-071-1/+2
| | | | Signed-off-by: Fedor Indutny <fedor@indutny.com>
* doc: fix console.assert docs, message is a formatSam Roberts2014-07-071-3/+3
| | | | | | | Documentation for console.assert incorrectly described message as a single message, but it is a format. Signed-off-by: Fedor Indutny <fedor@indutny.com>
* deps: cherry-pick eca441b2 from OpenSSLFedor Indutny2014-07-032-1/+32
| | | | | | | | | | 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>
* configure: fix v8 overriding commands on buildTrevor Norris2014-07-021-0/+2
| | | | | | | 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
* doc: fix createCipher descriptionBrian White2014-07-021-2/+2
| | | | Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* constants: add O_NONBLOCK constantFedor Indutny2014-07-021-0/+4
| | | | | | | | It appears that it is defined unconditionally on all supported unixes. fix #7867 #7855 Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* Revert "constants: export O_NONBLOCK"Fedor Indutny2014-07-021-8/+1
| | | | | | This reverts commit 00890e43fb935c8bc5dc150f0f2c96bc465d8a4d. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* Revert "src: fix _XOPEN_SOURCE redefinition warning"Fedor Indutny2014-07-021-10/+4
| | | | | | This reverts commit 885142a5edc2c803fa8b9d92b5d0771379237764. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* Revert "stream: start old-mode read in a next tick"Fedor Indutny2014-06-304-57/+4
| | | | This reverts commit 2efe4ab7616669448f873b0417e9aa81221324e2.
* zlib: do not crash on write after closeFedor Indutny2014-06-272-0/+44
| | | | | | fix #7767 Signed-off-by: Fedor Indutny <fedor@indutny.com>
* util.h: interface compatibilityOguz Bastemur2014-06-271-1/+1
| | | | Signed-off-by: Fedor Indutny <fedor@indutny.com>
* buffer: improve {read,write}{U}Int* methodsNick Apperson2014-06-233-192/+71
| | | | | | | | | | | | | | | 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
* doc: buffer: clarify typed array constructionBen Noordhuis2014-06-221-3/+8
| | | | | | | | | 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>
* node: update changelog to have proper npm versionTimothy J Fontaine2014-06-161-1/+1
| | | | fixes #7793
* build: run wix tool chain out of processTimothy J Fontaine2014-06-131-2/+2
| | | | | | 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.
* node: signing the CLA is no longer a requirementTimothy J Fontaine2014-06-111-6/+0
|
* Now working on 0.10.30Timothy J Fontaine2014-06-091-2/+2
|
* Merge branch 'v0.10.29-release' into v0.10Timothy J Fontaine2014-06-093-2/+34
|\
| * 2014.06.05, Version 0.10.29 (Stable)v0.10.29v0.10.29-releaseTimothy J Fontaine2014-06-093-2/+34
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* fs: remove duplicate checkBrian White2014-06-081-1/+1
| | | | Signed-off-by: Fedor Indutny <fedor@indutny.com>
* v8: shift heap space for aslr on 64bitTimothy J Fontaine2014-06-061-18/+28
| | | | | | 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.
* npm: upgrade to v1.4.14Timothy J Fontaine2014-06-06358-2343/+4050
|
* src: replace usage of String::Utf8ValueTimothy J Fontaine2014-06-0610-68/+158
| | | | | v8::String::Utf8Value previously could allow invalid surrogates when interpreting values.
* string_bytes: Guarantee valid utf-8 outputFelix Geisendörfer2014-06-064-1/+22
| | | | | | | | | | | 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.
* deps/v8: Apply REPLACE_INVALID_UTF8 patchFelix Geisendörfer2014-06-064-17/+55
| | | | | | | | | | - 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.
* string_decoder: Add more commentsFelix Geisendörfer2014-06-061-0/+25
|
* string_decoder: Fix failures from new test casesFelix Geisendörfer2014-06-061-25/+21
| | | | | | 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.
* string_decoder: Improve test coverageFelix Geisendörfer2014-06-061-123/+82
| | | | | | 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!
* stream: start old-mode read in a next tickFedor Indutny2014-06-054-4/+57
| | | | | | | Calling `.read()` in the same tick with `.on('data', ...)` may cause users missing `error` events, because no `error` listeners were set yet. fix #7618
* deps: update openssl to 1.0.1hFedor Indutny2014-06-05147-14050/+1426
|
* doc: fixed wording in child_processChris Barber2014-05-311-1/+2
| | | | Signed-off-by: Fedor Indutny <fedor@indutny.com>