platform/upstream/nodejs.git
12 years agodoc: fix markup in cluster docs
Andreas Madsen [Sat, 24 Mar 2012 16:25:23 +0000 (17:25 +0100)]
doc: fix markup in cluster docs

12 years agodoc: fix default dgram multicast ttl to 1
Shigeki Ohtsu [Fri, 23 Mar 2012 09:21:53 +0000 (18:21 +0900)]
doc: fix default dgram multicast ttl to 1

12 years agodoc: fix TLS cipher names
Shigeki Ohtsu [Fri, 23 Mar 2012 06:16:49 +0000 (15:16 +0900)]
doc: fix TLS cipher names

12 years agotest: add test of cleartextStream.getCipher() in tls
Shigeki Ohtsu [Fri, 23 Mar 2012 06:10:48 +0000 (15:10 +0900)]
test: add test of cleartextStream.getCipher() in tls

12 years agodoc: add cleartextStream.getCipher() in tls
Shigeki Ohtsu [Fri, 23 Mar 2012 04:04:10 +0000 (13:04 +0900)]
doc: add cleartextStream.getCipher() in tls

12 years agoAvoiding unnecessary ToString() calls
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>

12 years agotls: fix CryptoStream.setKeepAlive()
Shigeki Ohtsu [Thu, 22 Mar 2012 02:50:58 +0000 (11:50 +0900)]
tls: fix CryptoStream.setKeepAlive()

12 years agotest: generate 1024-bit keys, pacify openssl 1.0.1
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

12 years agocmd: add a -i / --interactive flag to force the REPL
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.

12 years agodebug repl tests: Add visibility, remove test that times out
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.

12 years agodebug: Wait 50ms before running the main module
isaacs [Wed, 21 Mar 2012 02:46:36 +0000 (19:46 -0700)]
debug: Wait 50ms before running the main module

12 years agolint readline.js - single-quotes preferred
isaacs [Wed, 21 Mar 2012 02:42:34 +0000 (19:42 -0700)]
lint readline.js - single-quotes preferred

12 years agotest: merge typed arrays tests
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.

12 years agotest: fix 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).

12 years agofixed booleans being treated as strings, resulting in missing node-waf and npm
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

12 years agoreadline: row-agnostic multiline readline implementation
Alex Kocharin [Tue, 20 Mar 2012 22:14:40 +0000 (15:14 -0700)]
readline: row-agnostic multiline readline implementation

Fixes #2959.

12 years agoRevert "readline: add multiline support"
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.

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.

12 years agorepl: fix space autocompletion bug
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.

12 years agoExpose http parse error codes
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`.

12 years agoNo need to have NativeModule.require('fs') in Module._findPath()
Shigeki Ohtsu [Fri, 2 Dec 2011 01:17:19 +0000 (10:17 +0900)]
No need to have NativeModule.require('fs') in Module._findPath()

12 years agocluster: English language fixing
isaacs [Mon, 19 Mar 2012 20:34:12 +0000 (13:34 -0700)]
cluster: English language fixing

12 years agocluster: kill workers when master dies
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.

12 years agocluster: add graceful disconnect support
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.

12 years agochild_process: emit 'channel closed' error instead of throwing
Andreas Madsen [Tue, 31 Jan 2012 18:51:01 +0000 (19:51 +0100)]
child_process: emit 'channel closed' error instead of throwing

12 years agoUpgrade npm to 1.1.10
isaacs [Mon, 19 Mar 2012 16:59:51 +0000 (09:59 -0700)]
Upgrade npm to 1.1.10

12 years agodebugger: breakOnException
Fedor Indutny [Sun, 18 Mar 2012 10:54:07 +0000 (16:54 +0600)]
debugger: breakOnException

Do not break automatically on exception, fixes #2926

12 years agodebugger: remove 'repl' command from builtinLibs
Fedor Indutny [Mon, 19 Mar 2012 16:08:25 +0000 (22:08 +0600)]
debugger: remove 'repl' command from builtinLibs

* It was displaying useless warning

12 years agodebugger: exit process on repl exit
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.

12 years agotest: fix race in simple/test-cluster-master-error
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.

12 years agotest: changed instances of == to ===
Your Name [Sun, 18 Mar 2012 09:44:52 +0000 (17:44 +0800)]
test: changed instances of == to ===

12 years agobuild: make --openssl-use-sys a boolean option
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

12 years agoFix include logic was replacing https include with http
isaacs [Sat, 17 Mar 2012 18:07:28 +0000 (11:07 -0700)]
Fix include logic was replacing https include with http

12 years agoIgnore 'making a build' artifacts
isaacs [Sat, 17 Mar 2012 18:00:05 +0000 (11:00 -0700)]
Ignore 'making a build' artifacts

12 years agobuild: fix configure with spaces in CC
Alex Xu [Fri, 16 Mar 2012 23:01:53 +0000 (16:01 -0700)]
build: fix configure with spaces in CC

12 years agodoc: Remove extraneous index.html's from hyperlinks
isaacs [Fri, 16 Mar 2012 15:19:18 +0000 (08:19 -0700)]
doc: Remove extraneous index.html's from hyperlinks

12 years agoRemove hard-coded version number from docs
isaacs [Fri, 16 Mar 2012 15:13:41 +0000 (08:13 -0700)]
Remove hard-coded version number from docs

12 years agoMerge remote-tracking branch 'ry/v0.6' into merge-v0.6
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

12 years agodoc: Add condition to emit close event of net.Server
Shigeki Ohtsu [Thu, 15 Mar 2012 14:44:00 +0000 (23:44 +0900)]
doc: Add condition to emit close event of net.Server

12 years agodoc: 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

12 years agodoc: 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

12 years agoDocument ChildProcess exit/close event difference
isaacs [Fri, 16 Mar 2012 00:09:47 +0000 (17:09 -0700)]
Document ChildProcess exit/close event difference

12 years agoinstall: update install.js to use `process.config`
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 :)

12 years agoprocess: add `process.config`
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.

12 years agonode.gyp: include the config.gypi file in the js2c inputs list
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

12 years agojs2c: fix to support files other than ones ending with 2 char extensions
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.

12 years agochild_process: Separate 'close' event from 'exit'
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.

12 years agoevents: don't delete the listeners array in removeListener()
Nathan Rajlich [Thu, 15 Mar 2012 23:58:13 +0000 (16:58 -0700)]
events: don't delete the listeners array in removeListener()

12 years agotest: make .removeAllListeners() test more exhaustive
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.

12 years agoevents: don't delete the listeners array
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.

12 years agotest: don't let debugger listen on common.PORT
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.

12 years agovcbuild: run the 'configure' script in vcbuild.bat
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).

12 years agoprocess: fix process.title setter
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.

12 years agoFix invalid timer test
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.

12 years agotimers: handle negative or non-numeric timeout values
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.

12 years agotest: test if forks are spawned with parent's `process.execArgv`
Maciej Małecki [Mon, 5 Mar 2012 18:41:09 +0000 (19:41 +0100)]
test: test if forks are spawned with parent's `process.execArgv`

12 years agotest: test `process.execArgv`
Maciej Małecki [Mon, 5 Mar 2012 18:28:34 +0000 (19:28 +0100)]
test: test `process.execArgv`

12 years agoExpose original argv as process.execArgv for cluster and child_process.fork()
Micheil Smith [Mon, 5 Mar 2012 17:53:15 +0000 (17:53 +0000)]
Expose original argv as process.execArgv for cluster and child_process.fork()

12 years agoAdded trailing backslash to npm path
Matt Ezell [Wed, 7 Mar 2012 18:37:09 +0000 (12:37 -0600)]
Added trailing backslash to npm path

Fix #2377: $PATH issues reported for MSI installer

12 years agoNow working on v0.6.14
isaacs [Thu, 15 Mar 2012 17:33:33 +0000 (10:33 -0700)]
Now working on v0.6.14

12 years agoMerge branch 'v0.6.13-release' into v0.6
isaacs [Thu, 15 Mar 2012 17:32:58 +0000 (10:32 -0700)]
Merge branch 'v0.6.13-release' into v0.6

12 years ago2012.03.15 Version 0.6.13 (stable) v0.6.13
isaacs [Thu, 15 Mar 2012 00:07:24 +0000 (17:07 -0700)]
2012.03.15 Version 0.6.13 (stable)

* Windows: Many libuv test fixes (Bert Belder)

* Windows: avoid uv_guess_handle crash in when fd < 0 (Bert Belder)

* Map EBUSY and ENOTEMPTY errors (Bert Belder)

* Windows: include syscall in fs errors (Bert Belder)

* Fix fs.watch ENOSYS on Linux kernel version mismatch (Ben Noordhuis)

* Update npm to 1.1.9
  - upgrade node-gyp to 0.3.5 (Nathan Rajlich)
  - Fix isaacs/npm#2249 Add cache-max and cache-min configs
  - Properly redirect across https/http registry requests
  - log config usage if undefined key in set function (Kris Windham)
  - 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

12 years agomakefile: Fix 'make doc'
isaacs [Thu, 15 Mar 2012 15:22:31 +0000 (08:22 -0700)]
makefile: Fix 'make doc'

12 years agoUpgrade libuv to 66a959c4052
isaacs [Thu, 15 Mar 2012 15:14:22 +0000 (08:14 -0700)]
Upgrade libuv to 66a959c4052

12 years agoUpdate npm to 1.1.9
isaacs [Wed, 14 Mar 2012 23:39:15 +0000 (16:39 -0700)]
Update npm to 1.1.9

12 years agoUpdate uv to 5d21056
isaacs [Wed, 14 Mar 2012 23:30:35 +0000 (16:30 -0700)]
Update uv to 5d21056

12 years agoDoc highlight fix
Artur Adib [Fri, 9 Mar 2012 14:35:39 +0000 (09:35 -0500)]
Doc highlight fix

12 years agopath.exists*() as 2nd level head not 3rd
Rod Vagg [Wed, 14 Mar 2012 03:53:27 +0000 (14:53 +1100)]
path.exists*() as 2nd level head not 3rd

12 years agotest: Fix path to require hello-world module
Shigeki Ohtsu [Wed, 14 Mar 2012 02:21:14 +0000 (11:21 +0900)]
test: Fix path to require hello-world module

12 years agoprocess: use NODE_STRINGIFY macro to set process.versions.uv
Nathan Rajlich [Tue, 13 Mar 2012 23:04:17 +0000 (16:04 -0700)]
process: use NODE_STRINGIFY macro to set process.versions.uv

12 years agoNow working on 0.7.7
isaacs [Tue, 13 Mar 2012 21:03:51 +0000 (14:03 -0700)]
Now working on 0.7.7

12 years agoMerge branch 'v0.7.6-release'
isaacs [Tue, 13 Mar 2012 21:03:07 +0000 (14:03 -0700)]
Merge branch 'v0.7.6-release'

12 years ago2012.03.13, Version 0.7.6 (unstable) v0.7.6
isaacs [Tue, 13 Mar 2012 16:12:53 +0000 (09:12 -0700)]
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)

12 years agoUpdate npm to 1.1.8
isaacs [Tue, 13 Mar 2012 17:00:25 +0000 (10:00 -0700)]
Update npm to 1.1.8

12 years agodocs: document the repl "exit" event
Nathan Rajlich [Tue, 13 Mar 2012 18:50:28 +0000 (11:50 -0700)]
docs: document the repl "exit" event

12 years agoprocess: listen for the "exit" even on the main repl
Nathan Rajlich [Tue, 13 Mar 2012 18:53:49 +0000 (11:53 -0700)]
process: listen for the "exit" even on the main repl

12 years agorepl: better SIGINT handling behavior
Nathan Rajlich [Tue, 13 Mar 2012 01:05:16 +0000 (18:05 -0700)]
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

12 years agorepl: remove redundant check of rli.rine.length
Nathan Rajlich [Tue, 13 Mar 2012 00:58:45 +0000 (17:58 -0700)]
repl: remove redundant check of rli.rine.length

It get's set to '' 1 line above, so we know that that's always 0.

12 years agorepl: make sure the REPL always flushes with a newline
Nathan Rajlich [Tue, 13 Mar 2012 00:29:21 +0000 (17:29 -0700)]
repl: make sure the REPL always flushes with a newline

12 years agorepl: make REPLServer emit an "exit" event
Nathan Rajlich [Tue, 13 Mar 2012 00:28:31 +0000 (17:28 -0700)]
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.

12 years agorepl: make REPLServer inherit from EventEmitter
Nathan Rajlich [Tue, 13 Mar 2012 00:25:51 +0000 (17:25 -0700)]
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.

12 years agorepl: use path.resolve() for the module.filename
Nathan Rajlich [Tue, 13 Mar 2012 00:24:39 +0000 (17:24 -0700)]
repl: use path.resolve() for the module.filename

Windows was seeing: "C:\\path\\to\\cwd/repl"

12 years agoshebang should make file executable as well
isaacs [Tue, 13 Mar 2012 16:45:01 +0000 (09:45 -0700)]
shebang should make file executable as well

12 years agoissue #2697: have 'make install' set npm shebang to use its node
Trent Mick [Wed, 7 Mar 2012 01:02:25 +0000 (17:02 -0800)]
issue #2697: have 'make install' set npm shebang to use its node

12 years agoDoc highlight fix
Artur Adib [Fri, 9 Mar 2012 14:35:39 +0000 (09:35 -0500)]
Doc highlight fix

12 years agoFix merge conflict in doc/api/readline.markdown
isaacs [Tue, 13 Mar 2012 16:16:39 +0000 (09:16 -0700)]
Fix merge conflict in doc/api/readline.markdown

12 years agoAdded destroy method to Zlib object in zlib.js module
Christian Ress [Mon, 30 Jan 2012 02:33:08 +0000 (18:33 -0800)]
Added destroy method to Zlib object in zlib.js module

12 years agoPatches floating on V8
isaacs [Tue, 13 Mar 2012 04:50:31 +0000 (21:50 -0700)]
Patches floating on V8

12 years agoUpgrade v8 to 3.9.17
isaacs [Tue, 13 Mar 2012 04:46:36 +0000 (21:46 -0700)]
Upgrade v8 to 3.9.17

12 years agoUpgrade npm to 1.1.6
isaacs [Tue, 13 Mar 2012 04:10:40 +0000 (21:10 -0700)]
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

12 years agoprocess: expose the zlib version in use in process.versions
Nathan Rajlich [Thu, 8 Mar 2012 18:56:59 +0000 (10:56 -0800)]
process: expose the zlib version in use in process.versions

12 years agozlib: fix include of zlib.h
Ben Noordhuis [Mon, 12 Mar 2012 22:13:10 +0000 (23:13 +0100)]
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.

12 years agoIgnore an empty port component when parsing URLs.
Łukasz Walukiewicz [Mon, 12 Mar 2012 18:59:43 +0000 (19:59 +0100)]
Ignore an empty port component when parsing URLs.

12 years agomodule: remove 'exited', replace 'children' array
isaacs [Mon, 12 Mar 2012 17:18:29 +0000 (10:18 -0700)]
module: remove 'exited', replace 'children' array

12 years agodocs: fix using legacy api in the buffer doc
Yoshihiro Kikuchi [Mon, 12 Mar 2012 08:27:44 +0000 (17:27 +0900)]
docs: fix using legacy api in the buffer doc

12 years agodocs: correct the description of assert.ok()
Nao Iizuka [Sun, 11 Mar 2012 00:48:08 +0000 (09:48 +0900)]
docs: correct the description of assert.ok()

12 years agohttp: use HTTP_METHOD_MAP macro
Ben Noordhuis [Mon, 12 Mar 2012 01:23:34 +0000 (02:23 +0100)]
http: use HTTP_METHOD_MAP macro

12 years agodeps: upgrade http_parser to 8bec3ea
Ben Noordhuis [Mon, 12 Mar 2012 00:57:15 +0000 (01:57 +0100)]
deps: upgrade http_parser to 8bec3ea

12 years agodocs: console.dir() prints to stdout, not stderr
Ben Noordhuis [Mon, 12 Mar 2012 00:37:32 +0000 (01:37 +0100)]
docs: console.dir() prints to stdout, not stderr

12 years agotls: parsing multiple values of a key in ssl certificate
ssuda [Sat, 3 Mar 2012 09:46:45 +0000 (15:16 +0530)]
tls: parsing multiple values of a key in ssl certificate

Fixes #2864.