platform/upstream/nodejs.git
9 years agolib: use const to define constants
cjihrig [Wed, 21 Jan 2015 16:36:59 +0000 (11:36 -0500)]
lib: use const to define constants

This commit replaces a number of var statements throughout
the lib code with const statements.

PR-URL: https://github.com/iojs/io.js/pull/541
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agov8: fix template literal NULL pointer deref
Ben Noordhuis [Wed, 21 Jan 2015 00:55:19 +0000 (01:55 +0100)]
v8: fix template literal NULL pointer deref

Fixes a NULL pointer dereference with unterminated template literals.

This is a back-port of commit v8/v8-git-mirror@02218ad from the V8
master branch, see https://code.google.com/p/v8/issues/detail?id=3820.

PR-URL: https://github.com/iojs/io.js/pull/534
Reviewed-By: Caitlin Potter <caitpotter88@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years agov8: optimize `getHeapStatistics`
Vladimir Kurchatkin [Fri, 16 Jan 2015 16:15:17 +0000 (19:15 +0300)]
v8: optimize `getHeapStatistics`

Since setting object properties in C++ can be slow, pass
data to JS using preallocated smalloc buffer and create
object in JS instead.

PR-URL: https://github.com/iojs/io.js/pull/469
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agobenchmark: print score to five decimal places
Yosuke Furukawa [Mon, 19 Jan 2015 19:12:29 +0000 (04:12 +0900)]
benchmark: print score to five decimal places

PR-URL: https://github.com/iojs/io.js/pull/516
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agosrc: silence clang warnings
Trevor Norris [Tue, 20 Jan 2015 23:23:37 +0000 (15:23 -0800)]
src: silence clang warnings

Mark several methods "override" in order to remove build warnings.

PR-URL: https://github.com/iojs/io.js/pull/531
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agosrc: set node_is_initialized in node::Init
Cheng Zhao [Mon, 12 Jan 2015 21:31:25 +0000 (13:31 -0800)]
src: set node_is_initialized in node::Init

This can make node_is_initialized correctly set to true for applications
that use node::Init to embed iojs.

PR-URL: https://github.com/iojs/io.js/pull/225/
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agosrc: clean up unused macros in node_file.cc
Ben Noordhuis [Tue, 20 Jan 2015 22:57:09 +0000 (23:57 +0100)]
src: clean up unused macros in node_file.cc

Remove a few unused or barely used macros from src/node_file.cc.

PR-URL: https://github.com/iojs/io.js/pull/529
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agosrc: rename ASSERT macros in node_crypto.cc
Ben Noordhuis [Tue, 20 Jan 2015 22:55:35 +0000 (23:55 +0100)]
src: rename ASSERT macros in node_crypto.cc

Rename the misnomers ASSERT_IS_STRING_OR_BUFFER and ASSERT_IS_BUFFER.
Said macros don't assert, they throw a TypeError and return.

PR-URL: https://github.com/iojs/io.js/pull/529
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agosrc: add ASSERT_EQ style macros
Ben Noordhuis [Tue, 20 Jan 2015 22:54:03 +0000 (23:54 +0100)]
src: add ASSERT_EQ style macros

Add ASSERT counterparts to the CHECK_EQ/CHECK_NE/etc. family of macros.

PR-URL: https://github.com/iojs/io.js/pull/529
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
9 years agolib: fix TypeError with EventEmitter#on() abuse
Ben Noordhuis [Tue, 20 Jan 2015 18:30:50 +0000 (19:30 +0100)]
lib: fix TypeError with EventEmitter#on() abuse

Commit 2931348 added EventEmitter#getMaxListeners() but introduced a
regression when people abuse EventEmitter.prototype.on.call() to call
EventEmitter#on() on a non-EE object.  Add a workaround for that.

Fixes: https://github.com/iojs/io.js/issues/523
PR-URL: https://github.com/iojs/io.js/pull/527
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
9 years agotest: fix event-emitter-get-max-listeners style
Ben Noordhuis [Tue, 20 Jan 2015 18:24:36 +0000 (19:24 +0100)]
test: fix event-emitter-get-max-listeners style

Add missing commas in parallel/test-event-emitter-get-max-listeners.

Comma-less style is fine and dandy but it throws off vim's autoindent.

PR-URL: https://github.com/iojs/io.js/pull/527
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
9 years agotest: strip copyright boilerplate
Ben Noordhuis [Tue, 20 Jan 2015 18:19:24 +0000 (19:19 +0100)]
test: strip copyright boilerplate

Commit 3e1b1dd missed a few files in test/parallel, this commit
rectifies that.

Only test/parallel/test-url.js still has a copyright header.  I left
it in because the original author is neither an io.js contributor nor
a StrongLoop employee.

PR-URL: https://github.com/iojs/io.js/pull/527
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
9 years agofs: define constants with const
cjihrig [Tue, 20 Jan 2015 04:01:42 +0000 (23:01 -0500)]
fs: define constants with const

Define fs constants using const, as the newer version of
v8 supports it, and appears to be capable of optimizing.

PR-URL: https://github.com/iojs/io.js/pull/522
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agoWorking on 1.0.4
Rod Vagg [Tue, 20 Jan 2015 01:36:53 +0000 (12:36 +1100)]
Working on 1.0.4

9 years ago2015-01-20 io.js v1.0.3 Release v1.0.3
Rod Vagg [Tue, 20 Jan 2015 01:35:12 +0000 (12:35 +1100)]
2015-01-20 io.js v1.0.3 Release

Notable changes

* V8 upgrade from 3.31 to 4.1, this is not a major upgrade, the version number "4.1" signifies tracking towards Chrome 41. The 3.31 branch is now not tracking towards a stable release.
* Re-enable Windows XP / 2003 support
* npm upgrade to 2.2.0
* Improved FreeBSD support

9 years agosrc: fix inconsistency between a check and error
toastynerd [Mon, 19 Jan 2015 18:17:45 +0000 (10:17 -0800)]
src: fix inconsistency between a check and error

dlopen takes exactly 2 arguments, check for exactly 2

PR-URL: https://github.com/iojs/io.js/pull/515
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agofs: add error code on null byte paths
cjihrig [Mon, 19 Jan 2015 21:50:43 +0000 (16:50 -0500)]
fs: add error code on null byte paths

This commit adds a code field to the error returned by
nullCheck().

Fixes: https://github.com/iojs/io.js/issues/517
PR-URL: https://github.com/iojs/io.js/pull/519
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agonet: fix error details in connect()
cjihrig [Mon, 19 Jan 2015 18:02:18 +0000 (13:02 -0500)]
net: fix error details in connect()

3ac494195319efb9c923c0ee89b6e0f2617d53ef introduced a
bug as it attempted to access properties of an
undefined variable. This commit cleans up the offending
code.

Fixes: https://github.com/iojs/io.js/issues/510
PR-URL: https://github.com/iojs/io.js/pull/514
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agowin,build: remove duplicate definition
Bert Belder [Mon, 19 Jan 2015 16:25:23 +0000 (17:25 +0100)]
win,build: remove duplicate definition

The duplicate warning was fixed by e1fe270, but returned as of 9f45799.
Hopefully this will fix the issue for good.

PR: https://github.com/iojs/io.js/pull/512
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
9 years agowin: bring back xp/2k3 support
Bert Belder [Mon, 19 Jan 2015 15:53:56 +0000 (16:53 +0100)]
win: bring back xp/2k3 support

Chrome still runs on Windows XP, so there is no reason that iojs
couldn't.

PR: https://github.com/iojs/io.js/pull/512
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
9 years agocluster: avoid race enabling debugger in worker
Timothy J Fontaine [Thu, 15 Jan 2015 23:14:16 +0000 (23:14 +0000)]
cluster: avoid race enabling debugger in worker

Previously if a worker's state machine had already transitioned into the
'listening' state when it received the message enabling the debugger,
the worker would never enable its debugger.

Change the logic to allow the 'listening' as a valid state for enabling
the debugger.

Fixes: https://github.com/joyent/node/issues/6440
Original-PR-URL: https://github.com/joyent/node/pull/9037
Signed-off-by: Julien Gilli <julien.gilli@joyent.com>
Fixes: https://github.com/iojs/io.js/issues/340
PR-URL: https://github.com/iojs/io.js/pull/501
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agotest: reland changes from 11c1bae
Ben Noordhuis [Mon, 19 Jan 2015 00:14:02 +0000 (01:14 +0100)]
test: reland changes from 11c1bae

Reland the changes from commit 11c1bae ("lib: make --debug-port work
with cluster") that were temporarily backed out to cherry-pick commits
from joyent/node.

PR-URL: https://github.com/iojs/io.js/pull/501
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agotest: debug-signal-cluster should not be racey
Timothy J Fontaine [Thu, 15 Jan 2015 23:19:32 +0000 (23:19 +0000)]
test: debug-signal-cluster should not be racey

unref one superfluous timer (as the test suite already has a global
timeout), and improve the state machine to iterate the messages more
reliably.

Ultimately make the test complete more quickly.

Original-PR-URL: [unknown]
Signed-off-by: Julien Gilli <julien.gilli@joyent.com>
PR-URL: https://github.com/iojs/io.js/pull/501
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agotest: temporarily back out changes from 11c1bae
Ben Noordhuis [Sun, 18 Jan 2015 23:57:39 +0000 (00:57 +0100)]
test: temporarily back out changes from 11c1bae

Temporarily revert the changes to test/ from commit 11c1bae ("lib: make
--debug-port work with cluster") to ease cherry-picks from joyent/node.

PR-URL: https://github.com/iojs/io.js/pull/501
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agotest: move sequential/test-debug-port-from-cmdline
Ben Noordhuis [Sun, 18 Jan 2015 23:51:27 +0000 (00:51 +0100)]
test: move sequential/test-debug-port-from-cmdline

Move sequential/test-debug-port-from-cmdline to test/parallel.  Per the
previous commit, it should now be possible to run the test in parallel
with other debugger tests.

PR-URL: https://github.com/iojs/io.js/pull/501
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agotest: fix test-debug-port-from-cmdline.js
Julien Gilli [Fri, 16 Jan 2015 22:29:01 +0000 (14:29 -0800)]
test: fix test-debug-port-from-cmdline.js

Make this test less prone to race conditions by using synchronous
interprocess communication instead of a timer to determine when the
child process is ready to receive messages from its parent.

Also, remove a superfluous timer since the tests suite already makes
tests time out after a while.

Original-PR-URL: https://github.com/joyent/node/pull/9049
Reviewed-By: Timothy J Fontaine <tjfontaine@gmail.com>
PR-URL: https://github.com/iojs/io.js/pull/501
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agorepl: make REPL support multiline template literals
Xiaowei Li [Mon, 19 Jan 2015 05:42:05 +0000 (13:42 +0800)]
repl: make REPL support multiline template literals

Let REPL enter multiline mode if user's input contains unterminated
template literals.

PR-URL: https://github.com/iojs/io.js/pull/333
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agobuild: remove unused variable
Johan Bergström [Mon, 19 Jan 2015 04:48:43 +0000 (15:48 +1100)]
build: remove unused variable

PR-URL: https://github.com/iojs/io.js/pull/505
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agodoc: add optional sudo to make install in README
Glen Keane [Thu, 15 Jan 2015 14:42:54 +0000 (14:42 +0000)]
doc: add optional sudo to make install in README

PR-URL: https://github.com/iojs/io.js/pull/444
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agobuild: shorten configurate script print on stdout
Roman Reiss [Sun, 18 Jan 2015 17:48:21 +0000 (18:48 +0100)]
build: shorten configurate script print on stdout

Reduces the previously pretty-printed configuration dictionary to a
single line wrapped at 78 characters. This makes warning messages which
appear before this print more visible to the user.

PR-URL: https://github.com/iojs/io.js/pull/483
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
9 years agodeps: fix V8 debugger bugs
Jay Jaeho Lee [Sun, 18 Jan 2015 18:08:47 +0000 (03:08 +0900)]
deps: fix V8 debugger bugs

This is following-up fix for https://codereview.chromium.org/813873007/.
This bug currently breaks node-inspector client to work.

PR-URL: https://github.com/iojs/io.js/pull/494
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodoc: fix util.isBuffer examples
Thomas Jensen [Sun, 18 Jan 2015 18:24:26 +0000 (19:24 +0100)]
doc: fix util.isBuffer examples

util.isPrimitive was used in place of util.isBuffer.

PR-URL: https://github.com/iojs/io.js/pull/496
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agobenchmark: fix tcp bench after internal api change
Yosuke Furukawa [Sun, 18 Jan 2015 16:16:05 +0000 (01:16 +0900)]
benchmark: fix tcp bench after internal api change

Fix up the tcp raw benchmarks after an internal API change.

PR-URL: https://github.com/iojs/io.js/pull/495
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agobenchmark: stop v8 benchmark clobbering RegExp
Ben Noordhuis [Sat, 17 Jan 2015 19:12:29 +0000 (20:12 +0100)]
benchmark: stop v8 benchmark clobbering RegExp

deps/v8/benchmarks/regexp.js clobbers the RegExp global, breaking
util.format() and console.log().  Unclobber it to keep the other
benchmarks working.

Fixes the following error when running benchmark/misc/v8-bench.js:

    $ out/Release/iojs benchmark/misc/v8-bench.js
    util.js:84
        if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
            ^
    TypeError: object is not a function
        at Object.exports.debuglog (util.js:84:9)
        at timers.js:12:29
        at NativeModule.compile (node.js:800:5)
        at NativeModule.require (node.js:769:18)
        at net.js:5:14
        at NativeModule.compile (node.js:800:5)
        at NativeModule.require (node.js:769:18)
        at tty.js:4:11
        at NativeModule.compile (node.js:800:5)
        at Function.NativeModule.require (node.js:769:18)

This could alternatively be addressed by caching the RegExp global
in lib/util.js.  That's not a bad approach and I considered it but
doing it for just RegExp and not other globals would be half-baked.

Maybe the more thorough approach where we cache all globals at
start-up is something for a follow-up pull request.

Fixes: https://github.com/iojs/io.js/pull/475
PR-URL: https://github.com/iojs/io.js/pull/489
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com>
9 years agodeps: make node-gyp work again on windows
Bert Belder [Thu, 15 Jan 2015 00:39:30 +0000 (01:39 +0100)]
deps: make node-gyp work again on windows

* Fetch from the correct url.
* Link compiled addons with iojs.lib instead of node.lib.
* Disable checksum checks for iojs.lib until our website supports
  them.

PR: https://github.com/iojs/io.js/pull/422
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-by: Rod Vagg <rod@vagg.org>
9 years agodeps: make node-gyp fetch tarballs from iojs.org
Ben Noordhuis [Tue, 13 Jan 2015 22:22:49 +0000 (23:22 +0100)]
deps: make node-gyp fetch tarballs from iojs.org

Apply a small patch that makes node-gyp fetch the tarballs from
https://iojs.org/ instead of http://nodejs.org/

A patch better suited for inclusion upstream will be put together
shortly.

PR-URL: https://github.com/iojs/io.js/pull/343
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agodeps: upgrade npm to 2.2.0
Forrest L Norvell [Sat, 17 Jan 2015 08:50:09 +0000 (00:50 -0800)]
deps: upgrade npm to 2.2.0

PR-URL: https://github.com/iojs/io.js/pull/479
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agosrc: remove --noharmony_classes again
Ben Noordhuis [Sat, 17 Jan 2015 22:52:52 +0000 (23:52 +0100)]
src: remove --noharmony_classes again

Now that V8 has been upgraded, remove the --noharmony_classes and
--noharmony_object_literals workarounds from commits a2751e3e and
4e58211b.

PR-URL: https://github.com/iojs/io.js/pull/490
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Kenan Sulayman <kenan@sly.mn>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agodeps: fix v8 build on FreeBSD
Fedor Indutny [Tue, 13 Jan 2015 15:54:17 +0000 (15:54 +0000)]
deps: fix v8 build on FreeBSD

clang++ on FreeBSD was blaming v8 for using invalid casts from nullptr:

    reinterpret_cast from 'nullptr_t' to '...' is not allowed

Replace casts with NULL, or NULL with 0 where applicable.

Fixes: https://github.com/iojs/io.js/issues/324
PR-URL: https://github.com/iojs/io.js/pull/332
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodeps: upgrade v8 to 4.1.0.7
Ben Noordhuis [Sat, 17 Jan 2015 22:02:56 +0000 (23:02 +0100)]
deps: upgrade v8 to 4.1.0.7

This commit upgrades V8 from 3.31.74.1 to 4.1.0.7.  Despite the major
version bump, there are no API or ABI changes, it's a bug fix release
only.

PR-URL: https://github.com/iojs/io.js/pull/490
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Kenan Sulayman <kenan@sly.mn>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agobenchmark: add filter option for benchmark
Yosuke Furukawa [Sat, 17 Jan 2015 15:33:07 +0000 (00:33 +0900)]
benchmark: add filter option for benchmark

Before:

    # common.js executes all tests in net directory.
    $ ./iojs common.js net

After:

    # common.js executes only "dgram" tests in net directory.
    $ ./iojs common.js net dgram

PR-URL: https://github.com/iojs/io.js/pull/488
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodoc: fixed punctuation
Brenard Cubacub [Sat, 17 Jan 2015 06:07:12 +0000 (22:07 -0800)]
doc: fixed punctuation

Period ending a sentence should be outside parens

PR-URL: https://github.com/iojs/io.js/pull/476
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agoconfigure: remove --ninja switch
Ben Noordhuis [Fri, 16 Jan 2015 11:56:30 +0000 (12:56 +0100)]
configure: remove --ninja switch

It is unknown if there are any users of the ninja build and keeping it
around makes refactoring the build system more difficult.  It's partly
broken (or at least, deeply inefficient) because it touches out/Makefile
every time.

PR-URL: https://github.com/iojs/io.js/pull/467
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agoconfigure: print warning for old compilers
Ben Noordhuis [Thu, 15 Jan 2015 21:36:38 +0000 (22:36 +0100)]
configure: print warning for old compilers

Try to autodetect the C and C++ compiler and issue a warning when it's
too old to plausibly build io.js.  Emit warnings only because there is
much that can go wrong when trying to invoke a compiler.

PR-URL: https://github.com/iojs/io.js/pull/455
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agodoc: change to iojs from node in the usage message
Jongyeol Choi [Fri, 16 Jan 2015 14:45:37 +0000 (23:45 +0900)]
doc: change to iojs from node in the usage message

PR-URL: https://github.com/iojs/io.js/pull/468
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agobuild: add tools/gflags to PYTHONPATH
Shigeki Ohtsu [Fri, 16 Jan 2015 05:41:28 +0000 (14:41 +0900)]
build: add tools/gflags to PYTHONPATH

closure_linter needs the gflags module.

PR-URL: https://github.com/iojs/io.js/pull/464
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodoc: add python-gflags LICENSE block
Shigeki Ohtsu [Fri, 16 Jan 2015 05:40:30 +0000 (14:40 +0900)]
doc: add python-gflags LICENSE block

PR-URL: https://github.com/iojs/io.js/pull/464
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agotools: add python-gflags module
Shigeki Ohtsu [Fri, 16 Jan 2015 05:37:52 +0000 (14:37 +0900)]
tools: add python-gflags module

closure_linter needs the gflags module.

PR-URL: https://github.com/iojs/io.js/pull/464
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agoWorking on v1.0.3
Rod Vagg [Fri, 16 Jan 2015 04:03:42 +0000 (15:03 +1100)]
Working on v1.0.3

9 years ago2015-01-16 io.js v1.0.2 Release v1.0.2 v1.0.2-release
Rod Vagg [Fri, 16 Jan 2015 04:00:22 +0000 (15:00 +1100)]
2015-01-16 io.js v1.0.2 Release

Notable changes:

* Windows installer fixes
* Bundled node-gyp fixes for Windows
* http_parser v2.4.1 upgrade
* libuv v1.2.1 upgrade

9 years agobuild: add new installer config for OS X
Rod Vagg [Tue, 13 Jan 2015 23:53:26 +0000 (10:53 +1100)]
build: add new installer config for OS X

Works with PackageMaker (old tool, discontinued but still
available for download from Apple).

index.xml is now templated to insert the version number.

PR-URL: https://github.com/iojs/io.js/pull/435
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
9 years agodoc: update AUTHORS list
Rod Vagg [Fri, 16 Jan 2015 02:00:30 +0000 (13:00 +1100)]
doc: update AUTHORS list

Update AUTHORS file using tools/update-authors.sh

PR-URL: https://github.com/iojs/io.js/pull/462
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
9 years agodoc: Add http keepalive behavior to CHANGELOG.md
isaacs [Fri, 16 Jan 2015 00:37:47 +0000 (16:37 -0800)]
doc: Add http keepalive behavior to CHANGELOG.md

PR-URL: https://github.com/iojs/io.js/pull/458
Reviewer: Rod Vagg

9 years agodoc: fix author attribution
Tom Hughes [Tue, 13 Jan 2015 04:31:44 +0000 (20:31 -0800)]
doc: fix author attribution

Tom Hughes and Tom Hughes-Croucher are different people.

PR: https://github.com/joyent/node/pull/9021
Reviewed-by: Bert Belder <bertbelder@gmail.com>
9 years agosrc: fix jslint errors
Yosuke Furukawa [Thu, 15 Jan 2015 17:55:29 +0000 (02:55 +0900)]
src: fix jslint errors

PR-URL: https://github.com/iojs/io.js/pull/449
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agotools: update closure linter to 2.3.17
Yosuke Furukawa [Thu, 15 Jan 2015 17:53:46 +0000 (02:53 +0900)]
tools: update closure linter to 2.3.17

PR-URL: https://github.com/iojs/io.js/pull/449
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years ago_debug_agent: use `readableObjectMode` option
Vladimir Kurchatkin [Fri, 9 Jan 2015 11:51:39 +0000 (14:51 +0300)]
_debug_agent: use `readableObjectMode` option

Use public `readableObjectMode` option to construct `Transform`
instead of accessing private `_readableState.objectMode`.

Partially addresses https://github.com/iojs/io.js/issues/445.

PR-URL: https://github.com/iojs/io.js/pull/270
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
9 years agodoc: fix formatting in LICENSE for RTF generation
Rod Vagg [Thu, 15 Jan 2015 18:49:13 +0000 (19:49 +0100)]
doc: fix formatting in LICENSE for RTF generation

Current format does not render properly when converted to RTF by
the tools/license2rtf.js tool, specifically the wrong sections are
presented as bold, giving the wrong emphasis to the document.

This fix makes the formatting more consistent, with non-license
summary sections bold and the licenses themselves unformatted.

PR: https://github.com/iojs/io.js/pull/436
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-by: Bert Belder <bertbelder@gmail.com>
9 years agodoc: fix 404s for syntax highlighting js
Phil Hughes [Wed, 14 Jan 2015 16:29:52 +0000 (16:29 +0000)]
doc: fix 404s for syntax highlighting js

Updated Makefile to remove special casing for those files, and
moved the files to doc/api_assets.

Fixes: https://github.com/iojs/iojs.github.io/issues/51
PR-URL: https://github.com/iojs/io.js/pull/409
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
9 years agosrc: define AI_V4MAPPED for OpenBSD
Aaron Bieber [Wed, 14 Jan 2015 21:40:53 +0000 (14:40 -0700)]
src: define AI_V4MAPPED for OpenBSD

OpenBSD doesn't define AI_V4MAPPED by default. Defining it to 0
as done with other ports.

PR-URL: https://github.com/iojs/io.js/pull/427
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodoc: extend example of http.request by end event
Michal Tehnik [Thu, 15 Jan 2015 12:58:31 +0000 (13:58 +0100)]
doc: extend example of http.request by end event

Added .on('end', callback) event to http.request example, because
for first sight it's not clear from http documentation, how to
handle end of request.

PR-URL: https://github.com/iojs/io.js/pull/447
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agosrc: fix documentation url in help message
Shigeki Ohtsu [Wed, 14 Jan 2015 07:39:44 +0000 (16:39 +0900)]
src: fix documentation url in help message

Refer to https://iojs.org/ for documentation

PR-URL: https://github.com/iojs/io.js/pull/378
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agowin,msi: warn that older io.js needs manual uninstall
Bert Belder [Wed, 14 Jan 2015 23:42:28 +0000 (00:42 +0100)]
win,msi: warn that older io.js needs manual uninstall

Because the UpgradeCode changes with version 1.0.2, older versions won't
be uninstalled automatically. This patch puts a warning in the
installer.

PR: https://github.com/iojs/io.js/pull/431
Reviewed-by: Rod Vagg <rod@vagg.org>
9 years agowin,msi: change UpgradeCode
Bert Belder [Wed, 14 Jan 2015 23:41:26 +0000 (00:41 +0100)]
win,msi: change UpgradeCode

This allows node.js and io.js to be installed side-by-side.

PR: https://github.com/iojs/io.js/pull/431
Reviewed-by: Rod Vagg <rod@vagg.org>
9 years agodeps: make node-gyp work again on windows
Bert Belder [Thu, 15 Jan 2015 00:39:30 +0000 (01:39 +0100)]
deps: make node-gyp work again on windows

* Fetch from the correct url.
* Link compiled addons with iojs.lib instead of node.lib.
* Disable checksum checks for iojs.lib until our website supports
  them.

PR: https://github.com/iojs/io.js/pull/422
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-by: Rod Vagg <rod@vagg.org>
9 years agodeps: update libuv to 1.2.1
Saúl Ibarra Corretgé [Wed, 14 Jan 2015 19:26:02 +0000 (20:26 +0100)]
deps: update libuv to 1.2.1

PR: https://github.com/iojs/io.js/pull/423
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-by: Bert Belder <bertbelder@gmail.com>
9 years agodoc: mention io.js alongside Node in Punycode docs
Mathias Bynens [Wed, 14 Jan 2015 10:18:37 +0000 (11:18 +0100)]
doc: mention io.js alongside Node in Punycode docs

PR-URL: https://github.com/iojs/io.js/pull/390
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodeps: update http_parser to 2.4.1
Fedor Indutny [Wed, 14 Jan 2015 13:00:26 +0000 (16:00 +0300)]
deps: update http_parser to 2.4.1

PR-URL: https://github.com/iojs/io.js/pull/397
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodoc: update cluster entry in CHANGELOG
Ben Noordhuis [Wed, 14 Jan 2015 20:23:13 +0000 (21:23 +0100)]
doc: update cluster entry in CHANGELOG

PR-URL: https://github.com/iojs/io.js/pull/425
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
9 years agodoc: fix double smalloc example
Mathias Buus [Wed, 14 Jan 2015 17:42:57 +0000 (09:42 -0800)]
doc: fix double smalloc example

PR-URL: https://github.com/iojs/io.js/pull/413
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agocrypto: add deprecated verisign cert for s3 compat
Ben Noordhuis [Wed, 14 Jan 2015 01:58:44 +0000 (02:58 +0100)]
crypto: add deprecated verisign cert for s3 compat

Nolens volens add back a 1024 bits Verisign Class 3 certificate that is
still in use by AWS S3.

Fixes: https://github.com/iojs/io.js/issues/402

9 years agobenchmark: fix command name in benchmark scripts
Yosuke Furukawa [Wed, 14 Jan 2015 16:46:28 +0000 (01:46 +0900)]
benchmark: fix command name in benchmark scripts

PR-URL: https://github.com/iojs/io.js/pull/410
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 years agodoc: fix broken readme links to collaborator list
Chris Alley [Wed, 14 Jan 2015 08:40:03 +0000 (21:40 +1300)]
doc: fix broken readme links to collaborator list

PR-URL: https://github.com/iojs/io.js/pull/382
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
9 years agodoc: fix mixed content issues
Mathias Bynens [Wed, 14 Jan 2015 08:00:59 +0000 (09:00 +0100)]
doc: fix mixed content issues

Explicitly specify "https" over "http" for linked CSS. Fixup
indentation and quoting issues.

PR-URL: https://github.com/iojs/io.js/pull/379
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
9 years agoWorking on 1.0.2
Rod Vagg [Wed, 14 Jan 2015 05:15:39 +0000 (16:15 +1100)]
Working on 1.0.2

9 years agodoc: change link man doc
Jesse cogollo [Wed, 14 Jan 2015 04:44:16 +0000 (23:44 -0500)]
doc: change link man doc

PR-URL: https://github.com/iojs/io.js/pull/366
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years ago2015-01-14 io.js v1.0.1 Release v1.0.1 v1.0.1-release
Rod Vagg [Wed, 14 Jan 2015 04:31:29 +0000 (15:31 +1100)]
2015-01-14 io.js v1.0.1 Release

9 years agoMerge tag 'v1.0.0-release' into v1.x
Bert Belder [Wed, 14 Jan 2015 04:20:52 +0000 (05:20 +0100)]
Merge tag 'v1.0.0-release' into v1.x

2015-01-14 io.js v1.0.0 Release

9 years agoWorking on 1.0.1
Rod Vagg [Wed, 14 Jan 2015 04:15:10 +0000 (15:15 +1100)]
Working on 1.0.1

9 years agodoc: improve write style consistency
Rui Marinho [Wed, 14 Jan 2015 03:07:11 +0000 (03:07 +0000)]
doc: improve write style consistency

Add more consistent verbs to each changelog entry, add missing periods,
trim white-space and fix sorting of entries.

PR-URL: https://github.com/iojs/io.js/pull/360
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agowin,msi: correct doc website link
Bert Belder [Wed, 14 Jan 2015 03:43:21 +0000 (04:43 +0100)]
win,msi: correct doc website link

9 years ago2015-01-14 io.js v1.0.0 Release v1.0.0 v1.0.0-release
Rod Vagg [Wed, 14 Jan 2015 03:07:28 +0000 (14:07 +1100)]
2015-01-14 io.js v1.0.0 Release

9 years agodoc: add missed new features in CHANGELOG
Shigeki Ohtsu [Wed, 14 Jan 2015 02:36:13 +0000 (11:36 +0900)]
doc: add missed new features in CHANGELOG

Some new features were missed in Buffer and process.

PR: https://github.com/iojs/io.js/pull/359
Reviewed-by: Bert Belder <bertbelder@gmail.com>
9 years agodoc: fix deps versions on changelog
Rui Marinho [Wed, 14 Jan 2015 02:26:08 +0000 (02:26 +0000)]
doc: fix deps versions on changelog

PR-URL: https://github.com/iojs/io.js/pull/358
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agobuild: rename ChangeLog to CHANGELOG.md in build
Rod Vagg [Wed, 14 Jan 2015 02:16:16 +0000 (13:16 +1100)]
build: rename ChangeLog to CHANGELOG.md in build

This only matters for the Makefile tarball target
as we aren't auto-building changelog.html at the moment
so the changes in tools/ are for completeness, but
not functional with the Markdown CHANGELOG.md.

PR-URL: https://github.com/iojs/io.js/pull/357

no review

9 years agowin: use the new io.js icon
Bert Belder [Wed, 14 Jan 2015 02:21:20 +0000 (03:21 +0100)]
win: use the new io.js icon

PR: https://github.com/iojs/io.js/pull/356
Reviewed-by: Rod Vagg <rod@vagg.com>
9 years agodoc: fix Node versions in changelog's v8 paragraph
Domenic Denicola [Wed, 14 Jan 2015 02:12:46 +0000 (21:12 -0500)]
doc: fix Node versions in changelog's v8 paragraph

PR-URL: https://github.com/iojs/io.js/pull/355
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agowin: update icon for io.js
Bert Belder [Wed, 14 Jan 2015 02:00:34 +0000 (03:00 +0100)]
win: update icon for io.js

PR: https://github.com/iojs/io.js/pull/354
Reviewed-by: Rod Vagg <rod@vagg.com>
9 years agobuild: add iojs installer assets for win & osx
Bert Belder [Wed, 14 Jan 2015 01:56:51 +0000 (02:56 +0100)]
build: add iojs installer assets for win & osx

Added visual assets used by WiX on Windows and PackageMaker on OS X to
build the native installers. Added node.ico file with the new io.js logo
for Windows.

PR: https://github.com/iojs/io.js/pull/344
Reviewed-by: Bert Belder <bertbelder@gmail.com>
9 years agodoc: fix typo in changelog
Tiago Ribeiro [Wed, 14 Jan 2015 01:48:09 +0000 (01:48 +0000)]
doc: fix typo in changelog

PR-URL: https://github.com/iojs/io.js/pull/353
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agotest: introduce a test for process.versions output
Johan Bergström [Wed, 14 Jan 2015 01:30:20 +0000 (12:30 +1100)]
test: introduce a test for process.versions output

make sure that process.versions contains an expected list of software to avoid
potential mistakes with refactoring.

PR-URL: https://github.com/iojs/io.js/pull/352
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agodoc: added io.js v1.0.0 ChangeLog as a summary
Rod Vagg [Wed, 14 Jan 2015 01:22:04 +0000 (12:22 +1100)]
doc: added io.js v1.0.0 ChangeLog as a summary

Collaboratively edited by many people in
https://code.stypi.com/domenic/iojs-1.0-changelog.md
and includes a summary of changes in each major section of the
project from a user-facing perspective from Node.js v0.10.34
to io.js v1.0.0.

Renamed file to CHANGELOG.md from ChangeLog.md

Fixes: https://github.com/iojs/io.js/issues/339
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years agodoc: convert ChangeLog to Markdown
Rod Vagg [Wed, 14 Jan 2015 01:21:05 +0000 (12:21 +1100)]
doc: convert ChangeLog to Markdown

Conversion of the ChangeLog includes headings, compacted lists,
links for commits to GitHub (iojs/io.js) and links to issues on
GitHub (joyent/node)

Fixes: https://github.com/iojs/io.js/issues/339
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years agoRevert "deps: update http_parser to 2.4.0"
Fedor Indutny [Wed, 14 Jan 2015 01:34:19 +0000 (04:34 +0300)]
Revert "deps: update http_parser to 2.4.0"

The commit breaks windows build and brings some test failures that needs
to be debugged.

This reverts commit d790f612218bb34580bfbc6a11027d69b7c148fe.

9 years agodoc: update util methods
Brian White [Wed, 14 Jan 2015 01:19:26 +0000 (20:19 -0500)]
doc: update util methods

PR-URL: https://github.com/iojs/io.js/pull/350
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agoFirst draft of a new contribution policy.
Mikeal Rogers [Wed, 1 Oct 2014 20:40:32 +0000 (13:40 -0700)]
First draft of a new contribution policy.

PR-URL: https://github.com/node-forward/node/pull/1
Signed-off-by: isaacs <i@izs.me>
PR-URL: https://github.com/iojs/io.js/pull/348/files
Signed-off-by: isaacs <i@izs.me> (again)
9 years agowin,msi: link node.exe to iojs.exe
Bert Belder [Wed, 14 Jan 2015 00:11:51 +0000 (01:11 +0100)]
win,msi: link node.exe to iojs.exe

Add a feature to the MSI installer that, when selected, hard-links
node.exe to iojs.exe.

PR: https://github.com/iojs/io.js/pull/346
Reviewed-by: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-by: Rod Vagg <rod@vagg.com>
9 years agoprocess: reintroduce ares to versions
Johan Bergström [Wed, 14 Jan 2015 00:12:05 +0000 (11:12 +1100)]
process: reintroduce ares to versions

ares version info was accidentally removed in c80f8fa8f.

PR-URL: https://github.com/iojs/io.js/pull/347
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years agodeps: update http_parser to 2.4.0
Fedor Indutny [Tue, 13 Jan 2015 23:57:45 +0000 (02:57 +0300)]
deps: update http_parser to 2.4.0

PR-URL: https://github.com/iojs/io.js/pull/345
Reviewed-By: Rod Vagg <rod@vagg.org>
9 years agodeps: make node-gyp fetch tarballs from iojs.org
Ben Noordhuis [Tue, 13 Jan 2015 22:22:49 +0000 (23:22 +0100)]
deps: make node-gyp fetch tarballs from iojs.org

Apply a small patch that makes node-gyp fetch the tarballs from
https://iojs.org/ instead of http://nodejs.org/

A patch better suited for inclusion upstream will be put together
shortly.

PR-URL: https://github.com/iojs/io.js/pull/343
Reviewed-By: Rod Vagg <rod@vagg.org>