- Jan 06, 2015
-
-
Ben Noordhuis authored
PR-URL: https://github.com/iojs/io.js/pull/237 Reviewed-By:
Bert Belder <bertbelder@gmail.com> Reviewed-By:
Saúl Ibarra Corretgé <saghul@gmail.com>
-
Ben Noordhuis authored
I was originally going to do this after the v0.11.15 release, but as that release is three weeks overdue now, I decided not to wait any longer; we don't want the delta to get too big. Conflicts: lib/net.js test/simple/simple.status PR-URL: https://github.com/iojs/io.js/pull/236 Reviewed-By:
Bert Belder <bertbelder@gmail.com> Reviewed-By:
Fedor Indutny <fedor@indutny.com>
-
- Jan 05, 2015
-
-
Trevor Norris authored
If the data length passed to smalloc.alloc() the array_length will be zero, causing an overflow check to fail. This prevents that from happening. Signed-off-by:Trevor Norris <trev.norris@gmail.com>
-
- Jan 04, 2015
-
-
cjihrig authored
Socket.prototype.connect() sometimes throws on bad inputs after an asynchronous operation. This commit makes the input validation synchronous. This commit also removes some hard coded IP addresses. PR-URL: https://github.com/joyent/node/pull/8180 Fixes: https://github.com/joyent/node/issues/8140 Reviewed-By:
Trevor Norris <trev.norris@gmail.com> Reviewed-By:
Fedor Indutny <fedor@indutny.com> Reviewed-By:
Timothy J Fontaine <tjfontaine@gmail.com>
-
- Jan 03, 2015
-
-
Steven R. Loomis authored
PR-URL: https://github.com/joyent/node/pull/8964 Reviewed-by:
Trevor Norris <trev.norris@gmail.com>
-
Rod Vagg authored
closes #211 PR-URL: https://github.com/iojs/io.js/pull/229 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
-
Steven R. Loomis authored
Make "--with-intl=none" the default and add "intl-none" option to vcbuild.bat. If icu data is missing print a warning unless either --download=all or --download=icu is set. If set then automatically download, verify (MD5) and unpack the ICU data if not already available. There's a "list" of URLs being used, but right now only the first is picked up. The logic works something like this: * If there is no directory deps/icu, * If no zip file (currently icu4c-54_1-src.zip), * Download zip file (icu-project.org -> sf.net) * Verify the MD5 sum of the zipfile * If bad, print error and exit * Unpack the zipfile into deps/icu * If deps/icu now exists, use it, else fail with help text Add the configuration option "--with-icu-source=..." Usage: * --with-icu-source=/path/to/my/other/icu * --with-icu-source=/path/to/icu54.zip * --with-icu-source=/path/to/icu54.tgz * --with-icu-source=http://example.com/icu54.tar.bz2 Add the configuration option "--with-icu-locals=...". Allows choosing which locales are used in the "small-icu" case. Example: configure --with-intl=small-icu --with-icu-locales=tlh,grc,nl (Also note that as of this writing, neither Klingon nor Ancient Greek are in upstream CLDR data. Serving suggestion only.) Don't use hard coded ../../out paths on windows. This was suggested by @misterdjules as it causes test failures. With this fix, "out" is no longer created on windows and the following can run properly: python tools/test.py simple Reduce space by about 1MB with ICU 54 (over without this patch). Also trims a few other source files, but only conditional on the exact ICU version used. This is to future-proof - a file that is unneeded now may be needed in future ICUs. Also: * Update distclean to remove icu related files * Refactor some code into tools/configure.d/nodedownload.py * Update docs * Add test PR-URL: https://github.com/joyent/node/pull/8719 Fixes: https://github.com/joyent/node/issues/7676#issuecomment-64704230 [trev.norris@gmail.com small change to test's whitespace and logic] Signed-off-by:Trevor Norris <trev.norris@gmail.com>
-
- Dec 31, 2014
-
-
Rod Vagg authored
Closes #163 PR-URL: https://github.com/iojs/io.js/pull/178 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Bert Belder <bertbelder@gmail.com>
-
Ben Noordhuis authored
Document the --trace-deprecation flag and the `process` properties that affect util.deprecate(). Fixes: https://github.com/iojs/io.js/issues/190 PR-URL: https://github.com/iojs/io.js/pull/191 Reviewed-By:
Jonathan Ong <me@jongleberry.com>
-
Aleksey Smolenchuk authored
This makes require('process') always return a reference to the global process object. PR-URL: https://github.com/iojs/io.js/pull/206 Reviewed-By:Ben Noordhuis <info@bnoordhuis.nl>
-
CGavrila authored
The url.parse() function now checks whether an escapable character is in the URL before trying to escape it. PR-URL: https://github.com/joyent/node/pull/8638 [trev.norris@gmail.com: Switch to use continue instead of if] Signed-off-by:
Trevor Norris <trev.norris@gmail.com>
-
Sam Roberts authored
Also, tests to confirm its existence. PR-URL: https://github.com/iojs/io.js/pull/217 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Sam Roberts authored
Like net, http, and https server.close, and socket.end(), etc. PR-URL: https://github.com/iojs/io.js/pull/217 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Sam Roberts authored
Emit the close event asynchronously, after the close, as it is with the net/http close events. PR-URL: https://github.com/iojs/io.js/pull/217 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
- Dec 30, 2014
-
-
Tim Ruffles authored
The maxBuffer option was not self-documenting, so document the unit and its effect. PR-URL: https://github.com/iojs/io.js/pull/209 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Brendan Ashworth authored
This commit adds a return statement to the dgram.Socket.close() function that returns itself after it finishes. This follows along the functionality of the more popular and, dare I say, father-library `lib/net.js`. PR-URL: https://github.com/iojs/io.js/pull/214 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Brendan Ashworth authored
This commit changes `lib/dgram.js` Sockets to, when they are bound to a port / IP, return themselves. This is done in order to allow chaining of methods and be in accordance with the `lib/net.js` library. PR-URL: https://github.com/iojs/io.js/pull/214 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
- Dec 24, 2014
-
-
Nikolai Vavilov authored
The GCC version is no longer relevant since only 4.8 and newer are supported. It's probably safe to assume clang on mac since V8 does so too. PR-URL: https://github.com/iojs/io.js/pull/205 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
- Dec 23, 2014
-
-
Rudi Cilibrasi authored
PR-URL: https://github.com/iojs/io.js/pull/202 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Mark Stosberg authored
`console.time()` and `console.timeEnd()` are very closely related. It's useful to reference them both from each other. Previously, console.time() did not mention that it needed to be paired with a call to console.timeEnd() to be useful, and timeEnd() also failed to mention that console.time() needed to be called first. References in both directions have been added. PR-URL: https://github.com/iojs/io.js/pull/198 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Mark Stosberg authored
Previously the code that builds the Table of Contents threw an exception because of jump from an H1 heading directly to an H3 heading. By changing the H3 heading to an H2, 'make doc' works again. This is also consistent with other docs like console.markdown which use H2 for method call documentation. PR-URL: https://github.com/iojs/io.js/pull/203 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
- Dec 22, 2014
-
-
teppeis authored
Change of Object.keys in ES6 breaks assert.deepEqual about primitive values. V8: https://code.google.com/p/v8/issues/detail?id=3443 Previously deepEqual depends on Object.key that throws an error for a primitive value, but now Object.key does not throw. PR-URL: https://github.com/iojs/io.js/pull/193 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
- Dec 21, 2014
-
-
Nikolai Vavilov authored
They can't compile io.js anyway. PR-URL: https://github.com/iojs/io.js/pull/187 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Ben Noordhuis authored
Replace the call to Array#splice() with a faster open-coded version that creates less garbage. Add a new benchmark to prove it. With the change applied, it scores about 5% higher and that is nothing to sneeze at. PR-URL: https://github.com/iojs/io.js/pull/184 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com>
-
Ben Noordhuis authored
Rename the url.parse() benchmark from url.js to url-parse.js. A follow-up commit is going to add another one for url.resolve(). PR-URL: https://github.com/iojs/io.js/pull/184 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com>
-
- Dec 20, 2014
-
-
Ben Noordhuis authored
Replace the call to Array#splice() with a faster open-coded version that creates less garbage. Add a new benchmark to prove it. With the change applied, it scores a whopping 40% higher. PR-URL: https://github.com/iojs/io.js/pull/185 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com>
-
Ben Noordhuis authored
Don't use Number#toPrecision(), it switches to scientific notation for numbers with more digits than the precision; use Number#toFixed(). PR-URL: https://github.com/iojs/io.js/pull/185 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com>
-
Ben Noordhuis authored
Force V8 to optimize url.parse() before starting the actual benchmark. Tries to minimize variance between successive runs caused by the optimizer kicking in at different points. It does not seem to have much impact, CPU times are roughly the same before and afterwards; url.parse() quickly plateaus at a local optimum where most time is spent in V8 builtins, notably Runtime_StringSplit() and Object::GetElementWithReceiver() calls originating from deps/v8/src/uri.js, with no recurring optimize/deoptimize cycles that I could spot. Still, I don't see any downsides to pre-optimizing the function being benchmarked so in it goes. PR-URL: https://github.com/iojs/io.js/pull/132 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Fedor Indutny <fedor@indutny.com>
-
Jackson Tian authored
Add documentation for the callback parameter of http.ClientRequest's and http.ServerResponse's end methods. Signed-off-by:Julien Gilli <julien.gilli@joyent.com>
-
Julian Duque authored
Currently clearBreakpoint error is confusing, it says "Script not found" when there is no breakpoint, also documentation doesn't include signature for clearBreakpoint. PR-URL: https://github.com/iojs/io.js/pull/175 Reviewed-By:
Miroslav Bajtoš <miroslav@strongloop.com>
-
- Dec 19, 2014
-
-
cjihrig authored
These methods don't follow standard conventions, and shouldn't be used anyway. Fixes: https://github.com/iojs/io.js/issues/103 PR-URL: https://github.com/iojs/io.js/pull/166 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Jackson Tian authored
Add documentation for the callback parameter of http.ClientRequest's and http.ServerResponse's end methods. PR-URL: https://github.com/iojs/io.js/pull/181 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Brendan Ashworth <squirrelslikeacorns@gmail.com>
-
Ben Noordhuis authored
Remove the 'gc' event from the v8 module and remove the supporting infrastructure from src/. It gets the axe because: 1. There are currently no users. It was originally conceived as an upstreamed subset of StrongLoop's strong-agent GC metrics, but the strong-agent code base has evolved considerably since that time and has no use anymore for what is in core. 2. The implementation is not quite sound. It calls into JS land from inside the GC epilog and that is unsafe. We could fix that by delaying the callback until a safe time but because there are no users anyway, removing it is all around easier. PR-URL: https://github.com/iojs/io.js/pull/174 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Chris Dickinson authored
In cases where many small writes are made to a stream lacking _writev, the array data structure backing the WriteReq buffer would greatly increase GC pressure. Specifically, in the fs.WriteStream case, the clearBuffer routine would only clear a single WriteReq from the buffer before exiting, but would cause the entire backing array to be GC'd. Switching to [].shift lessened pressure, but still the bulk of the time was spent in memcpy. This replaces that structure with a linked list-backed queue so that adding and removing from the queue is O(1). In the _writev case, collecting the buffer requires an O(N) loop over the buffer, but that was already being performed to collect callbacks, so slowdown should be neglible. PR-URL: https://github.com/joyent/node/pull/8826 Reviewed-by:
Timothy J Fontaine <tjfontaine@gmail.com> Reviewed-by:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Fixes the following assertion on slow systems, like our ARM buildbot: $ out/Debug/node test/simple/test-timers-unref.js node: ../src/async-wrap-inl.h:101: v8::Handle<v8::Value> node::AsyncWrap::MakeCallback(uint32_t, int, v8::Handle<v8::Value>*): Assertion `cb_v->IsFunction()' failed. Aborted The reason it only manifests on slow systems is that the test starts a 1 ms interval timer, then defers timer.unref.bind({}) to the next tick. On fast systems, the test completes in under a millisecond, before the callback is called. This commit makes timer.unref() check that the receiver actually has a timeout callback property. Fixes #13. PR-URL: https://github.com/iojs/io.js/pull/165 Reviewed-By:Rod Vagg <rod@vagg.org>
-
- Dec 18, 2014
-
-
Ben Noordhuis authored
Fix a Windows-only build error that was introduced in commit 1183ba47 ("zlib: support concatenated gzip files"). Rename the NO_ERROR and FAILED enumerations, they conflict with macros of the same name in <winerror.h>. PR-URL: https://github.com/joyent/node/pull/8893 Reviewed-By:
Fedor Indutny <fedor@indutny.com> Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-by:
Timothy J Fontaine <tjfontaine@gmail.com>
-
Miroslav Bajtoš authored
Fix Interface.setBreakpoint() to correctly handle an attempt to set a breakpoint in the current script when there is no current script. This usually happens when the debugged process is not paused. Fixes: https://github.com/joyent/node/issues/6453 PR-URL: https://github.com/joyent/node/pull/6460 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com>
-
- Dec 17, 2014
-
-
Fedor Indutny authored
* Allow running tests in mixed parallel/sequential modes * Add -J flag for running tests on all available CPUs * Support TEST_THREAD_ID in test/common.js and use it for tmpDir and PORT * make: use -J flag Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> PR-URL: https://github.com/iojs/io.js/pull/172 Fix: iojs/io.js#139
-
Fedor Indutny authored
Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> PR-URL: https://github.com/iojs/io.js/pull/172 Fix: iojs/io.js#139
-
Luis Reis authored
Reviewed-By:
Fedor Indutny <fedor@indutny.com> PR-URL: https://github.com/joyent/node/pull/6442
-