platform/upstream/nodejs.git
13 years agoMerge branch 'V8-3.4'
Ryan Dahl [Fri, 22 Jul 2011 05:20:54 +0000 (22:20 -0700)]
Merge branch 'V8-3.4'

13 years agoUpgrade V8 to 3.4.14
Ryan Dahl [Fri, 22 Jul 2011 05:20:37 +0000 (22:20 -0700)]
Upgrade V8 to 3.4.14

13 years agonet_uv: throw if Server.prototype.close() is called twice
Ben Noordhuis [Thu, 21 Jul 2011 23:23:50 +0000 (01:23 +0200)]
net_uv: throw if Server.prototype.close() is called twice

Follows net_legacy behaviour.

13 years agotest: test pipe API with raw net.Stream() object
Ben Noordhuis [Thu, 21 Jul 2011 22:42:01 +0000 (00:42 +0200)]
test: test pipe API with raw net.Stream() object

Test case for #1379.

13 years agonet_uv: emit 'close' event in Server.prototype.close()
Ben Noordhuis [Thu, 21 Jul 2011 22:48:50 +0000 (00:48 +0200)]
net_uv: emit 'close' event in Server.prototype.close()

13 years agonet_uv: release uv handle in Socket.prototype.destroy()
Ben Noordhuis [Thu, 21 Jul 2011 22:47:28 +0000 (00:47 +0200)]
net_uv: release uv handle in Socket.prototype.destroy()

13 years agonet_uv: defer handle creation to connect() or bind() time
Ben Noordhuis [Thu, 21 Jul 2011 21:00:47 +0000 (23:00 +0200)]
net_uv: defer handle creation to connect() or bind() time

Fixes #1379.

13 years agoAdd tls tests to test-uv
Ryan Dahl [Thu, 21 Jul 2011 22:42:08 +0000 (15:42 -0700)]
Add tls tests to test-uv

13 years agoescape backslashes for windows pipe name
Ryan Dahl [Thu, 21 Jul 2011 21:19:24 +0000 (14:19 -0700)]
escape backslashes for windows pipe name

13 years agoRemove logos from package
Ryan Dahl [Thu, 21 Jul 2011 20:39:53 +0000 (13:39 -0700)]
Remove logos from package

13 years agotest: make test-http-unix-socket use common.PIPE
Ben Noordhuis [Thu, 21 Jul 2011 19:25:46 +0000 (21:25 +0200)]
test: make test-http-unix-socket use common.PIPE

Don't unlink the socket, that's the responsibility of libuv and/or node.

13 years agotest: add test-net-pingpong to `make test-uv` list
Ben Noordhuis [Thu, 21 Jul 2011 19:22:56 +0000 (21:22 +0200)]
test: add test-net-pingpong to `make test-uv` list

13 years agotest: add common.PIPE, pipe name for tests
Ben Noordhuis [Thu, 21 Jul 2011 19:21:06 +0000 (21:21 +0200)]
test: add common.PIPE, pipe name for tests

13 years agoUpgrade libuv to 1028a9c6a75fde47b848c09c450fc066249fac1b
Bert Belder [Thu, 21 Jul 2011 13:41:28 +0000 (15:41 +0200)]
Upgrade libuv to 1028a9c6a75fde47b848c09c450fc066249fac1b

13 years agoAdd tests for process.nextTick bugs on windows
Bert Belder [Thu, 21 Jul 2011 13:26:10 +0000 (15:26 +0200)]
Add tests for process.nextTick bugs on windows

These are supposed to pass w/ libuv, so add them to the test-uv tests.

13 years agohttp: fix setting ServerResponse.statusCode in writeHead
Trent Mick [Thu, 21 Jul 2011 05:42:10 +0000 (22:42 -0700)]
http: fix setting ServerResponse.statusCode in writeHead

Fixes #1374.

13 years agotest: added test/simple/test-fs-watch-file.js
Yoshihiro Kikuchi [Wed, 20 Jul 2011 02:17:58 +0000 (11:17 +0900)]
test: added test/simple/test-fs-watch-file.js

13 years agofs: added an argument check in fs.watchFile
Yoshihiro Kikuchi [Thu, 14 Jul 2011 06:14:44 +0000 (15:14 +0900)]
fs: added an argument check in fs.watchFile

Fixes #1324.

13 years agoupgrade libuv to 6e50576
Ryan Dahl [Thu, 21 Jul 2011 02:55:12 +0000 (19:55 -0700)]
upgrade libuv to 6e50576

13 years agouv: back-port c4611a4 from libuv
Ben Noordhuis [Thu, 21 Jul 2011 01:42:39 +0000 (03:42 +0200)]
uv: back-port c4611a4 from libuv

13 years agouv: upgrade to afc9987
Ben Noordhuis [Wed, 20 Jul 2011 22:19:31 +0000 (00:19 +0200)]
uv: upgrade to afc9987

13 years agotest: beef up checks in test-http-unix-socket.js, add to `make test-uv`
Ben Noordhuis [Wed, 20 Jul 2011 22:36:54 +0000 (00:36 +0200)]
test: beef up checks in test-http-unix-socket.js, add to `make test-uv`

13 years agonet: add bindings to libuv pipe API
Ben Noordhuis [Tue, 19 Jul 2011 20:49:42 +0000 (22:49 +0200)]
net: add bindings to libuv pipe API

13 years agoClose #1357 Load json files with require()
isaacs [Thu, 21 Jul 2011 00:39:23 +0000 (17:39 -0700)]
Close #1357 Load json files with require()

Signed off by everybody.

13 years agourl: throw descriptive error if url argument to parse() is not a string
Ben Noordhuis [Wed, 20 Jul 2011 20:15:41 +0000 (22:15 +0200)]
url: throw descriptive error if url argument to parse() is not a string

Fixes #568.

13 years agocrypto: check for SSL_COMP_get_compression_methods()
Ben Noordhuis [Wed, 20 Jul 2011 19:48:40 +0000 (21:48 +0200)]
crypto: check for SSL_COMP_get_compression_methods()

Function was named SSL_COMP_get_compression_method() (singular)
in OpenSSL 0.9.7 and older.

Fixes #1242.

13 years agoprocess.stdout/process.stderr should use net_legacy for now
Ryan Dahl [Wed, 20 Jul 2011 18:06:45 +0000 (11:06 -0700)]
process.stdout/process.stderr should use net_legacy for now

13 years agoUpgrade libuv to ce5eb6d
Ben Noordhuis [Wed, 20 Jul 2011 16:06:16 +0000 (18:06 +0200)]
Upgrade libuv to ce5eb6d

13 years agoUse ms instead of sec for gc idle times
Ryan Dahl [Tue, 19 Jul 2011 23:17:43 +0000 (16:17 -0700)]
Use ms instead of sec for gc idle times

We were calling V8::IdleNotification too often.

13 years agoRemove toc on logo page
Ryan Dahl [Tue, 19 Jul 2011 17:27:48 +0000 (10:27 -0700)]
Remove toc on logo page

13 years agoClose #1360 url: Allow _ in hostnames.
isaacs [Tue, 19 Jul 2011 16:55:01 +0000 (09:55 -0700)]
Close #1360 url: Allow _ in hostnames.

13 years agocomplete upgrade
Ryan Dahl [Tue, 19 Jul 2011 09:50:33 +0000 (02:50 -0700)]
complete upgrade

13 years agoUpgrade libuv to d4563a1
Ryan Dahl [Tue, 19 Jul 2011 09:47:15 +0000 (02:47 -0700)]
Upgrade libuv to d4563a1

13 years agonet_uv: properly initialize writeQueueSize
Ryan Dahl [Tue, 19 Jul 2011 09:18:10 +0000 (02:18 -0700)]
net_uv: properly initialize writeQueueSize

Fixes simple/test-tcp-wrap-listen.js

13 years agonet_uv: Fix simple/test-http-expect-continue.js
Ryan Dahl [Tue, 19 Jul 2011 09:04:34 +0000 (02:04 -0700)]
net_uv: Fix simple/test-http-expect-continue.js

13 years agoFinally remove node::EventEmitter
Ryan Dahl [Tue, 19 Jul 2011 08:46:38 +0000 (01:46 -0700)]
Finally remove node::EventEmitter

13 years agoRemove StatWatcher's dep on C++ EventEmitter
Ryan Dahl [Tue, 19 Jul 2011 08:23:50 +0000 (01:23 -0700)]
Remove StatWatcher's dep on C++ EventEmitter

13 years agoUpgrade libuv to 4eff34da4
Ryan Dahl [Mon, 18 Jul 2011 23:26:37 +0000 (16:26 -0700)]
Upgrade libuv to 4eff34da4

13 years agoMove HandleWrap rules to one place
Ryan Dahl [Mon, 18 Jul 2011 20:45:11 +0000 (13:45 -0700)]
Move HandleWrap rules to one place

13 years agoReplace reinterpret_cast with BitCast in deoptimizer to please certain compilers.
Ben Noordhuis [Mon, 18 Jul 2011 11:39:22 +0000 (13:39 +0200)]
Replace reinterpret_cast with BitCast in deoptimizer to please certain compilers.

This is a back-port of upstream V8 rev 8672.

Fixes #1354.

13 years agoChange text on homepage about Web Workers
Ryan Dahl [Mon, 18 Jul 2011 11:36:36 +0000 (04:36 -0700)]
Change text on homepage about Web Workers

13 years agoPipeWrap should use HandleWrap::Close
Ryan Dahl [Mon, 18 Jul 2011 11:30:40 +0000 (04:30 -0700)]
PipeWrap should use HandleWrap::Close

13 years agoAbstract out HandleWrap class
Ryan Dahl [Mon, 18 Jul 2011 11:22:16 +0000 (04:22 -0700)]
Abstract out HandleWrap class

13 years agoAdd pipe_wrap
Ryan Dahl [Mon, 18 Jul 2011 10:07:26 +0000 (03:07 -0700)]
Add pipe_wrap

13 years agoAbstract StreamWrap from TCPWrap
Ryan Dahl [Mon, 18 Jul 2011 09:32:32 +0000 (02:32 -0700)]
Abstract StreamWrap from TCPWrap

13 years agoOutput size of binaries on 'make'
Ryan Dahl [Mon, 18 Jul 2011 09:32:45 +0000 (02:32 -0700)]
Output size of binaries on 'make'

13 years agoClose #1349 Delimit NODE_PATH with ; on Windows
isaacs [Fri, 15 Jul 2011 22:26:15 +0000 (15:26 -0700)]
Close #1349 Delimit NODE_PATH with ; on Windows

13 years agonode-amqp is now being maintained by Theo Schlossnagle https://github.com/postwait...
Pierre-Alexandre St-Jean [Fri, 15 Jul 2011 14:15:07 +0000 (07:15 -0700)]
node-amqp is now being maintained by Theo Schlossnagle https://github.com/postwait/node-amqp

13 years agoRevert dcf6955: Fix V8 mingw32 build
Ben Noordhuis [Sat, 16 Jul 2011 12:51:45 +0000 (14:51 +0200)]
Revert dcf6955: Fix V8 mingw32 build

Patch has been merged upstream in V8 3.4.6.

Fixes #1351.

13 years agoImprove --help message and Fix -e/--eval switch
Steve Engledow [Tue, 5 Jul 2011 11:07:08 +0000 (12:07 +0100)]
Improve --help message and Fix -e/--eval switch

--help should at least give some hint that node takes the -e switch

Update help message to include -e and swap eval block with module load block so argv works correctly

[steve@sane node](master)$ ./node -e 'process.argv' foo bar
[ '/home/steve/code/node/node', 'foo', 'bar' ]

:)

Add simple test for -e option.

Fixes #1311.

13 years agoFix message tests
koichik [Sat, 16 Jul 2011 05:12:00 +0000 (14:12 +0900)]
Fix message tests

V8 3.4.12.1 changed exception log format.

3.14.10:
node.js:189
        throw e; // process.nextTick error, or 'error' event on first tick
        ^

3.4.12.1:
node.js:189
        throw e; // process.nextTick error, or 'error' event on first tick
              ^

The caret was moved.

13 years agoMore accurite error messages when writing beyond the length of a Buffer.
Devon Govett [Fri, 15 Jul 2011 02:20:30 +0000 (19:20 -0700)]
More accurite error messages when writing beyond the length of a Buffer.

Fixes #1336.

13 years agoApply PTW32_STATIC_LIB define to debug build of eio
Igor Zinkovsky [Sat, 16 Jul 2011 00:46:56 +0000 (17:46 -0700)]
Apply PTW32_STATIC_LIB define to debug build of eio

13 years agoMerge branch 'V8-3.4'
Ryan Dahl [Sat, 16 Jul 2011 00:47:37 +0000 (17:47 -0700)]
Merge branch 'V8-3.4'

13 years agoUpgrade V8 to 3.4.12.1
Ryan Dahl [Sat, 16 Jul 2011 00:47:20 +0000 (17:47 -0700)]
Upgrade V8 to 3.4.12.1

13 years agonet_uv: getsockname binding
Henry Rawas [Fri, 15 Jul 2011 22:06:10 +0000 (15:06 -0700)]
net_uv: getsockname binding

13 years agoCorrectly propagate toolchain setting in SConstruct.
vegorov@chromium.org [Wed, 6 Jul 2011 12:36:05 +0000 (12:36 +0000)]
Correctly propagate toolchain setting in SConstruct.

Patch by Bert Belder.

Review URL: http://codereview.chromium.org/7309014

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@8555 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

13 years agoMinGW32: define STRUNCATE and change strncpy_s implementation to follow specification.
vegorov@chromium.org [Wed, 6 Jul 2011 12:25:25 +0000 (12:25 +0000)]
MinGW32: define STRUNCATE and change strncpy_s implementation to follow specification.

This fixes the debug build for MinGW32

Patch by Bert Belder.

Review URL: http://codereview.chromium.org/7308007

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@8552 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

13 years agolibuv: stop g++ from complaining about anonymous struct usage
Bert Belder [Fri, 15 Jul 2011 22:31:47 +0000 (00:31 +0200)]
libuv: stop g++ from complaining about anonymous struct usage

13 years agoClose #1348 Remove require.paths
isaacs [Fri, 15 Jul 2011 21:05:01 +0000 (14:05 -0700)]
Close #1348 Remove require.paths

Module.globalPaths is still set to a read-only copy of the global
include paths pulled off of the NODE_PATH environment variable.

It's important to be able to inspect this, but modifying it no longer
has any effect.

13 years agoRemove duplicate docs about main module
isaacs [Fri, 15 Jul 2011 22:10:27 +0000 (15:10 -0700)]
Remove duplicate docs about main module

13 years agoDocument that 'Buffer' is a global variable
AJ ONeal [Fri, 15 Jul 2011 20:11:14 +0000 (13:11 -0700)]
Document that 'Buffer' is a global variable

13 years agoAdd 'make test-uv-debug'
Ryan Dahl [Fri, 15 Jul 2011 20:52:36 +0000 (13:52 -0700)]
Add 'make test-uv-debug'

To run: ./configure --debug && make test-uv-debug

13 years agoconnect-timeout callbacks after close
Henry Rawas [Fri, 15 Jul 2011 20:20:24 +0000 (13:20 -0700)]
connect-timeout callbacks after close

13 years agoUpgrade libuv to 1be48f12a0
Ryan Dahl [Fri, 15 Jul 2011 18:15:02 +0000 (11:15 -0700)]
Upgrade libuv to 1be48f12a0

and bindings for new req interface

13 years agowindows: fix simple/test-executable-path
Ryan Dahl [Fri, 15 Jul 2011 18:05:12 +0000 (11:05 -0700)]
windows: fix simple/test-executable-path

13 years agoUse uv_exepath
Ryan Dahl [Fri, 15 Jul 2011 17:46:11 +0000 (10:46 -0700)]
Use uv_exepath

13 years agoadded information about relative paths in File System module
Wojciech Wnętrzak [Thu, 14 Jul 2011 11:17:40 +0000 (13:17 +0200)]
added information about relative paths in File System module

13 years agoev: define HAVE_SYNC_FILE_RANGE if kernel >= 2.6.17 *and* glibc version >= 2.6
Shigeki Ohtsu [Fri, 15 Jul 2011 03:38:45 +0000 (12:38 +0900)]
ev: define HAVE_SYNC_FILE_RANGE if kernel >= 2.6.17 *and* glibc version >= 2.6

13 years agoconnect-buffer play back queued write and end
Henry Rawas [Wed, 13 Jul 2011 00:00:33 +0000 (17:00 -0700)]
connect-buffer play back queued write and end

13 years agoNow working on v0.5.2
Ryan Dahl [Thu, 14 Jul 2011 23:56:39 +0000 (16:56 -0700)]
Now working on v0.5.2

13 years agoBump to v0.5.1 v0.5.1
Ryan Dahl [Thu, 14 Jul 2011 22:56:15 +0000 (15:56 -0700)]
Bump to v0.5.1

13 years agoMerge branch 'v0.4'
Ryan Dahl [Thu, 14 Jul 2011 22:52:08 +0000 (15:52 -0700)]
Merge branch 'v0.4'

Conflicts:
deps/libev/wscript
doc/api/modules.markdown

13 years agoComment out wsa_get_proto_info(AF_INET6) - not needed - causes warning in Win2k3
Ryan Dahl [Thu, 14 Jul 2011 22:34:08 +0000 (15:34 -0700)]
Comment out wsa_get_proto_info(AF_INET6) - not needed - causes warning in Win2k3

13 years agoRevert "net_uv: fix localhost resolution - was defaulting to ::1 on OSX"
Ryan Dahl [Thu, 14 Jul 2011 22:28:54 +0000 (15:28 -0700)]
Revert "net_uv: fix localhost resolution - was defaulting to ::1 on OSX"

Breaks test/internet/test-dns.js

This reverts commit 6d8b082eedc10a2827091b8b803760ba2fd8d616.

13 years agoAddons should not -DEV_MULTIPLICITY=0
Brian White [Thu, 14 Jul 2011 18:48:19 +0000 (11:48 -0700)]
Addons should not -DEV_MULTIPLICITY=0

Fixes #1229
Fixes #1332

13 years agoadd working http tests
Henry Rawas [Thu, 14 Jul 2011 22:17:35 +0000 (15:17 -0700)]
add working http tests

13 years agonet_uv: fix localhost resolution - was defaulting to ::1 on OSX
Ryan Dahl [Thu, 14 Jul 2011 21:49:50 +0000 (14:49 -0700)]
net_uv: fix localhost resolution - was defaulting to ::1 on OSX

13 years agoUpgrade libuv to f5ff8694
Ryan Dahl [Thu, 14 Jul 2011 21:28:52 +0000 (14:28 -0700)]
Upgrade libuv to f5ff8694

13 years agoClose #1303 Stream.pipe returns the destination
Elijah Insua [Mon, 11 Jul 2011 05:35:25 +0000 (01:35 -0400)]
Close #1303 Stream.pipe returns the destination

Squashed:

* Simple change to make Stream.pipe(destination) return the destination Stream
* Test: ensure Stream.pipe(destination) returns the destination Stream
* updated Stream.pipe() documentation to reflect that it now returns the
  destination stream

13 years agoClose #1281 Make require a public member of module
isaacs [Thu, 14 Jul 2011 20:55:51 +0000 (13:55 -0700)]
Close #1281 Make require a public member of module

Reviewed by @felixge

13 years agotest-tcp-wrap dont assume port 80 priveleged'
Henry Rawas [Thu, 14 Jul 2011 20:59:37 +0000 (13:59 -0700)]
test-tcp-wrap dont assume port 80 priveleged'

13 years agonet_uv: sockets should be writable during connection
Henry Rawas [Thu, 14 Jul 2011 21:18:17 +0000 (14:18 -0700)]
net_uv: sockets should be writable during connection

13 years agonet_uv: Add maxConnections support
Henry Rawas [Thu, 14 Jul 2011 20:18:28 +0000 (13:18 -0700)]
net_uv: Add maxConnections support

13 years agoAdd tests for #1085 and #1304
koichik [Thu, 14 Jul 2011 16:58:43 +0000 (01:58 +0900)]
Add tests for #1085 and #1304

Fixes #1327.

13 years agoFixes #1085. The agent end event may call detachSocket() after the socket is detached...
Stefan Rusu [Thu, 14 Jul 2011 12:33:04 +0000 (15:33 +0300)]
Fixes #1085. The agent end event may call detachSocket() after the socket is detached and destroyed by abort(). This patch avoids that behavior.

13 years agoFixes #1304. The Connection instance may be destroyed by abort() when process.nextTic...
Stefan Rusu [Thu, 14 Jul 2011 09:52:43 +0000 (12:52 +0300)]
Fixes #1304. The Connection instance may be destroyed by abort() when process.nextTick is executed.

13 years agoAdding documentation for 'agent' option in http.request().
Kip Gebhardt [Tue, 28 Jun 2011 19:50:42 +0000 (12:50 -0700)]
Adding documentation for 'agent' option in http.request().

Fixes #1243.

13 years agoFix fs can't handle large file on 64bit platform
koichik [Fri, 8 Jul 2011 15:57:57 +0000 (00:57 +0900)]
Fix fs can't handle large file on 64bit platform

fs.read() and fs.write() can't handle more than 2GB files on 64bit platform.
Also fs.truncate() can't handle more than 4GB files.

Fixes #1199.
Fixes #1094.

13 years agoFix Buffer drops last null character in UTF-8
koichik [Tue, 21 Jun 2011 15:53:31 +0000 (00:53 +0900)]
Fix Buffer drops last null character in UTF-8

Reproduce:

    $ node
    > buf = new Buffer('\0')
    <Buffer >
    > buf.length
    0
    > buf = new Buffer(1)
    <Buffer 28>
    > buf.write('\0')
    0

Fixes #394.
Fixes #1210.

13 years agoImprovements AssertionError message
koichik [Sun, 10 Jul 2011 09:47:41 +0000 (18:47 +0900)]
Improvements AssertionError message

Fixes #217.

13 years agoThe Node.JS website should link to whichever ChangeLog will be updated soonest.
koichik [Wed, 13 Jul 2011 15:31:56 +0000 (00:31 +0900)]
The Node.JS website should link to whichever ChangeLog will be updated soonest.

Fixes #1316.

13 years agoDocument error in console.timeEnd
koichik [Wed, 13 Jul 2011 15:10:17 +0000 (00:10 +0900)]
Document error in console.timeEnd

Fixes #1109.

13 years agoadded explanation of `exports`
AJ ONeal [Thu, 19 May 2011 19:49:29 +0000 (12:49 -0700)]
added explanation of `exports`

Fixes #1075.

13 years agoDoc improvements
koichik [Sat, 9 Jul 2011 17:04:56 +0000 (02:04 +0900)]
Doc improvements

Fixes #297.

13 years agofix socket-timeout. Also fix makefile test list name net-stream
Henry Rawas [Tue, 12 Jul 2011 22:26:45 +0000 (15:26 -0700)]
fix socket-timeout. Also fix makefile test list name net-stream

13 years agofix isip test
Henry Rawas [Tue, 12 Jul 2011 20:33:02 +0000 (13:33 -0700)]
fix isip test

13 years agotest-net-reconnect needs socket connect event
Henry Rawas [Fri, 8 Jul 2011 22:03:48 +0000 (15:03 -0700)]
test-net-reconnect needs socket connect event

13 years agoUpdate favicon
Ryan Dahl [Mon, 11 Jul 2011 19:24:49 +0000 (12:24 -0700)]
Update favicon

13 years agoFix wallpaper links
Ryan Dahl [Mon, 11 Jul 2011 15:48:02 +0000 (08:48 -0700)]
Fix wallpaper links