platform/upstream/nodejs.git
12 years agoAdd broken test for #1726.
isaacs [Fri, 23 Sep 2011 02:37:19 +0000 (19:37 -0700)]
Add broken test for #1726.

12 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

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

12 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

12 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

12 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

12 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

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

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

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

12 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

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

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

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

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

12 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

12 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)

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

12 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

12 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

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

12 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()

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

12 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

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

12 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

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

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

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

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

12 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

12 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

12 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

12 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

12 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

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

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

12 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

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

12 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

12 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'

12 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

12 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

12 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

12 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)

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

12 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

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

12 years agoAdd querystring test for hasOwnProperty usage
isaacs [Thu, 15 Sep 2011 16:52:49 +0000 (09:52 -0700)]
Add querystring test for hasOwnProperty usage

12 years agoFix #1707 hasOwnProperty usage
isaacs [Thu, 15 Sep 2011 16:46:30 +0000 (09:46 -0700)]
Fix #1707 hasOwnProperty usage

12 years agoUpgrade V8 to 3.6.4
Ryan Dahl [Thu, 15 Sep 2011 16:41:08 +0000 (09:41 -0700)]
Upgrade V8 to 3.6.4

12 years agonode: disable uv backend if NODE_USE_UV=0
Ben Noordhuis [Wed, 14 Sep 2011 22:28:45 +0000 (00:28 +0200)]
node: disable uv backend if NODE_USE_UV=0

12 years agoremove SetCloseOnExec
Igor Zinkovsky [Wed, 14 Sep 2011 20:27:44 +0000 (13:27 -0700)]
remove SetCloseOnExec

12 years agoUpgrade libuv to 4197fc7
Ryan Dahl [Wed, 14 Sep 2011 20:46:07 +0000 (13:46 -0700)]
Upgrade libuv to 4197fc7

and use return value from sync uv_fs functions

12 years agoForward customFds to ChildProcess.spawn
Ryan Dahl [Wed, 14 Sep 2011 19:33:38 +0000 (12:33 -0700)]
Forward customFds to ChildProcess.spawn

Fixes #1695

12 years ago[debugger] added setBreakpoint and clearBreakpoint to help message
Fedor Indutny [Wed, 14 Sep 2011 09:36:26 +0000 (16:36 +0700)]
[debugger] added setBreakpoint and clearBreakpoint to help message

group commands in help message, added shortcuts info

12 years ago[debugger] separate history of control and debug, make scripts command getter
Fedor Indutny [Wed, 14 Sep 2011 09:35:51 +0000 (16:35 +0700)]
[debugger] separate history of control and debug, make scripts command getter

12 years ago[debugger] setBreakpoint, clearBreakpoint, fix reqSource error handling, show breakpo...
Fedor Indutny [Wed, 14 Sep 2011 09:24:46 +0000 (16:24 +0700)]
[debugger] setBreakpoint, clearBreakpoint, fix reqSource error handling, show breakpoints in list()

12 years ago[debugger] synonym=>shortcut, added shortcut for backtrace (as in gdb), simplify...
Fedor Indutny [Wed, 14 Sep 2011 08:08:46 +0000 (15:08 +0700)]
[debugger] synonym=>shortcut, added shortcut for backtrace (as in gdb), simplify regexp

12 years ago[debugger] color mark in _debugger, kill child on Ctrl+D
Fedor Indutny [Wed, 14 Sep 2011 06:59:56 +0000 (13:59 +0700)]
[debugger] color mark in _debugger, kill child on Ctrl+D

12 years agoUpgrade libuv to 4b9b692
Ryan Dahl [Wed, 14 Sep 2011 15:43:27 +0000 (08:43 -0700)]
Upgrade libuv to 4b9b692

12 years agoreadline: handle null completer graciously
Ben Noordhuis [Wed, 14 Sep 2011 15:07:58 +0000 (17:07 +0200)]
readline: handle null completer graciously

Fixes #1698.

12 years agodoc: HTTPS client's options
koichik [Wed, 14 Sep 2011 14:48:42 +0000 (23:48 +0900)]
doc: HTTPS client's options

12 years agotest: add http multi-line header test
Ben Noordhuis [Wed, 14 Sep 2011 14:29:32 +0000 (16:29 +0200)]
test: add http multi-line header test

Test case for #1569. Verify that http_parser parses multi-line headers.

12 years agohttp_parser: cherry-pick 3258e4a and b89f944 from upstream
Ben Noordhuis [Wed, 14 Sep 2011 14:07:33 +0000 (16:07 +0200)]
http_parser: cherry-pick 3258e4a and b89f944 from upstream

Fixes #1569, parse error on multi-line HTTP headers.

12 years agodoc: HTTPS client's options
koichik [Wed, 14 Sep 2011 11:17:30 +0000 (20:17 +0900)]
doc: HTTPS client's options

Fixes #1494.

12 years agoDocument child_process.execFile
Ryan Dahl [Wed, 14 Sep 2011 03:50:47 +0000 (20:50 -0700)]
Document child_process.execFile

Fixes #1700

12 years ago[debugger] requireConnection() returns bool, break UI
Fedor Indutny [Tue, 13 Sep 2011 14:09:18 +0000 (21:09 +0700)]
[debugger] requireConnection() returns bool, break UI

Stepping commands will overwrite output of previous step command

12 years ago[repl] add error handling for async scope fetching
Fedor Indutny [Sun, 11 Sep 2011 14:52:24 +0000 (21:52 +0700)]
[repl] add error handling for async scope fetching

12 years agoDoc fixes
Ryan Dahl [Wed, 14 Sep 2011 03:02:54 +0000 (20:02 -0700)]
Doc fixes

Fixes #1701. Thanks baudehlo.

12 years agoFix #1694 Document require() cycles
isaacs [Tue, 13 Sep 2011 17:59:42 +0000 (10:59 -0700)]
Fix #1694 Document require() cycles

12 years agoFix windows build
Ryan Dahl [Tue, 13 Sep 2011 02:42:12 +0000 (19:42 -0700)]
Fix windows build

12 years agoDo not load readline from util.inspect
Ryan Dahl [Tue, 13 Sep 2011 01:25:00 +0000 (18:25 -0700)]
Do not load readline from util.inspect

This causes all modules using console.log() to load readline which seems
unnecessary.

12 years agoFix test-module-load-list
Ryan Dahl [Tue, 13 Sep 2011 01:10:42 +0000 (18:10 -0700)]
Fix test-module-load-list

and lazy load modules for process.stdout

This probably breaks test-module-load-list on windows, but it hopefully is
an easy fix to replace "_posix" bindings with "_win32".

12 years agoUse net_uv instead of net_legacy for stdio
Ryan Dahl [Tue, 13 Sep 2011 00:19:09 +0000 (17:19 -0700)]
Use net_uv instead of net_legacy for stdio

Also temporary hack to prevent process.stdout from keeping event loop alive
by calling uv_unref on process.stdout initialization.

12 years agomkdir EEXIST test
isaacs [Tue, 13 Sep 2011 00:10:24 +0000 (17:10 -0700)]
mkdir EEXIST test

Fixed on uv 3c00d87b4239a6b8358e2085f806170c3eca10cf

12 years agoUpdate uv to 3c00d87b4239a6b8358e2085f806170c3eca10cf
isaacs [Tue, 13 Sep 2011 00:10:51 +0000 (17:10 -0700)]
Update uv to 3c00d87b4239a6b8358e2085f806170c3eca10cf

12 years agov8: move __C99FEATURES__=1 into common.gypi
Ben Noordhuis [Mon, 12 Sep 2011 22:52:56 +0000 (22:52 +0000)]
v8: move __C99FEATURES__=1 into common.gypi

12 years agoWrap uv_pipe_open, implement net.Stream(fd);
Ryan Dahl [Mon, 12 Sep 2011 21:59:51 +0000 (14:59 -0700)]
Wrap uv_pipe_open, implement net.Stream(fd);

Fixes simple/test-child-process-ipc on unix.

12 years agoUpgrade libuv to e7eeacb
Ryan Dahl [Mon, 12 Sep 2011 21:53:27 +0000 (14:53 -0700)]
Upgrade libuv to e7eeacb

12 years agov8: add platform-solaris.cc to gyp build
Ben Noordhuis [Fri, 2 Sep 2011 14:39:44 +0000 (14:39 +0000)]
v8: add platform-solaris.cc to gyp build

12 years agov8: compile with __C99FEATURES__=1 on sunos
Ben Noordhuis [Fri, 2 Sep 2011 14:39:04 +0000 (14:39 +0000)]
v8: compile with __C99FEATURES__=1 on sunos

Exposes INFINITY, isinf(), isfinite(), etc.

12 years agoopenssl: fixups for sunos
Ben Noordhuis [Wed, 31 Aug 2011 19:11:10 +0000 (19:11 +0000)]
openssl: fixups for sunos

12 years agobuild: fixups for sunos
Ben Noordhuis [Wed, 31 Aug 2011 19:10:38 +0000 (19:10 +0000)]
build: fixups for sunos

12 years agobuild: disable -fvisibility=hidden
Ben Noordhuis [Tue, 30 Aug 2011 23:57:03 +0000 (23:57 +0000)]
build: disable -fvisibility=hidden

Not recognized by older versions of gcc.

12 years agobuild: fix breakage when resuming make
Ben Noordhuis [Tue, 30 Aug 2011 22:54:59 +0000 (00:54 +0200)]
build: fix breakage when resuming make

12 years agobuild: configure node, v8, cares and openssl
Ben Noordhuis [Mon, 29 Aug 2011 22:01:43 +0000 (00:01 +0200)]
build: configure node, v8, cares and openssl

12 years agogyp: add sunos support
Ben Noordhuis [Thu, 1 Sep 2011 01:13:49 +0000 (01:13 +0000)]
gyp: add sunos support

12 years agouv: upgrade to 9bd8bd7
Ben Noordhuis [Mon, 12 Sep 2011 21:45:00 +0000 (23:45 +0200)]
uv: upgrade to 9bd8bd7

12 years agouv: upgrade to b450d87
Ben Noordhuis [Mon, 12 Sep 2011 16:41:48 +0000 (18:41 +0200)]
uv: upgrade to b450d87

12 years agofs: unguarded fs.watchFile cache statWatchers checking fixed
Thomas Shinnick [Fri, 9 Sep 2011 04:16:10 +0000 (23:16 -0500)]
fs: unguarded fs.watchFile cache statWatchers checking fixed

Use hasOwnProperty to check filepath cache; previous code could fail if
a filepath duplicated a chained property name.

Fixes #1637.

12 years agofs: add positioned file writing feature to fs.WriteStream
Thomas Shinnick [Sun, 11 Sep 2011 20:30:01 +0000 (15:30 -0500)]
fs: add positioned file writing feature to fs.WriteStream

Patterned on same feature in ReadStream; a small bit of new code added
plus two refactorings of previous code; added two test files.

Fixes #1645.

12 years agofs: minor corrections from examining stream read positioning
Thomas Shinnick [Thu, 8 Sep 2011 23:19:28 +0000 (18:19 -0500)]
fs: minor corrections from examining stream read positioning

Fix minor typos, one small refactor, and change emit() in a constructor
to a throw

12 years agoutil: Fix inspection for Error
koichik [Thu, 8 Sep 2011 16:16:48 +0000 (01:16 +0900)]
util: Fix inspection for Error

Fixes #1634.

12 years agofix syntax error handling for 'throw ...', fix return value assertion
Fedor Indutny [Sun, 11 Sep 2011 07:05:00 +0000 (14:05 +0700)]
fix syntax error handling for 'throw ...', fix return value assertion

12 years agoUn-break the windows build
Bert Belder [Sun, 11 Sep 2011 01:54:08 +0000 (03:54 +0200)]
Un-break the windows build

12 years agowin: make test-cli-eval.js pass
Bert Belder [Sun, 11 Sep 2011 01:52:44 +0000 (03:52 +0200)]
win: make test-cli-eval.js pass

12 years agoUpgrade libuv to efa1b54
Ryan Dahl [Sun, 11 Sep 2011 01:40:40 +0000 (18:40 -0700)]
Upgrade libuv to efa1b54

12 years agoMerge remote branch 'indutny/feature-debugger'
Ryan Dahl [Sun, 11 Sep 2011 00:45:42 +0000 (17:45 -0700)]
Merge remote branch 'indutny/feature-debugger'

Fixes #1667

12 years agoRemove obsolete 'using v8::Null'
Fedor Indutny [Sat, 10 Sep 2011 19:18:45 +0000 (02:18 +0700)]
Remove obsolete 'using v8::Null'

Fixes #1680.