platform/upstream/nodejs.git
12 years agonow working on v0.5.10
Ryan Dahl [Tue, 11 Oct 2011 01:56:37 +0000 (18:56 -0700)]
now working on v0.5.10

12 years agoBump version to v0.5.9 v0.5.9
Ryan Dahl [Mon, 10 Oct 2011 21:43:15 +0000 (14:43 -0700)]
Bump version to v0.5.9

12 years agoRevert "v8: implement VirtualMemory class on SunOS"
Ryan Dahl [Tue, 11 Oct 2011 01:17:17 +0000 (18:17 -0700)]
Revert "v8: implement VirtualMemory class on SunOS"

This reverts commit 9bbca99107652906a060679ee95bf1ad7381cbb5.

12 years agoRevert "Upgrade V8 to 3.6.6"
Ryan Dahl [Tue, 11 Oct 2011 00:58:30 +0000 (17:58 -0700)]
Revert "Upgrade V8 to 3.6.6"

Not stable enough.
- Windows snapshot linking broken
- Linux crash on ./node_g test/simple/test-stream-pipe-multi.js

This reverts commit 56e6952e639ba1557a5b22333788583e9e39fa29.

12 years agov8: implement VirtualMemory class on SunOS
Ben Noordhuis [Mon, 10 Oct 2011 22:32:54 +0000 (22:32 +0000)]
v8: implement VirtualMemory class on SunOS

12 years agoUpgrade libuv to f7f518a
Ryan Dahl [Tue, 11 Oct 2011 00:05:18 +0000 (17:05 -0700)]
Upgrade libuv to f7f518a

12 years agochild_process.fork: don't overwrite env
Ryan Dahl [Mon, 10 Oct 2011 21:49:02 +0000 (14:49 -0700)]
child_process.fork: don't overwrite env

thanks to Malte-Thorben Bruns for pointing this out

12 years agoRemove test-child-process-channel.js
Ryan Dahl [Mon, 10 Oct 2011 21:27:52 +0000 (14:27 -0700)]
Remove test-child-process-channel.js

12 years agoAdjust listenFD deprecation message. Remove test.
Ryan Dahl [Mon, 10 Oct 2011 21:24:56 +0000 (14:24 -0700)]
Adjust listenFD deprecation message. Remove test.

12 years agoprocess.stderr goes through libuv now
Ryan Dahl [Mon, 10 Oct 2011 20:52:18 +0000 (13:52 -0700)]
process.stderr goes through libuv now

This commit removes one assert from test-console.js in which we check that
process.stderr.write returns true. In the case of a dump to a file we cannot
guarantee this any longer now that it goes through fs.WriteStream.

12 years agogyp: work around sunos python flock() bug
Ben Noordhuis [Mon, 10 Oct 2011 20:50:47 +0000 (20:50 +0000)]
gyp: work around sunos python flock() bug

flock(LOCK_EX) always fails with EBADF, use fcntl(F_SETLK) instead.

12 years agotty.WritableStream should be writable
Ryan Dahl [Mon, 10 Oct 2011 20:41:04 +0000 (13:41 -0700)]
tty.WritableStream should be writable

12 years agoUpgrade libuv to 5656e3
Ryan Dahl [Mon, 10 Oct 2011 20:30:10 +0000 (13:30 -0700)]
Upgrade libuv to 5656e3

This modifies the TTYWrap constructor to add another argument specifying if
it's a readable or writable TTY . That is stdin or stdout. If a TTYWrap is
not readable then writes to it are blocking.

This makes process.stdout blocking.

12 years agoFix #1851 Correct X/index doc
isaacs [Mon, 10 Oct 2011 18:46:36 +0000 (11:46 -0700)]
Fix #1851 Correct X/index doc

12 years agoUpgrade V8 to 3.6.6
Ryan Dahl [Mon, 10 Oct 2011 18:52:42 +0000 (11:52 -0700)]
Upgrade V8 to 3.6.6

12 years agoUpdate docs for server fd sharing
Ryan Dahl [Mon, 10 Oct 2011 18:31:40 +0000 (11:31 -0700)]
Update docs for server fd sharing

12 years agouv: upgrade to 41e8574
Ben Noordhuis [Mon, 10 Oct 2011 14:56:02 +0000 (16:56 +0200)]
uv: upgrade to 41e8574

12 years agotty: unbreak --use-legacy
Ben Noordhuis [Mon, 10 Oct 2011 13:37:07 +0000 (15:37 +0200)]
tty: unbreak --use-legacy

Fixes #1844.

12 years agoWindows: exit on ctrl+c
Bert Belder [Sat, 8 Oct 2011 00:18:26 +0000 (02:18 +0200)]
Windows: exit on ctrl+c

Fixes #1813

12 years agofix for simple/test-executable-path.js on windows
Igor Zinkovsky [Sat, 8 Oct 2011 00:08:48 +0000 (17:08 -0700)]
fix for simple/test-executable-path.js on windows

12 years agoChange API for sending handles
Ryan Dahl [Fri, 7 Oct 2011 23:43:53 +0000 (16:43 -0700)]
Change API for sending handles

Does not support sending net.Server objects only raw TCPWrap objects.

12 years agoUpgrade libuv to 9f6024a
Ryan Dahl [Fri, 7 Oct 2011 22:20:33 +0000 (15:20 -0700)]
Upgrade libuv to 9f6024a

Fixes #1840

12 years agoDo load balancing test in test-child-process-fork2.
Ryan Dahl [Fri, 7 Oct 2011 20:58:49 +0000 (13:58 -0700)]
Do load balancing test in test-child-process-fork2.

12 years agoSome small optimizations
Bert Belder [Fri, 7 Oct 2011 01:07:45 +0000 (03:07 +0200)]
Some small optimizations

12 years agoSimplify arg parsing in String.write
Ryan Dahl [Thu, 6 Oct 2011 23:57:35 +0000 (16:57 -0700)]
Simplify arg parsing in String.write

12 years agonet: remove unconditional getpeername() call
Ben Noordhuis [Thu, 6 Oct 2011 21:53:27 +0000 (23:53 +0200)]
net: remove unconditional getpeername() call

Speeds up http_simple benchmark by about 1.0%

12 years agoSimplify writeReq handling in net_uv
Bert Belder [Thu, 6 Oct 2011 19:27:10 +0000 (21:27 +0200)]
Simplify writeReq handling in net_uv

12 years agoFixing #1774 about issues when running node with --harmony_block_scoping v8 option
talltyler [Fri, 7 Oct 2011 03:04:39 +0000 (23:04 -0400)]
Fixing #1774 about issues when running node with --harmony_block_scoping v8 option

Fixes #1837.

12 years agoBlack hole tcp reads after destroy()
Bert Belder [Fri, 7 Oct 2011 17:00:48 +0000 (19:00 +0200)]
Black hole tcp reads after destroy()

12 years agoAdd test-child-process-fork2 and fixes to make it work
Ryan Dahl [Fri, 7 Oct 2011 09:43:44 +0000 (02:43 -0700)]
Add test-child-process-fork2 and fixes to make it work

12 years agoDon't check sign of loadavg
Fedor Indutny [Fri, 7 Oct 2011 08:21:23 +0000 (15:21 +0700)]
Don't check sign of loadavg

Fixes #1838

12 years agouse uv for memory and loadavg functions
Fedor Indutny [Fri, 7 Oct 2011 08:17:51 +0000 (15:17 +0700)]
use uv for memory and loadavg functions

12 years agoSupport sending handles to other processes
Ryan Dahl [Fri, 7 Oct 2011 08:30:26 +0000 (01:30 -0700)]
Support sending handles to other processes

Needs test.

12 years agoTurn off V8's -Werror in GYP
Ryan Dahl [Fri, 7 Oct 2011 08:08:53 +0000 (01:08 -0700)]
Turn off V8's -Werror in GYP

12 years agoMerge branch 'ipc-binding'
Ryan Dahl [Fri, 7 Oct 2011 08:00:40 +0000 (01:00 -0700)]
Merge branch 'ipc-binding'

12 years agoReimplement child_process.fork
Ryan Dahl [Fri, 7 Oct 2011 07:57:37 +0000 (00:57 -0700)]
Reimplement child_process.fork

Fixes test/simple/test-child-process-fork.js

12 years agoUpgrade libuv to 886b112
Ryan Dahl [Fri, 7 Oct 2011 07:47:13 +0000 (00:47 -0700)]
Upgrade libuv to 886b112

12 years agomv test-child-process-spawn-node.js test/simple/test-child-process-fork.js
Ryan Dahl [Fri, 7 Oct 2011 05:56:29 +0000 (22:56 -0700)]
mv test-child-process-spawn-node.js test/simple/test-child-process-fork.js

12 years agouv_write2 uv_read2_start binding
Ryan Dahl [Wed, 5 Oct 2011 19:33:05 +0000 (12:33 -0700)]
uv_write2 uv_read2_start binding

12 years agoPrint libuv counters after http_simple exits
Ryan Dahl [Thu, 6 Oct 2011 22:02:27 +0000 (15:02 -0700)]
Print libuv counters after http_simple exits

12 years agoAdd process.uvCounters() for debugging
Ryan Dahl [Thu, 6 Oct 2011 21:59:38 +0000 (14:59 -0700)]
Add process.uvCounters() for debugging

12 years agoUpgrade libuv to 60c639f
Ryan Dahl [Thu, 6 Oct 2011 19:26:51 +0000 (12:26 -0700)]
Upgrade libuv to 60c639f

Also remove unused src/stdio_wrap.cc

12 years agoFix gyp build
Bert Belder [Thu, 6 Oct 2011 19:25:13 +0000 (21:25 +0200)]
Fix gyp build

12 years agodocs: add example to net.connect()
koichik [Thu, 6 Oct 2011 05:56:50 +0000 (14:56 +0900)]
docs: add example to net.connect()

Fixes #1824.

12 years agoFixed a lot of jslint errors.
Colton Baker [Tue, 4 Oct 2011 22:08:18 +0000 (18:08 -0400)]
Fixed a lot of jslint errors.

Fixes #1831

12 years agoupgrade libuv to 0303197
Ryan Dahl [Tue, 4 Oct 2011 23:53:17 +0000 (16:53 -0700)]
upgrade libuv to 0303197

12 years agohttp: remove legacy http library
Ben Noordhuis [Tue, 4 Oct 2011 18:51:34 +0000 (20:51 +0200)]
http: remove legacy http library

12 years agotest: add TXT DNS record lookup test
Ben Noordhuis [Mon, 3 Oct 2011 14:50:09 +0000 (16:50 +0200)]
test: add TXT DNS record lookup test

12 years agodns: implement resolveTxt()
Christian Tellnes [Mon, 3 Oct 2011 01:57:53 +0000 (03:57 +0200)]
dns: implement resolveTxt()

12 years agozlib: fix assert message
Ben Noordhuis [Mon, 3 Oct 2011 11:40:42 +0000 (13:40 +0200)]
zlib: fix assert message

12 years agotest: Update assert module tests
Maciej Małecki [Sat, 1 Oct 2011 11:52:24 +0000 (13:52 +0200)]
test: Update assert module tests

12 years agodocs: Update `assert` module docs
Maciej Małecki [Sat, 1 Oct 2011 11:46:49 +0000 (13:46 +0200)]
docs: Update `assert` module docs

12 years agoassert: Make `assert` module an `assert.ok` function
Maciej Małecki [Sat, 1 Oct 2011 11:42:42 +0000 (13:42 +0200)]
assert: Make `assert` module an `assert.ok` function

Code can be written:

    var assert = require('assert');
    assert(true);

instead of:

    var assert = require('assert');
    assert.ok(true);

12 years agodocs: document watcher debugger commands
Fedor Indutny [Sat, 1 Oct 2011 07:28:57 +0000 (14:28 +0700)]
docs: document watcher debugger commands

12 years agoadd zlib module to doc index
Ryan Dahl [Sat, 1 Oct 2011 00:01:07 +0000 (17:01 -0700)]
add zlib module to doc index

12 years agoNow working on v0.5.9
Ryan Dahl [Fri, 30 Sep 2011 23:49:30 +0000 (16:49 -0700)]
Now working on v0.5.9

12 years agoBump version to v0.5.8 v0.5.8
Ryan Dahl [Fri, 30 Sep 2011 20:59:44 +0000 (13:59 -0700)]
Bump version to v0.5.8

12 years agodebugger: watch, unwatch, watchers
Fedor Indutny [Thu, 29 Sep 2011 18:18:35 +0000 (01:18 +0700)]
debugger: watch, unwatch, watchers

Fixes #1800.

12 years agoFixes #1805. Reset TTY mode on exit.
Ryan Dahl [Fri, 30 Sep 2011 20:11:47 +0000 (13:11 -0700)]
Fixes #1805. Reset TTY mode on exit.

12 years agoUpgrade libuv to fe18438
Ryan Dahl [Fri, 30 Sep 2011 18:22:38 +0000 (11:22 -0700)]
Upgrade libuv to fe18438

12 years agoAdd test from v0.4 dea49e3
Ryan Dahl [Fri, 30 Sep 2011 16:47:01 +0000 (09:47 -0700)]
Add test from v0.4 dea49e3

Note this test completes in 3 seconds on v0.4 and 7 minutes on master. NOT
GOOD.

12 years agodocs: Added missing parenthesis to buffer.readUInt8 example.
koichik [Fri, 30 Sep 2011 08:05:50 +0000 (17:05 +0900)]
docs: Added missing parenthesis to buffer.readUInt8 example.

Fixes #1790.

12 years agoWAF: Clean out/Release/deps/uv before build
Ryan Dahl [Thu, 29 Sep 2011 18:35:17 +0000 (11:35 -0700)]
WAF: Clean out/Release/deps/uv before build

12 years agoDon't ls node_g after make - it confuses people
Ryan Dahl [Thu, 29 Sep 2011 16:50:50 +0000 (09:50 -0700)]
Don't ls node_g after make - it confuses people

12 years agotest: fix typo in error message
Ben Noordhuis [Wed, 28 Sep 2011 23:11:26 +0000 (01:11 +0200)]
test: fix typo in error message

12 years agodebugger: refactor, no more res.success checks
Fedor Indutny [Tue, 27 Sep 2011 17:16:29 +0000 (00:16 +0700)]
debugger: refactor, no more res.success checks

Fixes #1779.

12 years agodebugger: use regexps in repl test
Fedor Indutny [Wed, 28 Sep 2011 18:17:12 +0000 (01:17 +0700)]
debugger: use regexps in repl test

Fixes #1788

12 years agoRemove a few instances of process.binding('stdio') from src/node.js
Ryan Dahl [Tue, 27 Sep 2011 22:04:01 +0000 (15:04 -0700)]
Remove a few instances of process.binding('stdio') from src/node.js

12 years agoMove process.stdout unref hack to handle_wrap.cc
Ryan Dahl [Tue, 27 Sep 2011 22:01:12 +0000 (15:01 -0700)]
Move process.stdout unref hack to handle_wrap.cc

See #1726

12 years agodebugger: double ctrl+break on win should exit node
Fedor Indutny [Tue, 27 Sep 2011 17:37:37 +0000 (00:37 +0700)]
debugger: double ctrl+break on win should exit node

Fixes #1780.

12 years agoMerge branch 'new-tty-binding'
Ryan Dahl [Tue, 27 Sep 2011 20:13:21 +0000 (13:13 -0700)]
Merge branch 'new-tty-binding'

12 years agoFix test-module-load-list.js
Ryan Dahl [Tue, 27 Sep 2011 20:06:35 +0000 (13:06 -0700)]
Fix test-module-load-list.js

12 years agoUpgrade libuv to 2c0fca9a41
Bert Belder [Tue, 27 Sep 2011 14:16:59 +0000 (16:16 +0200)]
Upgrade libuv to 2c0fca9a41

12 years agoEnable console colors on windows by default
Bert Belder [Tue, 27 Sep 2011 14:13:59 +0000 (16:13 +0200)]
Enable console colors on windows by default

12 years agoAdd new tty js files to node.gyp
Bert Belder [Tue, 27 Sep 2011 14:13:43 +0000 (16:13 +0200)]
Add new tty js files to node.gyp

12 years agoscope.Close in GuessHandleType; don't use uv_is_tty
Ryan Dahl [Fri, 23 Sep 2011 16:57:58 +0000 (09:57 -0700)]
scope.Close in GuessHandleType; don't use uv_is_tty

12 years agoBind uv_tty_get_winsize
Ryan Dahl [Fri, 23 Sep 2011 02:55:15 +0000 (19:55 -0700)]
Bind uv_tty_get_winsize

12 years agoBind/use uv_guess_handle
Ryan Dahl [Fri, 23 Sep 2011 05:00:00 +0000 (22:00 -0700)]
Bind/use uv_guess_handle

12 years agoInitial pass at new TTY js layer
Ryan Dahl [Tue, 20 Sep 2011 22:57:23 +0000 (15:57 -0700)]
Initial pass at new TTY js layer

This breaks Windows.

12 years agoDisable test-dgram-unix.js test-dgram-unix-anon.js test-dgram-multicast.js
Ryan Dahl [Tue, 27 Sep 2011 19:52:48 +0000 (12:52 -0700)]
Disable test-dgram-unix.js test-dgram-unix-anon.js test-dgram-multicast.js

12 years agodebugger: export port
Fedor Indutny [Tue, 27 Sep 2011 19:37:56 +0000 (02:37 +0700)]
debugger: export port

Fixes test-debugger-client.js

Fixes #1782.

12 years agoFixes #1726, hack to unref process.stdout
Ryan Dahl [Tue, 27 Sep 2011 19:38:23 +0000 (12:38 -0700)]
Fixes #1726, hack to unref process.stdout

12 years agodocs: document crypto.randomBytes()
Ben Noordhuis [Thu, 22 Sep 2011 20:12:10 +0000 (22:12 +0200)]
docs: document crypto.randomBytes()

12 years agotest: test crypto (P)RNG functions
Ben Noordhuis [Thu, 22 Sep 2011 19:26:33 +0000 (21:26 +0200)]
test: test crypto (P)RNG functions

12 years agocrypto: implement randomBytes() and pseudoRandomBytes()
Ben Noordhuis [Thu, 22 Sep 2011 18:33:58 +0000 (20:33 +0200)]
crypto: implement randomBytes() and pseudoRandomBytes()

12 years agoExport disableColors from repl, share with debugger
Fedor Indutny [Tue, 27 Sep 2011 09:57:30 +0000 (11:57 +0200)]
Export disableColors from repl, share with debugger

12 years agodebugger: setBreakpoint('fn()')
Fedor Indutny [Tue, 27 Sep 2011 06:25:31 +0000 (13:25 +0700)]
debugger: setBreakpoint('fn()')

Fixes #1777

12 years agowrite-only streams should not shutdown
Ryan Dahl [Tue, 27 Sep 2011 06:25:48 +0000 (23:25 -0700)]
write-only streams should not shutdown

See
https://github.com/joyent/node/issues/1726#issuecomment-2207602

12 years agoRe-land Bert's test for #1697
Ryan Dahl [Mon, 26 Sep 2011 19:47:49 +0000 (12:47 -0700)]
Re-land Bert's test for #1697

Was reverted out in cde81a6675caa5d64d2215b75105cf353ed98dc6

12 years agozlib: Typo. s/opt/opts/
isaacs [Mon, 26 Sep 2011 18:50:20 +0000 (11:50 -0700)]
zlib: Typo. s/opt/opts/

12 years agodebugger: fix backtrace with no frames
Fedor Indutny [Sun, 25 Sep 2011 19:20:47 +0000 (02:20 +0700)]
debugger: fix backtrace with no frames

Fixes #1768

12 years agodebugger docs
Fedor Indutny [Sun, 25 Sep 2011 11:10:21 +0000 (18:10 +0700)]
debugger docs

Fixes #1767

12 years agoCtrl+Break on windows starts debugger server
Fedor Indutny [Sat, 24 Sep 2011 13:51:59 +0000 (20:51 +0700)]
Ctrl+Break on windows starts debugger server

12 years agoEnableDebug immediatly on SIGUSR1
Fedor Indutny [Sat, 24 Sep 2011 07:28:27 +0000 (14:28 +0700)]
EnableDebug immediatly on SIGUSR1

Don't wait for script to break somewhere, because that may not happen if
execution is inside event-loop, not in v8.

Add '\n' to the end of 'debugger listening...' message

12 years agohandle backtrace errors
Fedor Indutny [Sat, 24 Sep 2011 06:17:39 +0000 (13:17 +0700)]
handle backtrace errors

12 years agomove debugger_running to correct place
Fedor Indutny [Sat, 24 Sep 2011 06:04:35 +0000 (13:04 +0700)]
move debugger_running to correct place

12 years agomore cli options
Fedor Indutny [Sat, 24 Sep 2011 05:44:08 +0000 (12:44 +0700)]
more cli options

* node debug localhost:5858 - connects to remote debugger
* node debug -p `pgrep node` - connects to running process
* Fixed double-run of debugger on SIGUSR1

12 years agocygwin: fix new[]/delete mismatch
Ben Noordhuis [Sun, 25 Sep 2011 01:32:45 +0000 (03:32 +0200)]
cygwin: fix new[]/delete mismatch

12 years agocygwin: fix return of uninitialized variable
Ben Noordhuis [Sun, 25 Sep 2011 01:31:39 +0000 (03:31 +0200)]
cygwin: fix return of uninitialized variable

12 years agobuffers: handle bad length argument in constructor
Ben Noordhuis [Sat, 24 Sep 2011 03:07:35 +0000 (05:07 +0200)]
buffers: handle bad length argument in constructor

Coerce fractional, negative and non-numeric length arguments to numbers.
Fractional numbers are rounded up, negative numbers and non-numeric values
are set to zero.