platform/upstream/nodejs.git
12 years agodocs: update var names in readline docs to be consistent
James Koval [Sun, 6 May 2012 18:23:09 +0000 (11:23 -0700)]
docs: update var names in readline docs to be consistent

Closes #3201.

12 years agoUpgrade npm to 1.1.21
isaacs [Sun, 6 May 2012 05:33:06 +0000 (22:33 -0700)]
Upgrade npm to 1.1.21

Somehow this got downgraded in the last v0.6 merge.  Very strange.

12 years agoDocument http.STATUS_CODES
isaacs [Sun, 6 May 2012 02:27:42 +0000 (19:27 -0700)]
Document http.STATUS_CODES

This is an incredibly useful thing to know about, and it
will likely never change.  I can't remember why we
didn't ever document it, and people keep suggesting we
do so.

12 years agoMore cluster event consistency
isaacs [Sat, 5 May 2012 22:07:58 +0000 (15:07 -0700)]
More cluster event consistency

Regarding discussion in #3198.  Passing the worker as an argument
to an event emitted on the worker is redundant, and an unnecessary
break in consistency vs the events on the ChildProcess objects.

It was removed from 'exit', but 'listening' and others were
overlooked.  This corrects that oversight.

12 years agoMove test-fs-largefile into pummel
isaacs [Sat, 5 May 2012 22:05:14 +0000 (15:05 -0700)]
Move test-fs-largefile into pummel

It's too slow.

12 years agobuild: print error message if no compiler found
Javier Hernández [Fri, 4 May 2012 22:06:24 +0000 (00:06 +0200)]
build: print error message if no compiler found

Make the configure script warn the user about the lack of an acceptable
C compiler on the system.

12 years agodoc: fix setEncoding()
koichik [Sat, 5 May 2012 14:10:36 +0000 (23:10 +0900)]
doc: fix setEncoding()

Fixes #3209.

12 years agostring_decoder: added support for UTF-16LE
koichik [Sat, 5 May 2012 13:47:24 +0000 (22:47 +0900)]
string_decoder: added support for UTF-16LE

Fixes #3223.

12 years agoAdd HTTP Status codes from RFC 6585
Mark Cavage [Mon, 19 Dec 2011 00:13:51 +0000 (16:13 -0800)]
Add HTTP Status codes from RFC 6585

See: http://tools.ietf.org/html/rfc6585

12 years agostring_decoder: add support for CESU-8
koichik [Sat, 5 May 2012 03:22:01 +0000 (12:22 +0900)]
string_decoder: add support for CESU-8

Fixes #3217.

12 years agotest: No need for weak in 'make test'
isaacs [Sat, 5 May 2012 01:29:56 +0000 (18:29 -0700)]
test: No need for weak in 'make test'

12 years agocluster: worker exit event to match child_process
J. Lee Coltrane [Wed, 2 May 2012 16:38:31 +0000 (12:38 -0400)]
cluster: worker exit event to match child_process

test: fixes due to new cluster api.

- changed worker `death` to `exit`.
- corrected argument type expected by worker `exit` handler.

test: more tests of cluster.worker death

cluster: fixed arguments on worker 'exit' event

worker 'exit' event now emits arguments consistent with the
corresponding event in child_process module.

12 years agoMerge branch 'v0.6-merge'
isaacs [Sat, 5 May 2012 00:24:30 +0000 (17:24 -0700)]
Merge branch 'v0.6-merge'

12 years agoFix incorrect merge choices
isaacs [Sat, 5 May 2012 00:14:09 +0000 (17:14 -0700)]
Fix incorrect merge choices

12 years agonet: signal localAddress bind failure in connect
Brian Schroeder [Thu, 3 May 2012 20:27:06 +0000 (13:27 -0700)]
net: signal localAddress bind failure in connect

12 years agonode: un-revert 9a6012e
Marcel Laverdet [Fri, 4 May 2012 22:29:42 +0000 (17:29 -0500)]
node: un-revert 9a6012e

The crashes in debug mode after adding Locker are *not* caused by
Locker. Locker is merely exposing issues that already existed. Some of
these issues have since been fixed in 70635753.

This reverts commit 407181538b5193f6810bf06a2056a200265c0e93.
This reapplies commit 9a6012edd9330296b7476bc6b7fbda2cd5c8165d.

Conflicts:
src/node.cc

12 years agoMerge remote-tracking branch 'ry/v0.6' into v0.6-merge
isaacs [Fri, 4 May 2012 22:12:47 +0000 (15:12 -0700)]
Merge remote-tracking branch 'ry/v0.6' into v0.6-merge

Conflicts:
ChangeLog
Makefile
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/package.json
doc/api/url.markdown
lib/http.js
src/node_version.h
test/simple/test-fs-sync-fd-leak.js

12 years agohttp: Clean up parser usage
isaacs [Fri, 4 May 2012 17:40:27 +0000 (10:40 -0700)]
http: Clean up parser usage

Move parsers.free(parser) to a single function, which also
nulls all of the various references we hang on them.

Also, move the parser.on* methods out of the closure, so that
there's one shared definition of each, instead of re-defining
for each parser in a spot where they can close over references
to other request-specific objects.

Conflicts:

lib/http.js

12 years agoClean up gc tests
isaacs [Fri, 4 May 2012 17:32:42 +0000 (10:32 -0700)]
Clean up gc tests

This fixes the additional issues brought up in #3179.

12 years agohttp: .once() usage in setTimeout
isaacs [Thu, 3 May 2012 17:39:16 +0000 (10:39 -0700)]
http: .once() usage in setTimeout

12 years agoTests for memory leaks
isaacs [Thu, 3 May 2012 17:16:25 +0000 (10:16 -0700)]
Tests for memory leaks

Conflicts:

Makefile

12 years agohttp leak: Null links from parser to req/res
isaacs [Thu, 3 May 2012 17:20:20 +0000 (10:20 -0700)]
http leak: Null links from parser to req/res

12 years agoFix #3179 HTTP memory leak using ClientRequest.
vvo [Thu, 26 Apr 2012 23:02:10 +0000 (01:02 +0200)]
Fix #3179 HTTP memory leak using ClientRequest.

12 years agohttp client: Destroy on timeout
isaacs [Wed, 2 May 2012 19:13:54 +0000 (12:13 -0700)]
http client: Destroy on timeout

12 years agohttp: Remove socket ondata/onend in parser cleanup
isaacs [Tue, 1 May 2012 22:25:59 +0000 (15:25 -0700)]
http: Remove socket ondata/onend in parser cleanup

12 years agoNull references to request object on socket errors.
isaacs [Tue, 1 May 2012 21:26:18 +0000 (14:26 -0700)]
Null references to request object on socket errors.

Regarding #3199 and #3179 and issues seen in production.
Hopefully this fixes them.

12 years agoNow working on 0.6.18
isaacs [Fri, 4 May 2012 20:34:33 +0000 (13:34 -0700)]
Now working on 0.6.18

12 years agoMerge branch 'v0.6.17-release' into v0.6
isaacs [Fri, 4 May 2012 20:34:08 +0000 (13:34 -0700)]
Merge branch 'v0.6.17-release' into v0.6

12 years ago2012.05.04 Version 0.6.17 (stable) v0.6.17
isaacs [Fri, 4 May 2012 18:21:08 +0000 (11:21 -0700)]
2012.05.04 Version 0.6.17 (stable)

* Upgrade npm to 1.1.21

* uv: Add support for EROFS errors (Ben Noordhuis, Maciej Małecki)

* uv: Add support for EIO and ENOSPC errors (Fedor Indutny)

* windows: Add support for EXDEV errors (Bert Belder)

* http: Fix client memory leaks (isaacs, Vincent Voyer)

* fs: fix file descriptor leak in sync functions (Ben Noordhuis)

* fs: fix ReadStream / WriteStream double close bug (Ben Noordhuis)

12 years agotest: Run weak install with --unsafe-perm
isaacs [Fri, 4 May 2012 19:51:37 +0000 (12:51 -0700)]
test: Run weak install with --unsafe-perm

This way it doesn't die when running as root.

12 years agoUpgrade npm to 1.1.21
isaacs [Fri, 4 May 2012 18:06:35 +0000 (11:06 -0700)]
Upgrade npm to 1.1.21

12 years agoUpgrade uv to 936795a2c
isaacs [Fri, 4 May 2012 18:00:39 +0000 (11:00 -0700)]
Upgrade uv to 936795a2c

12 years agoUpdate Authors
isaacs [Fri, 4 May 2012 17:57:33 +0000 (10:57 -0700)]
Update Authors

12 years agoMerge branch 'http-memleak' into v0.6
isaacs [Fri, 4 May 2012 17:54:24 +0000 (10:54 -0700)]
Merge branch 'http-memleak' into v0.6

12 years agohttp: Clean up parser usage
isaacs [Fri, 4 May 2012 17:40:27 +0000 (10:40 -0700)]
http: Clean up parser usage

Move parsers.free(parser) to a single function, which also
nulls all of the various references we hang on them.

Also, move the parser.on* methods out of the closure, so that
there's one shared definition of each, instead of re-defining
for each parser in a spot where they can close over references
to other request-specific objects.

12 years agoClean up gc tests
isaacs [Fri, 4 May 2012 17:32:42 +0000 (10:32 -0700)]
Clean up gc tests

This fixes the additional issues brought up in #3179.

12 years agodoc: fix callback argument of child_process.exec, execFile
ANDO Takahiro [Tue, 1 May 2012 02:41:29 +0000 (11:41 +0900)]
doc: fix callback argument of child_process.exec, execFile

Fixes #3196.

12 years agohttp: .once() usage in setTimeout
isaacs [Thu, 3 May 2012 17:39:16 +0000 (10:39 -0700)]
http: .once() usage in setTimeout

12 years agoTests for memory leaks
isaacs [Thu, 3 May 2012 17:16:25 +0000 (10:16 -0700)]
Tests for memory leaks

12 years agohttp leak: Null links from parser to req/res
isaacs [Thu, 3 May 2012 17:20:20 +0000 (10:20 -0700)]
http leak: Null links from parser to req/res

12 years agobuffer: add UTF-16LE encoding name.
koichik [Thu, 3 May 2012 14:55:25 +0000 (23:55 +0900)]
buffer: add UTF-16LE encoding name.

12 years agoFix #3179 HTTP memory leak using ClientRequest.
vvo [Thu, 26 Apr 2012 23:02:10 +0000 (01:02 +0200)]
Fix #3179 HTTP memory leak using ClientRequest.

12 years agoaddon: add AtExit() function
Ben Noordhuis [Sat, 21 Apr 2012 05:13:25 +0000 (07:13 +0200)]
addon: add AtExit() function

Lets native addons register exit hooks that run after the event loop has quit
but before the VM is killed.

Fixes #3147.

12 years ago64bit offsets for fs calls
Igor Zinkovsky [Thu, 19 Apr 2012 18:58:35 +0000 (11:58 -0700)]
64bit offsets for fs calls

12 years agofs: fix file descriptor leak in sync functions
Ben Noordhuis [Wed, 2 May 2012 23:03:08 +0000 (01:03 +0200)]
fs: fix file descriptor leak in sync functions

Fixes #3202. This is a back-port of commit 4e290e4.

12 years agofs: fix file descriptor leak in sync functions
Ben Noordhuis [Wed, 2 May 2012 23:03:08 +0000 (01:03 +0200)]
fs: fix file descriptor leak in sync functions

Fixes #3202.

12 years agofs: fix ReadStream / WriteStream double close bug
Ben Noordhuis [Wed, 2 May 2012 02:24:38 +0000 (04:24 +0200)]
fs: fix ReadStream / WriteStream double close bug

* Calling fs.ReadStream.destroy() or fs.WriteStream.destroy() twice would close
  the file descriptor twice. That's bad because the file descriptor may have
  been repurposed in the mean time.

* A bad value check in fs.ReadStream.prototype.destroy() would prevent a stream
  created with fs.createReadStream({fd:0}) from getting closed.

12 years agoRevert "v8: fix "pure virtual method called" runtime error"
Ben Noordhuis [Wed, 2 May 2012 22:53:45 +0000 (22:53 +0000)]
Revert "v8: fix "pure virtual method called" runtime error"

It makes mksnapshot die with a segmentation fault on sunos with gcc 4.5.2.

This reverts commit c21c51a6fce878a4625c30032e669660ce6cbcaf.

12 years agohttp client: Destroy on timeout
isaacs [Wed, 2 May 2012 19:13:54 +0000 (12:13 -0700)]
http client: Destroy on timeout

12 years agotcp, udp: share sockaddr-to-object function
Ben Noordhuis [Wed, 2 May 2012 16:03:23 +0000 (18:03 +0200)]
tcp, udp: share sockaddr-to-object function

Share AddressToJS() function between tcp_wrap.cc and udp_wrap.cc.

12 years agodebugger: support mirroring Date objects
Fedor Indutny [Wed, 2 May 2012 05:30:23 +0000 (12:30 +0700)]
debugger: support mirroring Date objects

* fixes #3203

12 years agotest: add a child domain explicitly
Yoshihiro Kikuchi [Tue, 1 May 2012 02:32:20 +0000 (11:32 +0900)]
test: add a child domain explicitly

12 years agoReturn after emitting error in tty.js
isaacs [Tue, 1 May 2012 22:51:29 +0000 (15:51 -0700)]
Return after emitting error in tty.js

12 years agohttp: Remove socket ondata/onend in parser cleanup
isaacs [Tue, 1 May 2012 22:25:59 +0000 (15:25 -0700)]
http: Remove socket ondata/onend in parser cleanup

12 years agoNull references to request object on socket errors.
isaacs [Tue, 1 May 2012 21:26:18 +0000 (14:26 -0700)]
Null references to request object on socket errors.

Regarding #3199 and #3179 and issues seen in production.
Hopefully this fixes them.

12 years agoprocess: ensure that "exit" doesn't get emitted twice on a natural exit
Nathan Rajlich [Tue, 1 May 2012 20:53:30 +0000 (13:53 -0700)]
process: ensure that "exit" doesn't get emitted twice on a natural exit

Fixes "test/simple/test-process-exit.js".

12 years agoNow working on 0.6.17
isaacs [Tue, 1 May 2012 20:31:26 +0000 (13:31 -0700)]
Now working on 0.6.17

12 years agovm: accept only object as arg of .createContext()
Fedor Indutny [Tue, 1 May 2012 18:59:59 +0000 (01:59 +0700)]
vm: accept only object as arg of .createContext()

Converting strings and others to objects is very slow and essentially
wrong.

12 years agopath: add path.sep to get the path separator.
Yi, EungJun [Mon, 2 Apr 2012 16:31:21 +0000 (01:31 +0900)]
path: add path.sep to get the path separator.

12 years agodoc: correct return value of string-based fs.readSync
Kyle Robinson Young [Sat, 21 Apr 2012 05:58:15 +0000 (22:58 -0700)]
doc: correct return value of string-based fs.readSync

Closes #2330

12 years agoudp: slightly optimize address family property
Ben Noordhuis [Tue, 1 May 2012 12:55:51 +0000 (14:55 +0200)]
udp: slightly optimize address family property

12 years agoudp: make variable names consistent
Ben Noordhuis [Tue, 1 May 2012 12:52:00 +0000 (14:52 +0200)]
udp: make variable names consistent

12 years agoudp: make getsockname() return address family name
Shigeki Ohtsu [Tue, 1 May 2012 00:49:19 +0000 (09:49 +0900)]
udp: make getsockname() return address family name

12 years agotty: emit "error" instead of throwing when getWindowSize() fails
Nathan Rajlich [Tue, 1 May 2012 01:51:20 +0000 (18:51 -0700)]
tty: emit "error" instead of throwing when getWindowSize() fails

12 years agodoc: add Cloud9 links to docs
Garen Torikian [Fri, 23 Mar 2012 02:03:18 +0000 (03:03 +0100)]
doc: add Cloud9 links to docs

12 years agodoc: add args to console methods
Kyle Robinson Young [Sat, 21 Apr 2012 17:55:14 +0000 (10:55 -0700)]
doc: add args to console methods

12 years agodoc: typo fixes
Kyle Robinson Young [Fri, 30 Mar 2012 06:17:41 +0000 (23:17 -0700)]
doc: typo fixes

12 years agotty: throw an Error when getWindowSize() fails
Nathan Rajlich [Mon, 30 Apr 2012 23:18:37 +0000 (16:18 -0700)]
tty: throw an Error when getWindowSize() fails

12 years agotest: rebuild keys without asking for password
Michael Thomas [Sun, 29 Apr 2012 18:40:36 +0000 (14:40 -0400)]
test: rebuild keys without asking for password

12 years agodeps: remove libuv sanity check
Ben Noordhuis [Mon, 30 Apr 2012 22:55:43 +0000 (00:55 +0200)]
deps: remove libuv sanity check

Remove reference count check. Unbreaks test suite. This needs to be addressed.

12 years agodeps: back-port openssl patch
Ben Noordhuis [Mon, 30 Apr 2012 22:36:40 +0000 (00:36 +0200)]
deps: back-port openssl patch

Check for potentially exploitable overflows in asn1_d2i_read_bio
BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
in CRYPTO_realloc_clean.

Taken from OpenSSL CVS. Addresses CVE-2012-2110.

12 years agoMerge branch 'v0.6.16-release' into v0.6
isaacs [Mon, 30 Apr 2012 20:15:40 +0000 (13:15 -0700)]
Merge branch 'v0.6.16-release' into v0.6

12 years ago2012.04.30 Version 0.6.16 (stable) v0.6.16
isaacs [Fri, 27 Apr 2012 21:33:15 +0000 (14:33 -0700)]
2012.04.30 Version 0.6.16 (stable)

* Upgrade V8 to 3.6.6.25

* Upgrade npm to 1.1.19

* Windows: add mappings for UV_ENOENT (Bert Belder)

* linux: add IN_MOVE_SELF to inotify event mask (Ben Noordhuis)

* unix: call pipe handle connection cb on accept() error (Ben Noordhuis)

* unix: handle EWOULDBLOCK (Ben Noordhuis)

* map EWOULDBLOCK to UV_EAGAIN (Ben Noordhuis)

* Map ENOMEM to UV_ENOMEM (isaacs)

* Child process: support the `gid` and `uid` options (Bert Belder)

* test: cluster: add worker death event test (Ben Noordhuis)

* typo in node_http_parser (isaacs)

* http_parser: Eat CRLF between requests, even on connection:close. (Ben Noordhuis)

* don't check return value of unsetenv (Ben Noordhuis)

12 years agoFix #3194 correct url documentation
isaacs [Mon, 30 Apr 2012 17:30:05 +0000 (10:30 -0700)]
Fix #3194 correct url documentation

12 years agoIndentation fix
isaacs [Mon, 30 Apr 2012 15:37:53 +0000 (08:37 -0700)]
Indentation fix

12 years agoUpgrade npm to 1.1.18
isaacs [Fri, 27 Apr 2012 22:01:31 +0000 (15:01 -0700)]
Upgrade npm to 1.1.18

12 years agoprocess: ensure that the "exit" event always has "code" given
Nathan Rajlich [Mon, 30 Apr 2012 01:53:41 +0000 (18:53 -0700)]
process: ensure that the "exit" event always has "code" given

Upon "normal" exiting of Node (i.e. the event loop completes naturally),
the "code" parameter was not being passed to the "exit" event listeners.

Be consistent. Tests included.

12 years agoconsole: throw when no such label exists in `console.timeEnd`
Maciej Małecki [Sun, 29 Apr 2012 13:17:16 +0000 (15:17 +0200)]
console: throw when no such label exists in `console.timeEnd`

Test included.

12 years agoprocess_wrap: don't use uv_spawn2
Bert Belder [Sat, 28 Apr 2012 22:24:51 +0000 (00:24 +0200)]
process_wrap: don't use uv_spawn2

It was a temporary thing for the 0.6 branch only.

12 years agouv: upgrade to e2cae340a6
Bert Belder [Sat, 28 Apr 2012 22:22:01 +0000 (00:22 +0200)]
uv: upgrade to e2cae340a6

12 years agoMerge branch 'v0.6'
Bert Belder [Sat, 28 Apr 2012 22:17:23 +0000 (00:17 +0200)]
Merge branch 'v0.6'

Conflicts:
deps/uv/include/uv-private/uv-unix.h
deps/uv/include/uv-private/uv-win.h
deps/uv/src/uv-common.c
deps/uv/src/win/fs.c
src/process_wrap.cc

12 years agoprocess: don't use strdup()
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.

Conflicts:

src/process_wrap.cc

12 years agoprocess_wrap: avoid leaking memory when throwing due to invalid arguments
Bert Belder [Sat, 28 Apr 2012 21:36:47 +0000 (23:36 +0200)]
process_wrap: avoid leaking memory when throwing due to invalid arguments

12 years agodoc: document the address object in the cluster listening event
Andreas Madsen [Sat, 28 Apr 2012 12:24:17 +0000 (14:24 +0200)]
doc: document the address object in the cluster listening event

12 years agobench: add continuous stress test
Ben Noordhuis [Fri, 27 Apr 2012 21:10:35 +0000 (23:10 +0200)]
bench: add continuous stress test

Useful in tracking down or at least demonstrating memory leaks.

12 years agoChild process: support the `gid` and `uid` options
Bert Belder [Fri, 27 Apr 2012 20:13:00 +0000 (22:13 +0200)]
Child process: support the `gid` and `uid` options

12 years agoWindows: turn off /Gm
Bert Belder [Fri, 27 Apr 2012 20:06:12 +0000 (22:06 +0200)]
Windows: turn off /Gm

Otherwise multicode compile doesn't work.

12 years agouv: upgrade to d41cc9118d
Bert Belder [Fri, 27 Apr 2012 20:00:44 +0000 (22:00 +0200)]
uv: upgrade to d41cc9118d

12 years agouv: upgrade to aea5db5da1
Bert Belder [Fri, 27 Apr 2012 19:28:56 +0000 (21:28 +0200)]
uv: upgrade to aea5db5da1

12 years agobench: run GC and dump stats if --expose-gc is set
Ben Noordhuis [Fri, 27 Apr 2012 18:29:35 +0000 (20:29 +0200)]
bench: run GC and dump stats if --expose-gc is set

12 years agoCleanup vm module memory leakage
Marcel Laverdet [Wed, 11 Apr 2012 00:27:38 +0000 (19:27 -0500)]
Cleanup vm module memory leakage

There are some paths here that led to dangling contexts. By being
smarter with handle management we can get rid of all the cleanup code
and fix those issues.

12 years agoAdd customary 'fork me on github' banner to website
isaacs [Fri, 27 Apr 2012 14:58:38 +0000 (07:58 -0700)]
Add customary 'fork me on github' banner to website

12 years agorepl: make tab completion read up the prototype of "global"
Nathan Rajlich [Thu, 26 Apr 2012 03:08:30 +0000 (20:08 -0700)]
repl: make tab completion read up the prototype of "global"

For example, there's a global "toString()" function, so the REPL's
tab completion should pick that up.

12 years agoprocess: lint
Nathan Rajlich [Thu, 26 Apr 2012 03:10:50 +0000 (20:10 -0700)]
process: lint

12 years agoRemove unused local variable.
Ben Noordhuis [Wed, 25 Apr 2012 11:10:31 +0000 (04:10 -0700)]
Remove unused local variable.

12 years agodoc: update string_decoder stability index to 3
Kyle Robinson Young [Tue, 24 Apr 2012 21:04:39 +0000 (14:04 -0700)]
doc: update string_decoder stability index to 3

Ref #3140

12 years agoprocess: comment for consistency
Nathan Rajlich [Tue, 24 Apr 2012 08:32:33 +0000 (01:32 -0700)]
process: comment for consistency

12 years agoprocess: set _print_eval even when --eval is not passed
Nathan Rajlich [Tue, 24 Apr 2012 08:24:13 +0000 (01:24 -0700)]
process: set _print_eval even when --eval is not passed

This is for scripts being fed from stdin:

  $ echo "{ foo: 'bar' }" | node -p

12 years agoprocess: make --eval and reading scripts from stdin act the same
Nathan Rajlich [Tue, 24 Apr 2012 08:34:17 +0000 (01:34 -0700)]
process: make --eval and reading scripts from stdin act the same

Reusing the same logic for both places for the behavior is consistent.

For example:

  $ ./node -p -e "'Hello World'"
  Hello World

  $ echo "'Hello World'" | ./node -p
  Hello World

12 years agodoc: util: add args to format and methods error, puts, print
Kyle Robinson Young [Mon, 23 Apr 2012 17:03:36 +0000 (10:03 -0700)]
doc: util: add args to format and methods error, puts, print