platform/upstream/nodejs.git
13 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.

13 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

13 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

13 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

13 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.

13 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

13 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

13 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

13 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.

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

13 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

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

13 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

13 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

13 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

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

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

13 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.

13 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

13 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.

13 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

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

13 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

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

13 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

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

Fixes #1777

13 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

13 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

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

13 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

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

Fixes #1767

13 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

13 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

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

13 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

13 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

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

13 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

13 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.

13 years agouv: upgrade to 8f617b9
Ben Noordhuis [Sat, 24 Sep 2011 03:23:41 +0000 (05:23 +0200)]
uv: upgrade to 8f617b9

13 years agodebugger fix for #1707
Fedor Indutny [Thu, 15 Sep 2011 17:45:32 +0000 (00:45 +0700)]
debugger fix for #1707

13 years agodebugger: remove useless clearlines, updated test
Fedor Indutny [Fri, 23 Sep 2011 18:48:04 +0000 (01:48 +0700)]
debugger: remove useless clearlines, updated test

* remove useless clearline call at Interface start
* silence after .handleBreak()
* output '\b' if this.stdout is not a tty (debugger)
* add '\b' checks for clearline (test)

13 years agotest-debugger-repl improvements
Fedor Indutny [Fri, 23 Sep 2011 15:28:32 +0000 (22:28 +0700)]
test-debugger-repl improvements

13 years agodon't use global vars
Fedor Indutny [Thu, 22 Sep 2011 09:47:01 +0000 (16:47 +0700)]
don't use global vars

13 years agoreadline: custom streams support
Fedor Indutny [Thu, 22 Sep 2011 16:49:59 +0000 (23:49 +0700)]
readline: custom streams support

13 years agoRaise an error when a malformed package.json file is found.
Ben Leslie [Fri, 23 Sep 2011 13:25:20 +0000 (09:25 -0400)]
Raise an error when a malformed package.json file is found.

The current behaviour will silently ignore any parsing errors
that may occur when loading a package.json file. This makes
debugging errors in the package.json file very difficult.

This changes the behaviour that that errors opening and reading
the file package.json file continue to be ignored, but errors
in parsing will throw an exception.

13 years agoUpgrade libuv to f20297f
Ryan Dahl [Fri, 23 Sep 2011 18:07:57 +0000 (11:07 -0700)]
Upgrade libuv to f20297f

13 years agoinitial tests
Fedor Indutny [Thu, 22 Sep 2011 17:03:46 +0000 (00:03 +0700)]
initial tests

* Don't buffer command, before it's execution (repl)
* `quit` command, custom streams for .start, stubbed out test, disable
  history repeation for non-tty (debugger)

13 years agofix spelling
Igor Zinkovsky [Fri, 23 Sep 2011 07:45:41 +0000 (00:45 -0700)]
fix spelling

13 years agobuild: explicitly link in libz on non-win32 platforms
Ben Noordhuis [Fri, 23 Sep 2011 13:40:35 +0000 (15:40 +0200)]
build: explicitly link in libz on non-win32 platforms

13 years agofs watcher binding
Igor Zinkovsky [Thu, 22 Sep 2011 23:18:08 +0000 (16:18 -0700)]
fs watcher binding

13 years agoupgrade libuv
Ryan Dahl [Fri, 23 Sep 2011 02:41:43 +0000 (19:41 -0700)]
upgrade libuv

13 years agoAdd broken test for #1726.
isaacs [Fri, 23 Sep 2011 02:37:19 +0000 (19:37 -0700)]
Add broken test for #1726.

13 years agoremove node_zlib.h from node.gyp
Igor Zinkovsky [Wed, 21 Sep 2011 23:10:34 +0000 (16:10 -0700)]
remove node_zlib.h from node.gyp

13 years ago[debugger] shorten break message
Fedor Indutny [Wed, 21 Sep 2011 10:59:04 +0000 (17:59 +0700)]
[debugger] shorten break message

13 years ago[debugger] optimize context's properties initialization, make 'list' a function,...
Fedor Indutny [Wed, 21 Sep 2011 10:08:31 +0000 (17:08 +0700)]
[debugger] optimize context's properties initialization, make 'list' a function, not a getter

13 years ago[debugger] fix 'debug> connecting...', fixed autostart (XXX figure out why it wasn...
Fedor Indutny [Wed, 21 Sep 2011 09:59:20 +0000 (16:59 +0700)]
[debugger] fix 'debug> connecting...', fixed autostart (XXX figure out why it wasn't working in some cases), fixed highlighting for first line of module's code

13 years agocrypto: fix delete of potentially uninitialized pointer
Ben Noordhuis [Tue, 20 Sep 2011 23:57:36 +0000 (01:57 +0200)]
crypto: fix delete of potentially uninitialized pointer

13 years agocrypto: fix read of potentially uninitialized variable
Ben Noordhuis [Tue, 20 Sep 2011 23:11:07 +0000 (01:11 +0200)]
crypto: fix read of potentially uninitialized variable

13 years agobuild: fix freebsd gyp build
Ben Noordhuis [Wed, 17 Aug 2011 05:44:53 +0000 (07:44 +0200)]
build: fix freebsd gyp build

13 years agouv: upgrade to 2dae0c9
Ben Noordhuis [Wed, 17 Aug 2011 04:45:21 +0000 (06:45 +0200)]
uv: upgrade to 2dae0c9

13 years agogyp: add freebsd support
Ben Noordhuis [Wed, 17 Aug 2011 04:12:09 +0000 (06:12 +0200)]
gyp: add freebsd support

13 years agogyp: revive sunos support, lost in 6b98a63
Ben Noordhuis [Tue, 20 Sep 2011 21:48:03 +0000 (23:48 +0200)]
gyp: revive sunos support, lost in 6b98a63

13 years agoRemove extra method declaration
Ryan Dahl [Tue, 20 Sep 2011 21:08:53 +0000 (14:08 -0700)]
Remove extra method declaration

13 years agoAdd TTYWrap
Ryan Dahl [Tue, 20 Sep 2011 20:38:07 +0000 (13:38 -0700)]
Add TTYWrap

13 years agoUpgrade libuv to 2ef8f35
Ryan Dahl [Tue, 20 Sep 2011 20:34:52 +0000 (13:34 -0700)]
Upgrade libuv to 2ef8f35

13 years agofix 'null' mirroring
Fedor Indutny [Tue, 20 Sep 2011 10:12:32 +0000 (17:12 +0700)]
fix 'null' mirroring

13 years agorepeat last command if empty line was entered
Fedor Indutny [Tue, 20 Sep 2011 10:05:01 +0000 (17:05 +0700)]
repeat last command if empty line was entered

13 years agomicro-refactor, use rli.output.write instead of rli.write ('line' event was emitted...
Fedor Indutny [Tue, 20 Sep 2011 10:04:35 +0000 (17:04 +0700)]
micro-refactor, use rli.output.write instead of rli.write ('line' event was emitted for those writes)

13 years agofix breakpoint prefixing in list()
Fedor Indutny [Sat, 17 Sep 2011 08:38:06 +0000 (15:38 +0700)]
fix breakpoint prefixing in list()

13 years agoadded comments, spawn child process automatically at debugger's start
Fedor Indutny [Tue, 20 Sep 2011 08:30:39 +0000 (15:30 +0700)]
added comments, spawn child process automatically at debugger's start

13 years agoremove arrow from current source line
Fedor Indutny [Tue, 20 Sep 2011 08:18:05 +0000 (15:18 +0700)]
remove arrow from current source line

13 years agofix inspection of zero
Fedor Indutny [Tue, 20 Sep 2011 08:14:41 +0000 (15:14 +0700)]
fix inspection of zero

13 years agocrypto: look up SSL errors with ERR_print_errors()
Ben Noordhuis [Mon, 19 Sep 2011 20:24:43 +0000 (22:24 +0200)]
crypto: look up SSL errors with ERR_print_errors()

13 years agoFix test-regress-GH-819
Ryan Dahl [Mon, 19 Sep 2011 20:41:42 +0000 (13:41 -0700)]
Fix test-regress-GH-819

Problem was exposed in 12798c6.

13 years agobuild: make wscript work with python 2.4
Ben Noordhuis [Mon, 19 Sep 2011 14:43:53 +0000 (16:43 +0200)]
build: make wscript work with python 2.4

13 years agotls: remove superfluous setOptions() call
Ben Noordhuis [Mon, 19 Sep 2011 14:28:22 +0000 (16:28 +0200)]
tls: remove superfluous setOptions() call

13 years agodns callbacks should go through MakeCallback
Ryan Dahl [Sun, 18 Sep 2011 20:20:16 +0000 (13:20 -0700)]
dns callbacks should go through MakeCallback

13 years agoUpgrade gyp to r1046
Ryan Dahl [Sun, 18 Sep 2011 19:08:43 +0000 (12:08 -0700)]
Upgrade gyp to r1046

13 years agozlib: lint
isaacs [Sun, 18 Sep 2011 06:03:36 +0000 (23:03 -0700)]
zlib: lint

13 years agozlib: Fix test so that it's not trivially passing, then pass it.
isaacs [Sun, 18 Sep 2011 06:03:23 +0000 (23:03 -0700)]
zlib: Fix test so that it's not trivially passing, then pass it.

Regression from the refactor to move more things into JS.

13 years agoInitial pass at zlib bindings
isaacs [Tue, 6 Sep 2011 23:13:05 +0000 (16:13 -0700)]
Initial pass at zlib bindings

13 years agoNow working on v0.5.8
Ryan Dahl [Sat, 17 Sep 2011 01:38:46 +0000 (18:38 -0700)]
Now working on v0.5.8

13 years agoBump version to v0.5.7 v0.5.7
Ryan Dahl [Fri, 16 Sep 2011 22:40:39 +0000 (15:40 -0700)]
Bump version to v0.5.7

13 years agosetBreakpoint w/o arguments should set one on a current line
Fedor Indutny [Thu, 15 Sep 2011 15:21:04 +0000 (22:21 +0700)]
setBreakpoint w/o arguments should set one on a current line

13 years agorestore breakpoints after restart, fix message handling
Fedor Indutny [Thu, 15 Sep 2011 15:17:49 +0000 (22:17 +0700)]
restore breakpoints after restart, fix message handling

13 years agofix spawn call, customFds ain't supported yet
Fedor Indutny [Sat, 17 Sep 2011 00:47:35 +0000 (07:47 +0700)]
fix spawn call, customFds ain't supported yet

13 years agoRevert "Add regression test for issue 1697"
Ryan Dahl [Sat, 17 Sep 2011 00:20:05 +0000 (17:20 -0700)]
Revert "Add regression test for issue 1697"

Causing many test failures due to lingering process

This reverts commit 8b754a9e02cb2404bd780322d440b73aacec7517.

13 years agoUpgrade libuv to 75a088e
Ryan Dahl [Fri, 16 Sep 2011 23:19:18 +0000 (16:19 -0700)]
Upgrade libuv to 75a088e

13 years agoAdd regression test for issue 1697
Bert Belder [Fri, 16 Sep 2011 22:02:30 +0000 (00:02 +0200)]
Add regression test for issue 1697

13 years agocrypto: fix error message buffer overrun
Ben Noordhuis [Fri, 16 Sep 2011 17:16:30 +0000 (19:16 +0200)]
crypto: fix error message buffer overrun

ERR_error_string() expects a buffer of at least 256 bytes, the input buffer
was not even half that size. Use ERR_error_string_n() instead.

13 years agoUpgrade libuv to 2640aae
Ryan Dahl [Thu, 15 Sep 2011 22:29:32 +0000 (15:29 -0700)]
Upgrade libuv to 2640aae

Add test for bug fixed in joyent/libuv@2640aae1

13 years agoMerge remote branch 'origin/v0.4'
Ryan Dahl [Thu, 15 Sep 2011 22:08:38 +0000 (15:08 -0700)]
Merge remote branch 'origin/v0.4'

13 years agoDrain OpenSSL error queue? Addresses #1719
Ryan Dahl [Thu, 15 Sep 2011 21:56:12 +0000 (14:56 -0700)]
Drain OpenSSL error queue? Addresses #1719

13 years agoSupport legacy API: process.stdout.fd
Ryan Dahl [Thu, 15 Sep 2011 20:57:41 +0000 (13:57 -0700)]
Support legacy API: process.stdout.fd

13 years agonet.Socket(fd) should start readable and writable
Ryan Dahl [Thu, 15 Sep 2011 20:35:24 +0000 (13:35 -0700)]
net.Socket(fd) should start readable and writable

13 years agoRemove pthread-win32 from license file (no longer using it)
Ryan Dahl [Thu, 15 Sep 2011 20:05:54 +0000 (13:05 -0700)]
Remove pthread-win32 from license file (no longer using it)

13 years agoFix options_file_memory_leak
Jeroen Janssen [Thu, 15 Sep 2011 18:41:09 +0000 (20:41 +0200)]
Fix options_file_memory_leak

Fixes #1714.
Fixes #1715.

13 years agoMerge remote branch 'origin/v0.4'
Ryan Dahl [Thu, 15 Sep 2011 18:47:33 +0000 (11:47 -0700)]
Merge remote branch 'origin/v0.4'

Conflicts:
deps/http_parser/http_parser.c
deps/http_parser/test.c
lib/repl.js

13 years agoFix #1707 hasOwnProperty usage
isaacs [Thu, 15 Sep 2011 17:38:25 +0000 (10:38 -0700)]
Fix #1707 hasOwnProperty usage

If hasOwnProperty is overridden, then calling `obj.hasOwnProperty(prop)`
can fail.  Any time a dictionary of user-generated items is built, we
cannot rely on hasOwnProperty being safe, so must call it from the
Object.prototype explicitly.