- Mar 22, 2015
-
-
Rod Vagg authored
Update AUTHORS file using tools/update-authors.sh PR-URL: https://github.com/iojs/io.js/pull/1234 Reviewed-By:
Roman Reiss <me@silverwind.io> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Mathieu Darse authored
PR-URL: https://github.com/iojs/io.js/pull/1230 Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Fedor Indutny authored
Stdin is purely read-only stream. Although, `net.Socket` might be used to create it if stdin is in fact a Pipe or TCP socket, the `stream.Duplex` should not try to call `.end()` on it. Fix: https://github.com/iojs/io.js/issues/1068 PR-URL: https://github.com/iojs/io.js/pull/1233 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com>
-
Brendan Ashworth authored
This commit fixes a small bug introduced in 671fbd5a that caused the test to not be run. crypto was properly checked, but since tls was not imported, a TypeError would be thrown in the `try {} catch {}` block and falsely reported as no crypto. This is now fixed. PR-URL: https://github.com/iojs/io.js/pull/1141 Reviewed-By:
Johan Bergström <bugs@bergstroem.nu>
-
- Mar 21, 2015
-
-
Ben Noordhuis authored
It's good practice now to call JS functions that don't execute in a specific scope with v8::Null() as the receiver. Update the addons documentation. PR-URL: https://github.com/iojs/io.js/pull/1125 Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Wholesale importing an entire namespace with `using namespace` is a bad practice. Remove it from the addons documentation and replace it with proper `using` directives. Wrap code in a namespace while we are here. PR-URL: https://github.com/iojs/io.js/pull/1125 Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
v8::Handle is on its way out, to be replaced with v8::Local. Update the addons documentation accordingly. PR-URL: https://github.com/iojs/io.js/pull/1125 Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
Remove unnecessary v8::HandleScope uses from the addons documentation. C++ API callbacks run in an implicit v8::HandleScope, there is no need to declare one in the callback function. PR-URL: https://github.com/iojs/io.js/pull/1125 Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
v8::Isolate::GetCurrent() is slated for deprecation. Replace its uses in the addons documentation with v8::Object::GetIsolate(), etc. PR-URL: https://github.com/iojs/io.js/pull/1125 Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
It turns out we have little to no test coverage for setTimeout() and setInterval() calls with optional arguments. Now we do. PR-URL: https://github.com/iojs/io.js/pull/1221 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
The common case is where setInterval() is called with two arguments, the callback and the timeout. Specifying optional arguments in the parameter list forces common case calls to go through an arguments adaptor stack frame. PR-URL: https://github.com/iojs/io.js/pull/1221 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
The common case is where setTimeout() is called with two arguments, the callback and the timeout. Specifying optional arguments in the parameter list forces common case calls to go through an arguments adaptor stack frame. PR-URL: https://github.com/iojs/io.js/pull/1221 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Fedor Indutny authored
FreeBSD has a nasty bug with SA_RESETHAND reseting the SA_SIGINFO, that is in turn set for a libthr wrapper. This leads to a crash. Work around the issue by manually setting SIG_DFL in the signal handler. Fix: https://github.com/joyent/node/issues/9326 PR-URL: https://github.com/iojs/io.js/pull/1218 Reviewed-By:
Johan Bergström <bugs@bergstroem.nu> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Michaël Zasso authored
Previously, the minimal argument to require the current directory was require('./'). This commits allows to skip the trailing slash. Fixes: https://github.com/iojs/io.js/issues/1178 PR-URL: https://github.com/iojs/io.js/pull/1185 Reviewed-By:Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Christian Tellnes <christian@tellnes.no> Reviewed-By:
Roman Reiss <me@silverwind.io>
-
- Mar 20, 2015
-
-
Rod Vagg authored
-
Rod Vagg authored
Notable Changes: * path: New type-checking on path.resolve() <https://github.com/iojs/io.js/pull/1153> uncovered some edge-cases being relied upon in the wild, most notably path.dirname(undefined). Type-checking has been loosened for path.dirname(), path.basename(), and path.extname(), (Colin Ihrig) <https://github.com/iojs/io.js/pull/1216>. * querystring: Internal optimizations in querystring.parse() and querystring.stringify() <https://github.com/iojs/io.js/pull/847> prevented Number literals from being properly converted via querystring.escape() <https://github.com/iojs/io.js/pull/1208>, exposing a blind-spot in the test suite. The bug and the tests have now been fixed (Jeremiah Senkpiel) <https://github.com/iojs/io.js/pull/1213>.
-
Jeremiah Senkpiel authored
stringifyPrimitive has always failed to stringify numbers since its introduction in 422d3c93. This went uncaught due to encodeURIComponent's string coercion. Fixes: https://github.com/iojs/io.js/issues/1208 PR-URL: https://github.com/iojs/io.js/pull/1213 Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Brian White <mscdex@mscdex.net>
-
Jeremiah Senkpiel authored
Fixes a number parsing regression introduced in 85a92a37 Fixes: https://github.com/iojs/io.js/issues/1208 PR-URL: https://github.com/iojs/io.js/pull/1213 Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Brian White <mscdex@mscdex.net>
-
cjihrig authored
a465840313f548b913eb2bd8ea3d26c2ab5dcebb added strict type checking for the methods in the path module. However, dirname(), basename(), and extname() actually had some undocumented uses in the wild. This commit loosens the type checking on those methods. Fixes: https://github.com/iojs/io.js/issues/1215 PR-URL: https://github.com/iojs/io.js/pull/1216 Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Johan Bergström authored
A common convention in auto* is to call make check rather than make test. Let one alias the other PR-URL: https://github.com/iojs/io.js/pull/1211 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Ben Noordhuis authored
Commit 8b2363d2 ("configure: use gcc and g++ as CC and CXX defaults") switches the CC and CXX defaults but it turns out that GYP uses cc and c++ as defaults on OS X. It also made the configure script complain about old compilers because the xcode gcc identifies as v4.2.1, whereas cc is less ambiguous about it being a clang hybrid. PR-URL: https://github.com/iojs/io.js/pull/1210 Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By:
Johan Bergström <bugs@bergstroem.nu>
-
Ben Noordhuis authored
It's technically undefined behavior to mix malloc with delete[] and new char[] with free(). smalloc was using new char[] in one place and malloc() in another but in both cases the memory was freed with free(). PR-URL: https://github.com/iojs/io.js/pull/1205 Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Chris Dickinson authored
-
Chris Dickinson authored
Notable Changes: * node: a new -r or --require command-line option can be used to pre-load modules at start-up (Ali Ijaz Sheikh) * querystring: parse() and stringify() are now faster (Brian White) * http: the http.ClientRequest#flush() method has been deprecated and replaced with http.ClientRequest#flushHeaders() to match the same change now in Node.js v0.12 as per https://github.com/joyent/node/pull/9048 (Yosuke Furukawa) * net: allow server.listen() to accept a String option for port, e.g. { port: "1234" }, to match the same option being accepted in net.connect() as of https://github.com/joyent/node/pull/9268 (Ben Noordhuis) * tls: further work on the reported memory leak although there appears to be a minor leak remaining for the use-case in question, track progress at https://github.com/iojs/io.js/issues/1075. * v8: backport a fix for an integer overflow when --max_old_space_size values above 4096 are used (Ben Noordhuis) * platforms: the io.js CI system now reports passes on FreeBSD and SmartOS (_Solaris_). * npm: upgrade npm to 2.7.1. See the npm CHANGELOG.md for details. https://github.com/npm/npm/blob/master/CHANGELOG.md#v271-2015-03-05
-
Shigeki Ohtsu authored
All sources are just extracted from tarball into deps/openssl/openssl. change all openssl/include/openssl/*.h to include resolved symbolic links and openssl/crypto/opensslconf.h to refer config/opensslconf.h sha256-x86_64.pl does not exist in the origin openssl distribution. It was copied from sha512-x86_64.pl and both sha256/sha512 scripts were modified so as to generates only one asm file specified as its key hash length. `x86masm.pl` was mistakenly using .486 instruction set, why `cpuid` (and perhaps others) are requiring .686. removed vpaesni-x86_64.asm in x64-win32-masm - it is no longer used. Fixes: https://github.com/iojs/io.js/issues/1186 PR-URL: https://github.com/iojs/io.js/pull/1206 Reviewed-By:
Fedor Indutny <fedor@indutny.com> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Aleksanteri Negru-Vode authored
PR-URL: https://github.com/iojs/io.js/pull/1204 Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
- Mar 19, 2015
-
-
Thorsten Lorenz authored
- using an overload of Alloc that does the same that was being done inside `Buffer::New` The overload we now call inside `smalloc.cc` takes care of the same as the code that was removed: if (length == 0) return Alloc(env, obj, nullptr, length, type); char* data = static_cast<char*>(malloc(length)); if (data == nullptr) { FatalError("node::smalloc::Alloc(v8::Handle<v8::Object>, size_t," " v8::ExternalArrayType)", "Out Of Memory"); } Alloc(env, obj, data, length, type); PR-URL: https://github.com/iojs/io.js/pull/1144 Reviewed-By:Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Trevor Norris <trev.norris@gmail.com>
-
Ali Ijaz Sheikh authored
This patch adds a command line option (-r/--require) that allows one to provide modules on the command line that will be 'required' during node startup. This can be useful for debugging, tracing, memory leak analysis etc. to be preloaded without explicit changes to the user script. The option can be repeated to preload multiple modules. PR-URL: https://github.com/iojs/io.js/pull/881 Reviewed-By:
Trevor Norris <trev.norris@gmail.com> Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Rod Vagg authored
inFreeBSDJail involves an execSync() and is used by localhost_ipv4 so will be unnecessarily expensive, so cache both values and reuse rather than re-evaluate each time. Renamed localhost_ipv4 to localhostIPv4 for style consistency. PR-URL: https://github.com/iojs/io.js/pull/1196 Reviewed-By:
Johan Bergström <bugs@bergstroem.nu>
-
Fedor Indutny authored
The test is timing dependent, ensure that it won't fail on the busy CI boxes. Fix: https://github.com/iojs/io.js/issues/1200 PR-URL: https://github.com/iojs/io.js/pull/1201 Reviewed-By:
Johan Bergström <bugs@bergstroem.nu>
-
Jeremiah Senkpiel authored
This change had been incorrectly committed in f19e9b6a PR-URL: https://github.com/iojs/io.js/pull/1198 Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Ben Noordhuis authored
The current working directory may not exist when the REPL starts up. Don't treat that as an error because it's still possible to do many useful things. This is like the previous commit but for the REPL. Fixes: https://github.com/iojs/io.js/issues/1184 PR-URL: https://github.com/iojs/io.js/pull/1194 Reviewed-By:
Johan Bergström <bugs@bergstroem.nu> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Ben Noordhuis authored
The current working directory may not exist when iojs starts up. Don't treat that as an error because it's still possible to do many useful things, like evaluating a command line script or starting a REPL. This commit also fixes an age-old Windows bug where process.argv[0] was not properly expanded, that's why the parallel/test-process-argv-0 test gets an update as well. Fixes: https://github.com/iojs/io.js/issues/1184 PR-URL: https://github.com/iojs/io.js/pull/1194 Reviewed-By:
Johan Bergström <bugs@bergstroem.nu> Reviewed-By:
Rod Vagg <rod@vagg.org>
-
Johan Bergström authored
FreeBSD jails act differently than your average vm or similar application container. All routing passes through one ip address, which makes things like localhost or 0.0.0.0 resolve differently. Introduce a helper that allows us to verify if we're in a jail and another one for returning an ip address for localhost. Also, skip one test instead of trading additional complexity in common.js for one specific user scenario. PR-URL: https://github.com/iojs/io.js/pull/1167 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
-
Ben Noordhuis authored
Fix a bug where a size_t was negated and passed to a function that takes an int64_t. It works by accident when sizeof(size_t) == sizeof(int64_t) but it causes the value to underflow when size_t is a 32 bits type. v8::Isolate::AdjustAmountOfExternalAllocatedMemory() is the function I'm talking about. The goal of that call is to tell V8 that some memory has been freed but due to that underflow, we were actually reporting that we had just allocated gigabytes of memory. It set off a garbage collector frenzy and essentially brought the VM to a standstill. Fixes: https://github.com/iojs/io.js/issues/1188 PR-URL: https://github.com/iojs/io.js/pull/1192 Reviewed-By:
Fedor Indutny <fedor@indutny.com>
-
- Mar 18, 2015
-
-
Yosuke Furukawa authored
PR-URL: https://github.com/iojs/io.js/pull/1183 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Rod Vagg <rod@vagg.org> Reviewed-By:
Shigeki Ohtsu <ohtsu@iij.ad.jp>
-
Ben Noordhuis authored
test/simple no longer exists, tell contributors to add their tests to test/parallel. PR-URL: https://github.com/iojs/io.js/pull/1181 Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Petka Antonov authored
PR-URL: https://github.com/iojs/io.js/pull/1179 Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
cjihrig <cjihrig@gmail.com>
-
Roman Reiss authored
PR-URL: https://github.com/iojs/io.js/pull/1176 Reviewed-By:
Jeremiah Senkpiel <fishrock123@rocketmail.com>
-
Johan Bergström authored
PR-URL: https://github.com/iojs/io.js/pull/1175 Reviewed-By:
Chris Dickinson <christopher.s.dickinson@gmail.com>
-