Charlie McConnell
c7b8073afc
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.
2012-03-15 17:07:11 -07:00
Nathan Rajlich
928ea564d1
events: don't delete the listeners array in removeListener()
2012-03-15 17:01:29 -07:00
Ben Noordhuis
761a82bc9a
test: make .removeAllListeners() test more exhaustive
...
Also test removal of multiple listeners, it's a separate code path.
2012-03-16 00:25:42 +01:00
Ben Noordhuis
78dc13fbf9
events: don't delete the listeners array
...
The documentation implies that .removeAllListeners() leaves the listeners array
untouched. Make it so.
2012-03-16 00:20:10 +01:00
Ben Noordhuis
f9aa01de32
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.
2012-03-16 00:20:10 +01:00
Nathan Rajlich
dc752327bb
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 ).
2012-03-15 16:12:19 -07:00
Ben Noordhuis
1a97998644
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.
2012-03-15 23:10:32 +01:00
isaacs
702b46c80d
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.
2012-03-15 14:53:17 -07:00
Ben Noordhuis
7fc835afe3
timers: handle negative or non-numeric timeout values
...
Follows browser behaviour by scheduling the callback on the next tick.
Fixes #593 .
2012-03-15 13:56:30 -07:00
Maciej Małecki
9a35656210
test: test if forks are spawned with parent's `process.execArgv`
2012-03-15 13:48:06 -07:00
Maciej Małecki
0113f5a72d
test: test `process.execArgv`
2012-03-15 13:48:05 -07:00
Micheil Smith
19fd5301bf
Expose original argv as process.execArgv for cluster and child_process.fork()
2012-03-15 13:47:43 -07:00
Matt Ezell
96e3be3aa3
Added trailing backslash to npm path
...
Fix #2377 : $PATH issues reported for MSI installer
2012-03-15 13:28:01 -07:00
Shigeki Ohtsu
d2fba2bf35
test: Fix path to require hello-world module
2012-03-14 11:00:52 -07:00
Nathan Rajlich
35043ad8ac
process: use NODE_STRINGIFY macro to set process.versions.uv
2012-03-14 01:40:29 +01:00
isaacs
bda08bfa04
Now working on 0.7.7
2012-03-13 14:03:51 -07:00
isaacs
73c874698b
Merge branch 'v0.7.6-release'
2012-03-13 14:03:07 -07:00
isaacs
f06abda6f5
2012.03.13, Version 0.7.6 (unstable)
...
* Upgrade v8 to 3.9.17
* Upgrade npm to 1.1.8
- Add support for os/cpu fields in package.json (Adam Blackburn)
- Automatically node-gyp packages containing a binding.gyp
- Fix failures unpacking in UNC shares
- Never create un-listable directories
- Handle cases where an optionalDependency fails to build
* events: newListener emit correct fn when using 'once' (Roly Fentanes)
* url: Ignore empty port component (Łukasz Walukiewicz)
* module: replace 'children' array (isaacs)
* tls: parse multiple values of a key in ssl certificate (Sambasiva Suda)
* cluster: support passing of named pipes (Ben Noordhuis)
* Windows: include syscall in fs errors (Bert Belder)
* http: #2888 Emit end event only once (Igor Zinkovsky)
* readline: add multiline support (Rlidwka)
* process: add `process.hrtime()` (Nathan Rajlich)
* net, http, https: add localAddress option (Dmitry Nizovtsev)
* addon improvements (Nathan Rajlich)
* build improvements (Ben Noordhuis, Sadique Ali, T.C. Hollingsworth, Nathan Rajlich)
* add support for "SEARCH" request methods (Nathan Rajlich)
* expose the zlib and http_parser version in process.versions (Nathan Rajlich)
2012-03-13 13:02:38 -07:00
isaacs
10dc129a4b
Update npm to 1.1.8
2012-03-13 13:02:02 -07:00
Nathan Rajlich
884a209ccf
docs: document the repl "exit" event
2012-03-13 19:58:54 +01:00
Nathan Rajlich
f9da776b33
process: listen for the "exit" even on the main repl
2012-03-13 19:58:53 +01:00
Nathan Rajlich
f214758dd1
repl: better SIGINT handling behavior
...
Before:
☮ ~ (master) ⚡ node
> asdf
(^C again to quit)
> sdcasd☮ ~ (master) ⚡
Now:
☮ ~/node (repl) ⚡ ./node
> asfs
> sda
>
(^C again to quit)
> scdsdc
> sdcsdc
>
(^C again to quit)
> sdc
>
(^C again to quit)
>
☮ ~/node (repl) ⚡
^ note that each new line above is a ctrl+c sequence
2012-03-13 19:58:52 +01:00
Nathan Rajlich
6b5a34cdf3
repl: remove redundant check of rli.rine.length
...
It get's set to '' 1 line above, so we know that that's always 0.
2012-03-13 19:58:52 +01:00
Nathan Rajlich
b7ddd30181
repl: make sure the REPL always flushes with a newline
2012-03-13 19:58:51 +01:00
Nathan Rajlich
659d449460
repl: make REPLServer emit an "exit" event
...
This can happen when "SIGINT" is processed by the readline interface,
or when the user types ".exit" into the REPL.
2012-03-13 19:58:50 +01:00
Nathan Rajlich
4f63f9f327
repl: make REPLServer inherit from EventEmitter
...
This is because it should emit an "exit" event when "SIGINT" is received
from the readline interface, or when ".exit" is typed by the user.
2012-03-13 19:58:50 +01:00
Nathan Rajlich
109b16d488
repl: use path.resolve() for the module.filename
...
Windows was seeing: "C:\\path\\to\\cwd/repl"
2012-03-13 19:58:49 +01:00
isaacs
8b79a31333
shebang should make file executable as well
2012-03-13 10:00:59 -07:00
Trent Mick
1cdadb1e3b
issue #2697 : have 'make install' set npm shebang to use its node
2012-03-13 09:35:42 -07:00
Artur Adib
1cecfee634
Doc highlight fix
2012-03-13 09:30:32 -07:00
isaacs
943c396b86
Fix merge conflict in doc/api/readline.markdown
2012-03-13 09:16:48 -07:00
Christian Ress
c15e6905c4
Added destroy method to Zlib object in zlib.js module
2012-03-13 08:24:09 -07:00
isaacs
4e85257c6e
Patches floating on V8
2012-03-12 21:50:31 -07:00
isaacs
e4fc2cbfd3
Upgrade v8 to 3.9.17
2012-03-12 21:46:36 -07:00
isaacs
bcb0cc0b18
Upgrade npm to 1.1.6
...
* Fix #472 Adds support for os/cpu fields in package.json (Adam Blackburn)
* Don't use existing pkg if explicit
* Install missing deps, even if they are in bundleDependencies
* bundle node-gyp
* Automatically node-gyp build stuff with a bindings.gyp
* Fix #2230 Unpack in place. No folder renaming malarky
* Never create un-listable directories
* Fix cases where an optionalDependency fails to build
* Always ignore .wafpickle-7 files
* fix shrinkwrap test
* Fix: bundleDependencies being re-installed unnecessarily
2012-03-12 21:34:07 -07:00
Nathan Rajlich
9701f1c4b2
process: expose the zlib version in use in process.versions
2012-03-12 23:29:20 +01:00
Ben Noordhuis
531eba18a6
zlib: fix include of zlib.h
...
Including <zlib.h> may lead to false positives when the user specifies a bad
path in `./configure --shared-zlib --shared-zlib-includes=/path/to/zlib`. If
a zlib.h exists somewhere on the system include path (common on UNIX systems),
the compiler will include that instead, possibly leading to header mismatch
errors that are hard to debug.
2012-03-12 23:22:48 +01:00
Łukasz Walukiewicz
677c2c112c
Ignore an empty port component when parsing URLs.
2012-03-12 12:46:56 -07:00
isaacs
a10cfba766
module: remove 'exited', replace 'children' array
2012-03-12 10:27:11 -07:00
Yoshihiro Kikuchi
c450ac343f
docs: fix using legacy api in the buffer doc
2012-03-12 15:04:53 +01:00
Nao Iizuka
f8ce384446
docs: correct the description of assert.ok()
2012-03-12 02:27:55 +01:00
Ben Noordhuis
4472f7bbc3
http: use HTTP_METHOD_MAP macro
2012-03-12 02:23:34 +01:00
Ben Noordhuis
79cbe1fdbb
deps: upgrade http_parser to 8bec3ea
2012-03-12 02:20:52 +01:00
Ben Noordhuis
407ecc6b5f
docs: console.dir() prints to stdout, not stderr
2012-03-12 01:37:34 +01:00
ssuda
9b672bcaa2
tls: parsing multiple values of a key in ssl certificate
...
Fixes #2864 .
2012-03-10 23:43:16 +09:00
Nathan Rajlich
36761b2055
process: expose the http_parser version in process.versions
2012-03-10 00:22:42 +01:00
Ben Noordhuis
ff4a9d381d
core: use proper #include directives
2012-03-10 00:14:14 +01:00
Ben Noordhuis
8c02f9b7c8
buffer: throw from constructor if length > kMaxLength
...
Throw, don't abort. `new Buffer(0x3fffffff + 1)` used to bring down the process
with the following error message:
FATAL ERROR: v8::Object::SetIndexedPropertiesToExternalArrayData() length
exceeds max acceptable value
Fixes #2280 .
2012-03-09 23:57:03 +01:00
Ben Noordhuis
2589d55611
core: add ThrowError(), ThrowTypeError(), ThrowRangeError()
2012-03-09 23:31:03 +01:00
Ben Noordhuis
296b7a580b
cluster: support passing of named pipes
...
Fixes triggered assertion:
Assertion failed: (0 && "bad address family"), function GetPeerName,
file ../src/tcp_wrap.cc, line 237.
Fixes #2870 .
2012-03-09 09:42:13 -08:00