isaacs [Fri, 30 Mar 2012 18:54:08 +0000 (11:54 -0700)]
Merge branch 'v0.7.7-release'
Igor Zinkovsky [Fri, 30 Mar 2012 17:25:07 +0000 (10:25 -0700)]
upgrade libuv to
ab8c3b85c1
Ben Noordhuis [Tue, 27 Mar 2012 23:56:17 +0000 (01:56 +0200)]
Fix Engrish in error messages.
Ben Noordhuis [Fri, 30 Mar 2012 12:42:23 +0000 (14:42 +0200)]
node: remove unused function
Ben Noordhuis [Fri, 30 Mar 2012 12:41:43 +0000 (14:41 +0200)]
node: fix signedness compiler warnings
Ben Noordhuis [Fri, 30 Mar 2012 12:32:38 +0000 (14:32 +0200)]
crypto: fix signedness compiler warnings
Ben Noordhuis [Fri, 30 Mar 2012 12:49:40 +0000 (14:49 +0200)]
buffer: fix signedness compiler warnings
Ben Noordhuis [Fri, 30 Mar 2012 12:52:24 +0000 (14:52 +0200)]
stream_wrap: fix signedness compiler warnings
isaacs [Thu, 29 Mar 2012 23:03:17 +0000 (16:03 -0700)]
2012.03.30, Version 0.7.7 (unstable)
* Upgrade V8 to 3.9.24.7
* Upgrade npm to 1.1.15
* Handle Emoji characters properly (Erik Corry, Bert Belder)
* readline: migrate ansi/vt100 logic from tty to readline (Nathan Rajlich)
* readline: Fix multiline handling (Alex Kocharin)
* add a -i/--interactive flag to force the REPL (Nathan Rajlich)
* debugger: add breakOnException command (Fedor Indutny)
* cluster: kill workers when master dies (Andreas Madsen)
* cluster: add graceful disconnect support (Andreas Madsen)
* child_process: Separate 'close' event from 'exit' (Charlie McConnell)
* typed arrays: add Uint8ClampedArray (Mikael Bourges-Sevenier)
* buffer: Fix byte alignment issues (Ben Noordhuis, Erik Lundin)
* tls: fix CryptoStream.setKeepAlive() (Shigeki Ohtsu)
* Expose http parse error codes (Felix Geisendörfer)
* events: don't delete the listeners array (Ben Noordhuis, Nathan Rajlich)
* process: add process.config to view node's ./configure settings (Nathan Rajlich)
* process: process.execArgv to see node's arguments (Micheil Smith)
* process: fix process.title setter (Ben Noordhuis)
* timers: handle negative or non-numeric timeout values (Ben Noordhuis)
isaacs [Fri, 30 Mar 2012 03:17:25 +0000 (20:17 -0700)]
Upgrade npm to 1.1.15
isaacs [Thu, 29 Mar 2012 23:01:27 +0000 (16:01 -0700)]
Make rules for release blog post and email message
isaacs [Thu, 29 Mar 2012 17:05:14 +0000 (10:05 -0700)]
Upgrade V8 to 3.9.24.7
Nathan Rajlich [Thu, 29 Mar 2012 20:15:24 +0000 (13:15 -0700)]
tty: clarify that tty.setRawMode() has moved to process.stdin
Technically saying `tty.ReadStream#setRawMode()` is correct,
but since a typical use cannot instantiate `tty.ReadStream` themselves,
and 99% of the time the only instance is `process.stdin`,
then a little clarification seemed necessary.
isaacs [Thu, 29 Mar 2012 15:41:04 +0000 (08:41 -0700)]
More logging in simple/test-eio-race
Travis-CI is failing on this test repeatedly, but other Linux systems
seem to be fine with it. Alter the logging so it's more clear which
part is timing out.
Ben Noordhuis [Thu, 29 Mar 2012 15:25:36 +0000 (17:25 +0200)]
test: move pummel/test-tls-fragmentation to benchmark/
Said test takes over 90 seconds on my Core 2 Duo which is too long, even for
the pummel tests.
Yosef Dinerstein [Wed, 28 Mar 2012 09:20:37 +0000 (11:20 +0200)]
tls: reduce memory overhead, reuse buffer
Instead of allocating a new 64KB buffer each time when checking if there is
something to transform, continue to use the same buffer. Once the buffer is
exhausted, allocate a new buffer. This solves the problem of huge allocations
when small fragments of data are processed, but will also continue to work
well with big pieces of data.
Ben Noordhuis [Thu, 29 Mar 2012 15:12:23 +0000 (17:12 +0200)]
test: move simple/test-crypto-dh to pummel/
The test is too slow / CPU intensive for the main test harness.
Ben Noordhuis [Thu, 29 Mar 2012 14:34:19 +0000 (16:34 +0200)]
test: remove simple/test-module-load-list
Said test adds little value and only serves to annoy me when moving around
modules. It was broken anyway: it passed inside the test runner and failed
when run from the command line thanks to the environment sniffing it did.
ssuda [Wed, 21 Mar 2012 15:35:47 +0000 (21:05 +0530)]
zlib: don't use C++ templates
Reduces the executable's size by a few kilobytes.
Shigeki Ohtsu [Wed, 28 Mar 2012 08:13:26 +0000 (17:13 +0900)]
doc: change stability index of tty and readline to Unstable
Shigeki Ohtsu [Wed, 28 Mar 2012 08:06:10 +0000 (17:06 +0900)]
tty: show deprecated warn of tty.setRawMode()
Shigeki Ohtsu [Wed, 28 Mar 2012 04:12:07 +0000 (13:12 +0900)]
tty: add keypress event for backwards-compat
isaacs [Thu, 29 Mar 2012 02:54:01 +0000 (19:54 -0700)]
Patches floating on V8
isaacs [Thu, 29 Mar 2012 02:51:38 +0000 (19:51 -0700)]
Upgrade V8 to 3.9.24.6
isaacs [Thu, 29 Mar 2012 02:40:54 +0000 (19:40 -0700)]
Reapply "debug: Wait 50ms before running the main module"
This reapplies commit
c781f17742170f2e127f9ee6652c56b406c30586
This reverts commit
00224771e32e4d051e5ea33b7e854f0031359912
isaacs [Thu, 29 Mar 2012 02:36:44 +0000 (19:36 -0700)]
Upgrade npm to 1.1.14
Ben Noordhuis [Wed, 28 Mar 2012 23:27:57 +0000 (01:27 +0200)]
tty, readline: fix style errors
Erik Lundin [Wed, 21 Mar 2012 11:33:49 +0000 (12:33 +0100)]
typed arrays: prevent unaligned typed array views on top of buffers
Ben Noordhuis [Wed, 28 Mar 2012 23:31:12 +0000 (01:31 +0200)]
buffer: align fast buffers on 8 byte boundary
Prevents alignment issues when people create a typed array from a buffer.
Unaligned loads or stores are less efficent and (on some architectures) unsafe.
Mikael Bourges-Sevenier [Wed, 28 Mar 2012 04:38:52 +0000 (21:38 -0700)]
typed arrays: add Uint8ClampedArray
Nathan Rajlich [Wed, 28 Mar 2012 04:40:03 +0000 (21:40 -0700)]
repl: don't write a newline on the readline 'end' event
In the case of the input stream *actually* having been closed, then we
can't write to a closed socket.
Fixes test/simple/test-repl.js
mstarzinger@chromium.org [Mon, 12 Mar 2012 12:17:46 +0000 (12:17 +0000)]
v8: Fix missing initialization of mark-compact flags.
R=svenpanne@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9662056
Cherry-pick of https://v8.googlecode.com/svn/branches/bleeding_edge@11006
Nathan Rajlich [Wed, 28 Mar 2012 01:00:59 +0000 (18:00 -0700)]
repl: add a 'useColors' option to the repl
This should only be minimally used, since the `terminal` value will usually be
what you are expecting. This option is specifically for the case where `terminal`
is false, but you still want colors to be output (or vice-versa).
Nathan Rajlich [Wed, 28 Mar 2012 00:49:10 +0000 (17:49 -0700)]
repl: add test case verifying the repl options usage
Nathan Rajlich [Wed, 28 Mar 2012 00:39:14 +0000 (17:39 -0700)]
repl: add a 'writer' option to the repl
Previously this was a module-level setting, meaning that all REPL instances
had to share the same writer function. Turning it into one of the options
allows individual REPL instances to use their own writer function.
Nathan Rajlich [Wed, 28 Mar 2012 00:35:33 +0000 (17:35 -0700)]
repl: ensure that 'repl.ignoreUndefined' is a boolean
Nathan Rajlich [Wed, 28 Mar 2012 00:34:55 +0000 (17:34 -0700)]
repl: ensure that 'repl.useGlobal' is a boolean
Nathan Rajlich [Tue, 27 Mar 2012 19:41:42 +0000 (12:41 -0700)]
repl: make ^D emit an 'end' event on the readline instance
Also emit 'exit' on the repl when 'end' is emitted on the readline.
Fixes `node debug test/fixtures/breakpoints.js` when ^D is pressed.
Fedor Indutny [Tue, 27 Mar 2012 18:40:45 +0000 (01:40 +0700)]
Revert "debug: Wait 50ms before running the main module"
This reverts commit
c781f17742170f2e127f9ee6652c56b406c30586.
Fedor Indutny [Tue, 27 Mar 2012 18:37:54 +0000 (01:37 +0700)]
debugger: use v8 api to wait for a connection
Use v8::Debug::EnableAgent(_, _, true) to wait for incoming
debugger-client connection before emitting any break (or other) events.
This commit should fix test/simple/test-debugger-repl faults.
Nathan Rajlich [Tue, 27 Mar 2012 02:05:32 +0000 (19:05 -0700)]
repl: fix 'terminal' mode autodetection on global repls
Fixes test/simple/test-force-repl.js
Nathan Rajlich [Mon, 26 Mar 2012 22:21:25 +0000 (15:21 -0700)]
readline: migrate ansi/vt100 logic from tty to readline
The overall goal here is to make readline more interoperable with other node
Streams like say a net.Socket instance, in "terminal" mode.
See #2922 for all the details.
Closes #2922.
Alex Kocharin [Fri, 23 Mar 2012 18:24:06 +0000 (11:24 -0700)]
readline: fix for terminals that insert newlines automatically
Fixes #2985.
Shigeki Ohtsu [Sun, 25 Mar 2012 05:28:39 +0000 (14:28 +0900)]
test: add test of tls.createServer(honorCipherOrder=true)
Zachary Scott [Sat, 24 Mar 2012 21:32:32 +0000 (21:32 +0000)]
doc: document fs.createReadStream() encodings
Fixes #2700.
Andreas Madsen [Sat, 24 Mar 2012 16:25:23 +0000 (17:25 +0100)]
doc: fix markup in cluster docs
Shigeki Ohtsu [Fri, 23 Mar 2012 09:21:53 +0000 (18:21 +0900)]
doc: fix default dgram multicast ttl to 1
Shigeki Ohtsu [Fri, 23 Mar 2012 06:16:49 +0000 (15:16 +0900)]
doc: fix TLS cipher names
Shigeki Ohtsu [Fri, 23 Mar 2012 06:10:48 +0000 (15:10 +0900)]
test: add test of cleartextStream.getCipher() in tls
Shigeki Ohtsu [Fri, 23 Mar 2012 04:04:10 +0000 (13:04 +0900)]
doc: add cleartextStream.getCipher() in tls
ssuda [Wed, 21 Mar 2012 16:47:16 +0000 (22:17 +0530)]
Avoiding unnecessary ToString() calls
String::Utf8Value and String::AsciiValue constructors take Handle<Value>
So no need to convert to Handle<String>
Shigeki Ohtsu [Thu, 22 Mar 2012 02:50:58 +0000 (11:50 +0900)]
tls: fix CryptoStream.setKeepAlive()
Lal Jérémy [Thu, 22 Mar 2012 18:41:46 +0000 (19:41 +0100)]
test: generate 1024-bit keys, pacify openssl 1.0.1
Nathan Rajlich [Wed, 21 Mar 2012 07:05:25 +0000 (00:05 -0700)]
cmd: add a -i / --interactive flag to force the REPL
This is the only way to spawn a node child process in REPL mode, and will
also be needed to be able to use the REPL in MinTTY.
isaacs [Wed, 21 Mar 2012 02:48:07 +0000 (19:48 -0700)]
debug repl tests: Add visibility, remove test that times out
The 'Can't backtrace now' message takes over 10 seconds to return.
That's too much time to have to wait for a test, and when it times
out, it was causing an orphaned node process.
This cleans up the node process, and also removes the test that's
timing out, so that the case is hit less often.
Todo: Make the backtrace message come back faster.
isaacs [Wed, 21 Mar 2012 02:46:36 +0000 (19:46 -0700)]
debug: Wait 50ms before running the main module
isaacs [Wed, 21 Mar 2012 02:42:34 +0000 (19:42 -0700)]
lint readline.js - single-quotes preferred
Erik Lundin [Tue, 20 Mar 2012 17:07:08 +0000 (18:07 +0100)]
test: merge typed arrays tests
Merge simple/test-typed-arrays-typenames into simple/test-typed-arrays.
Erik Lundin [Tue, 20 Mar 2012 16:21:32 +0000 (17:21 +0100)]
test: fix simple/test-typed-arrays
* It incorrectly uses assert(a, b) instead of assert.equal(a, b), meaning all
relevant assertions will pass regardless of whether they're supposed to when
a == true.
* It makes the assumption that elements in typed arrays for numerical types
spanning more than one byte, like Uint32Array, are stored little-endian first
on all machines.
* It contains assorted mistakes like assert(Int32Array, typeof v4) (that one
only passes thanks to point 1).
Johannes Wüller [Wed, 21 Mar 2012 00:14:44 +0000 (01:14 +0100)]
fixed booleans being treated as strings, resulting in missing node-waf and npm
Alex Kocharin [Tue, 20 Mar 2012 22:14:40 +0000 (15:14 -0700)]
readline: row-agnostic multiline readline implementation
Fixes #2959.
Nathan Rajlich [Tue, 20 Mar 2012 22:04:18 +0000 (15:04 -0700)]
Revert "readline: add multiline support"
This reverts commit
443071db5749603f816199b9ec8bc512fb441d98.
Patch was overly compilicated and made some incorrect assumptions about the
position of the cursor being at the bottom of the screen. @rlidwka and I are
working on getting a proper implementation written.
ssuda [Tue, 20 Mar 2012 15:39:49 +0000 (21:09 +0530)]
process: don't use strdup()
file and cwd can be directly used from Utf8Value.
Alex Kocharin [Tue, 20 Mar 2012 01:44:22 +0000 (05:44 +0400)]
repl: fix space autocompletion bug
Tapping <SP> + <TAB> would exit the REPL.
Felix Geisendörfer [Sun, 18 Dec 2011 14:55:40 +0000 (15:55 +0100)]
Expose http parse error codes
Currently http parse errors do not expose the error details available
from http_parser. This patch exposes the error code as `err.code`.
Shigeki Ohtsu [Fri, 2 Dec 2011 01:17:19 +0000 (10:17 +0900)]
No need to have NativeModule.require('fs') in Module._findPath()
isaacs [Mon, 19 Mar 2012 20:34:12 +0000 (13:34 -0700)]
cluster: English language fixing
Andreas Madsen [Sun, 11 Mar 2012 13:19:02 +0000 (14:19 +0100)]
cluster: kill workers when master dies
This patch will kill the worker once it has lost its connection with the parent.
However if the worker are doing a suicide, other measures will be used.
Andreas Madsen [Sat, 10 Mar 2012 15:30:06 +0000 (16:30 +0100)]
cluster: add graceful disconnect support
This patch add a worker.disconnect() method there will stop the worker from accepting
new connections and then stop the IPC. This allow the worker to die graceful.
When the IPC has been disconnected a 'disconnect' event will emit.
The patch also add a cluster.disconnect() method, this will call worker.disconnect() on
all connected workers. When the workers are disconneted it will then close all server
handlers. This allow the cluster itself to self terminate in a graceful way.
Andreas Madsen [Tue, 31 Jan 2012 18:51:01 +0000 (19:51 +0100)]
child_process: emit 'channel closed' error instead of throwing
isaacs [Mon, 19 Mar 2012 16:59:51 +0000 (09:59 -0700)]
Upgrade npm to 1.1.10
Fedor Indutny [Sun, 18 Mar 2012 10:54:07 +0000 (16:54 +0600)]
debugger: breakOnException
Do not break automatically on exception, fixes #2926
Fedor Indutny [Mon, 19 Mar 2012 16:08:25 +0000 (22:08 +0600)]
debugger: remove 'repl' command from builtinLibs
* It was displaying useless warning
Fedor Indutny [Sun, 18 Mar 2012 10:20:41 +0000 (16:20 +0600)]
debugger: exit process on repl exit
* When entering repl - clone 'SIGINT' listeners array (instead of using
existing), as it will be spliced in .removeAllListeners() call later.
Ben Noordhuis [Mon, 19 Mar 2012 16:12:49 +0000 (17:12 +0100)]
test: fix race in simple/test-cluster-master-error
Said test checks that the workers shut down when the master errors but it failed
intermittently. Insert a small delay before doing the 'is dead?' check to give
the workers a chance to shut down.
Your Name [Sun, 18 Mar 2012 09:44:52 +0000 (17:44 +0800)]
test: changed instances of == to ===
Nathan Rajlich [Sat, 17 Mar 2012 19:57:24 +0000 (12:57 -0700)]
build: make --openssl-use-sys a boolean option
Before you had to enter a truthy value like: --openssl-use-sys=1
isaacs [Sat, 17 Mar 2012 18:07:28 +0000 (11:07 -0700)]
Fix include logic was replacing https include with http
isaacs [Sat, 17 Mar 2012 18:00:05 +0000 (11:00 -0700)]
Ignore 'making a build' artifacts
Alex Xu [Fri, 16 Mar 2012 23:01:53 +0000 (16:01 -0700)]
build: fix configure with spaces in CC
isaacs [Fri, 16 Mar 2012 15:19:18 +0000 (08:19 -0700)]
doc: Remove extraneous index.html's from hyperlinks
isaacs [Fri, 16 Mar 2012 15:13:41 +0000 (08:13 -0700)]
Remove hard-coded version number from docs
isaacs [Fri, 16 Mar 2012 15:06:54 +0000 (08:06 -0700)]
Merge remote-tracking branch 'ry/v0.6' into merge-v0.6
Conflicts:
ChangeLog
deps/npm/AUTHORS
deps/npm/html/api/bin.html
deps/npm/html/api/bugs.html
deps/npm/html/api/commands.html
deps/npm/html/api/config.html
deps/npm/html/api/deprecate.html
deps/npm/html/api/docs.html
deps/npm/html/api/edit.html
deps/npm/html/api/explore.html
deps/npm/html/api/help-search.html
deps/npm/html/api/init.html
deps/npm/html/api/install.html
deps/npm/html/api/link.html
deps/npm/html/api/load.html
deps/npm/html/api/ls.html
deps/npm/html/api/npm.html
deps/npm/html/api/outdated.html
deps/npm/html/api/owner.html
deps/npm/html/api/pack.html
deps/npm/html/api/prefix.html
deps/npm/html/api/prune.html
deps/npm/html/api/publish.html
deps/npm/html/api/rebuild.html
deps/npm/html/api/restart.html
deps/npm/html/api/root.html
deps/npm/html/api/run-script.html
deps/npm/html/api/search.html
deps/npm/html/api/shrinkwrap.html
deps/npm/html/api/start.html
deps/npm/html/api/stop.html
deps/npm/html/api/submodule.html
deps/npm/html/api/tag.html
deps/npm/html/api/test.html
deps/npm/html/api/uninstall.html
deps/npm/html/api/unpublish.html
deps/npm/html/api/update.html
deps/npm/html/api/version.html
deps/npm/html/api/view.html
deps/npm/html/api/whoami.html
deps/npm/html/doc/README.html
deps/npm/html/doc/adduser.html
deps/npm/html/doc/bin.html
deps/npm/html/doc/bugs.html
deps/npm/html/doc/build.html
deps/npm/html/doc/bundle.html
deps/npm/html/doc/cache.html
deps/npm/html/doc/changelog.html
deps/npm/html/doc/coding-style.html
deps/npm/html/doc/completion.html
deps/npm/html/doc/config.html
deps/npm/html/doc/deprecate.html
deps/npm/html/doc/developers.html
deps/npm/html/doc/disputes.html
deps/npm/html/doc/docs.html
deps/npm/html/doc/edit.html
deps/npm/html/doc/explore.html
deps/npm/html/doc/faq.html
deps/npm/html/doc/folders.html
deps/npm/html/doc/help-search.html
deps/npm/html/doc/help.html
deps/npm/html/doc/index.html
deps/npm/html/doc/init.html
deps/npm/html/doc/install.html
deps/npm/html/doc/json.html
deps/npm/html/doc/link.html
deps/npm/html/doc/list.html
deps/npm/html/doc/npm.html
deps/npm/html/doc/outdated.html
deps/npm/html/doc/owner.html
deps/npm/html/doc/pack.html
deps/npm/html/doc/prefix.html
deps/npm/html/doc/prune.html
deps/npm/html/doc/publish.html
deps/npm/html/doc/rebuild.html
deps/npm/html/doc/registry.html
deps/npm/html/doc/removing-npm.html
deps/npm/html/doc/restart.html
deps/npm/html/doc/root.html
deps/npm/html/doc/run-script.html
deps/npm/html/doc/scripts.html
deps/npm/html/doc/search.html
deps/npm/html/doc/semver.html
deps/npm/html/doc/shrinkwrap.html
deps/npm/html/doc/star.html
deps/npm/html/doc/start.html
deps/npm/html/doc/stop.html
deps/npm/html/doc/submodule.html
deps/npm/html/doc/tag.html
deps/npm/html/doc/test.html
deps/npm/html/doc/uninstall.html
deps/npm/html/doc/unpublish.html
deps/npm/html/doc/update.html
deps/npm/html/doc/version.html
deps/npm/html/doc/view.html
deps/npm/html/doc/whoami.html
deps/npm/man/man1/npm.1
deps/npm/man/man3/npm.3
deps/npm/node_modules/node-gyp/README.md
deps/npm/node_modules/node-gyp/lib/build.js
deps/npm/node_modules/node-gyp/lib/configure.js
deps/npm/node_modules/node-gyp/lib/install.js
deps/npm/node_modules/node-gyp/lib/node-gyp.js
deps/npm/node_modules/node-gyp/node_modules/ansi/package.json
deps/npm/node_modules/node-gyp/node_modules/glob/node_modules/minimatch/package.json
deps/npm/node_modules/node-gyp/node_modules/glob/package.json
deps/npm/node_modules/node-gyp/package.json
deps/npm/package.json
doc/about/index.html
doc/api/path.markdown
doc/community/index.html
doc/index.html
doc/logos/index.html
src/node_version.h
Shigeki Ohtsu [Thu, 15 Mar 2012 14:44:00 +0000 (23:44 +0900)]
doc: Add condition to emit close event of net.Server
Rod Vagg [Fri, 16 Mar 2012 02:43:00 +0000 (13:43 +1100)]
doc: fix # links from (and within) api/fs
Rod Vagg [Fri, 16 Mar 2012 02:43:00 +0000 (13:43 +1100)]
doc: fix # links from (and within) api/fs
isaacs [Fri, 16 Mar 2012 00:09:47 +0000 (17:09 -0700)]
Document ChildProcess exit/close event difference
Nathan Rajlich [Wed, 14 Mar 2012 04:04:24 +0000 (21:04 -0700)]
install: update install.js to use `process.config`
Now that the node_prefix is available from within node, we can use it :)
Nathan Rajlich [Fri, 16 Mar 2012 00:15:18 +0000 (17:15 -0700)]
process: add `process.config`
This is the JS representation of the `config.gypi` file that was used when
compiling node. With this information, you can tell whether the current node
binary has shared or static dependencies, or any other configuration options
that may have been used.
Nathan Rajlich [Wed, 14 Mar 2012 15:34:44 +0000 (08:34 -0700)]
node.gyp: include the config.gypi file in the js2c inputs list
Nathan Rajlich [Wed, 14 Mar 2012 01:31:04 +0000 (18:31 -0700)]
js2c: fix to support files other than ones ending with 2 char extensions
Previously this was basically hard-coded for *.js files, but now we
need to include the 'config.gypi' file in there as well.
Charlie McConnell [Tue, 13 Mar 2012 23:04:00 +0000 (16:04 -0700)]
child_process: Separate 'close' event from 'exit'
Currently, a child process does not emit the 'exit' event until 'close' events
have been received on all three of the child's stdio streams. This change makes
the child object emit 'exit' when the child exits, and a new 'close' event when
all stdio streams are closed.
Nathan Rajlich [Thu, 15 Mar 2012 23:58:13 +0000 (16:58 -0700)]
events: don't delete the listeners array in removeListener()
Ben Noordhuis [Thu, 15 Mar 2012 23:25:41 +0000 (00:25 +0100)]
test: make .removeAllListeners() test more exhaustive
Also test removal of multiple listeners, it's a separate code path.
Ben Noordhuis [Thu, 15 Mar 2012 23:18:50 +0000 (00:18 +0100)]
events: don't delete the listeners array
The documentation implies that .removeAllListeners() leaves the listeners array
untouched. Make it so.
Ben Noordhuis [Thu, 15 Mar 2012 23:15:41 +0000 (00:15 +0100)]
test: don't let debugger listen on common.PORT
simple/test-debugger-repl has a tendency to fail and leave behind a stray
process that listens on common.PORT, making later tests fail with EADDRINUSE.
Nathan Rajlich [Thu, 15 Mar 2012 22:17:25 +0000 (15:17 -0700)]
vcbuild: run the 'configure' script in vcbuild.bat
So that a 'config.gypi' file gets generated, which is
required for the `process.config` object (see #2928).
Ben Noordhuis [Thu, 15 Mar 2012 22:10:32 +0000 (23:10 +0100)]
process: fix process.title setter
Commit 19fd530 broke the argv initialization logic that's used on linux and
freebsd to update the process name (as displayed in tools like `top`).
Fixes test/simple/test-setproctitle.js.
isaacs [Thu, 15 Mar 2012 21:53:17 +0000 (14:53 -0700)]
Fix invalid timer test
Previously, setTimeout(fn, 0) would create a new Timer() object,
which has a close() method (and is a bit slower). The recent
change to more closely emulate browser setTimeout behavior dodges
this path, so this assertion is no longer valid.
Ben Noordhuis [Mon, 11 Jul 2011 22:30:24 +0000 (00:30 +0200)]
timers: handle negative or non-numeric timeout values
Follows browser behaviour by scheduling the callback on the next tick.
Fixes #593.