- 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>
-
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>
-
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 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
-
- Dec 16, 2014
-
-
cjihrig authored
fs.exists() and fs.existsSync() do not follow the typical error first callback convention. access() and accessSync() are added as alternatives in this commit. Fixes: https://github.com/joyent/node/pull/8714 PR-URL: https://github.com/iojs/io.js/pull/114 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Domenic Denicola <domenic@domenicdenicola.com>
-
- Dec 15, 2014
-
-
Alejandro Oviedo authored
Currently there's an example using http.ServerResponse stream, which has a known bug and will not throw an error while writing after end(). Changed to a writable stream from fs which behaves as expected. Fixes https://github.com/joyent/node/issues/8814. PR-URL: https://github.com/iojs/io.js/pull/155 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Brendan Ashworth <squirrelslikeacorns@gmail.com>
-
Ben Noordhuis authored
I introduced this module over a year ago in a pull request as the v8 module but it was quickly subsumed by the tracing module. The tracing module was recently removed again and that is why this commit introduces the v8 module again, including the new features it picked up commits d23ac0ea and f8076c40. PR-URL: https://github.com/iojs/io.js/pull/131 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Christian Tellnes <christian@tellnes.no> Reviewed-By:
Thorsten Lorenz <thlorenz@gmx.de> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
- Dec 14, 2014
-
-
Ben Noordhuis authored
Move the big endian to little endian conversion logic for UCS2 input from src/string_bytes.cc to src/node_buffer.cc; StringSlice() is the only function that actually needs it and with this commit, a second copy is avoided on big endian architectures.
-
Ben Noordhuis authored
Introduce two-byte overloads of node::Encode() and StringBytes::Encode() that ensure that the input is suitably aligned. Revisits commit 535fec83 from yesterday.
-
Ben Noordhuis authored
Fix a regression that was introduced in commit a38b9178 by removing the bad check. Also rearrange the addon loading logic to ensure that the list of pending addons remains in a consistent state when the shared object fails to load; in particular, when an addon self-registers first, then hits a dynamic linker error in a later constructor. Fixes the following asserting when loading a .node shared object: node: ../src/node.cc:1944: void node::node_module_register(void*): Assertion `(modpending) != (nullptr)' failed. Fixes strongloop/strongops#233. PR-URL: https://github.com/iojs/io.js/pull/154 Reviewed-By:
Ryan Graham <ryan@strongloop.com>
-
- Dec 13, 2014
-
-
Nikolai Vavilov authored
They can't compile io.js anyway. PR-URL: https://github.com/iojs/io.js/pull/156 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Bert Belder <bertbelder@gmail.com>
-
Chris Dickinson authored
Per the TC meeting on 2014-12-10, domains will be "soft deprecated" until a suitable replacement API is available; at which time they will be fully deprecated. Full deprecation will include references to replacement API and the application of util.deprecate to the domain api. PR-URL: https://github.com/iojs/io.js/pull/141 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
- Dec 11, 2014
-
-
Mathias Bynens authored
Refs #118. PR-URL: https://github.com/iojs/io.js/pull/151 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
- Dec 12, 2014
-
-
Rod Vagg authored
PR-URL: https://github.com/iojs/io.js/pull/148 Reviewed-By:
Mikeal Rogers <mikeal.rogers@gmail.com>
-
micnic authored
Adds the feature to define arguments for the function called in domain.run(), this is supposed to be useful when a function is called from another context and some values from the current context are needed as arguments, it's similar to the callback from setTimeout or setInterval. PR-URL: https://github.com/iojs/io.js/pull/15 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Rod Vagg authored
closes #112 PR-URL: https://github.com/iojs/io.js/pull/144/ Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Trevor Norris <trev.norris@gmail.com> Reviewed-By:
Mikeal Rogers <mikeal.rogers@gmail.com>
-
- Dec 11, 2014
-
-
Evan Lucas authored
Fixes regression in require system that prevented loading relative packages via main property in package.json where the file is not index.{ext}. The regression was introduced in commit 36777d2a. PR-URL: https://github.com/iojs/io.js/pull/145 Reviewed-By:Ben Noordhuis <info@bnoordhuis.nl>
-
- Dec 12, 2014
-
-
Ben Noordhuis authored
Commit 691d55fe introduces a regression on OS X when dtrace is enabled (the default.) This commit rectifies that by removing the erroneous platform check. Fixes the following build error: CXX(target) /Users/bnoordhuis/src/iojs/out/Release/obj.target/node/src/node_dtrace.o ../src/node_dtrace.cc:27:10: fatal error: 'node_provider.h' file not found PR-URL: https://github.com/iojs/io.js/pull/150 Reviewed-By:
Miroslav Bajtoš <miro.bajtos@gmail.com>
-
- Dec 11, 2014
-
-
Mikeal Rogers authored
PR-URL: https://github.com/node-forward/node/pull/41 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> @rvagg: cherry-picked 2c7847b3 and e7dec60a from master to v0.12
-
Mikeal Rogers authored
Fixes https://github.com/node-forward/node/issues/4 PR-URL: https://github.com/node-forward/node/pull/9 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> @rvagg: cherry-picked 3cb5f3db from master to v0.12
-
Kevin O'Hara authored
Rewords project messaging in README to make the overall project messaging a bit clearer. More discussion to be found in iojs/io.js#24. PR-URL: https://github.com/iojs/io.js/pull/36 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Steven R. Loomis authored
Previously, 'configure' would not return an exit status if gyp blows up. This can be tested via: date >> node.gyp ; ./configure && echo A-OK You will get "A-OK" even though gyp had failed. PR-URL: https://github.com/joyent/node/pull/8856 Reviewed-By:Ben Noordhuis <info@bnoordhuis.nl>
-
Fedor Indutny authored
In newly introduced `SafeX509ExtPrint` I forgot to insert separators between extensions, which lead to the "DNS:...DNS:..." thing for npm. Fix: iojs/io.js#105 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> PR-URL: https://github.com/iojs/io.js/pull/113.patch
-
- Dec 10, 2014
-
-
brian m. carlson authored
Some distributions disable SSLv3 due to POODLE. In such a case, disable the specific SSLv3 methods and throw an exception, much like the code already does for SSLv2. The SSLv23* code is retained because this is OpenSSL's terminology for "no version in particular". Reviewed-By:
Fedor Indutny <fedor@indutny.com> PR-URL: https://github.com/iojs/io.js/pull/101
-
Ben Noordhuis authored
Based on the ad-hoc benchmark from joyent/node#8638 plus an additional benchmark for user:pass auth URLs. PR-URL: https://github.com/iojs/io.js/pull/102 Reviewed-by:
Chris Dickinson <christopher.s.dickinson@gmail.com>
-
Ben Noordhuis authored
Remove a speed bump from commit 36777d2a by reusing the result of the previous stat() system call. It's a code path that gets called many thousands of times at startup in most applications so shaving off an extra system call can have an appreciable impact on startup times. PR-URL: https://github.com/iojs/io.js/pull/130 Reviewed-by:
Chris Dickinson <christopher.s.dickinson@gmail.com>
-
Ben Noordhuis authored
Seen with g++ 4.9.2 on x86_64 Linux: a SIGSEGV is generated when the input to v8::String::NewFromTwoByte() is not suitably aligned. g++ 4.9.2 emits SSE instructions for copy loops. That requires aligned input but that was something StringBytes::Encode() did not enforce until now. Make a properly aligned copy before handing off the input to V8. We could, as an optimization, check that the pointer is aligned on a two-byte boundary but that is technically still UB; pointers-to-char are allowed to alias other pointers but the reverse is not true: a pointer-to-uint16_t that aliases a pointer-to-char is in violation of the pointer aliasing rules. See https://code.google.com/p/v8/issues/detail?id=3694 Fixes segfaulting test simple/test-stream2-writable. PR-URL: https://github.com/iojs/io.js/pull/127 Reviewed-by:
Trevor Norris <trev.norris@gmail.com>
-
Bert Belder authored
* The test no longer relies on being invoked from a particular working directory to function properly. * fs.symlink() and fs.symlinkSync() are both tested. * The test now cleans up after itself. This commit fixes https://github.com/iojs/io.js/issues/126 PR-URL: https://github.com/iojs/io.js/pull/129 Reviewed-By:Ben Noordhuis <info@bnoordhuis.nl>
-
cjihrig authored
PR-URL: https://github.com/joyent/node/pull/8845 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Juanjo authored
PR-URL: https://github.com/joyent/node/pull/8546 Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
-