platform/upstream/nodejs.git
13 years agonet_uv: fix 'set is undefined' error
Bert Belder [Fri, 9 Sep 2011 12:59:54 +0000 (14:59 +0200)]
net_uv: fix 'set is undefined' error

13 years agonet_uv: use sufficient buffer to read sock/peername
Bert Belder [Fri, 9 Sep 2011 12:59:27 +0000 (14:59 +0200)]
net_uv: use sufficient buffer to read sock/peername

13 years agofix test-fs-chmod test
Igor Zinkovsky [Fri, 9 Sep 2011 06:24:45 +0000 (23:24 -0700)]
fix test-fs-chmod test

13 years agoUpgrade V8 to 3.6.2
Ryan Dahl [Thu, 8 Sep 2011 23:03:35 +0000 (16:03 -0700)]
Upgrade V8 to 3.6.2

13 years agoUpgrade libuv to 2d1c672e
Bert Belder [Thu, 8 Sep 2011 21:53:24 +0000 (23:53 +0200)]
Upgrade libuv to 2d1c672e

13 years agoUpgrade libuv to 5b567b2
Ryan Dahl [Thu, 8 Sep 2011 21:29:12 +0000 (14:29 -0700)]
Upgrade libuv to 5b567b2

13 years agoRevert "vm context with accessors"
Ryan Dahl [Thu, 8 Sep 2011 20:30:19 +0000 (13:30 -0700)]
Revert "vm context with accessors"

This reverts commit 4527de8cba3bf5f107fcefcf43dbdaa308881ba4.

Causes segfault in test/message/undefined_reference_in_new_context.js

13 years agoEnable link, symlink, and readlink on windows
Igor Zinkovsky [Thu, 8 Sep 2011 19:40:56 +0000 (12:40 -0700)]
Enable link, symlink, and readlink on windows

13 years agovm context with accessors
Fedor Indutny [Thu, 8 Sep 2011 11:42:44 +0000 (18:42 +0700)]
vm context with accessors

true copy of sandbox properties

catch sealed errors, pass global's prototype to CloneObject

Fixes #1673

13 years agohttp: set .code='ECONNRESET' on socket hang up errors
Ben Noordhuis [Thu, 8 Sep 2011 11:46:57 +0000 (13:46 +0200)]
http: set .code='ECONNRESET' on socket hang up errors

Fixes #1672.

13 years agoutil: Fix inspection for sparse array
koichik [Thu, 8 Sep 2011 15:20:01 +0000 (00:20 +0900)]
util: Fix inspection for sparse array

Fixes #1651.

13 years agoutil: Divide inspect() into some subroutines
koichik [Thu, 8 Sep 2011 12:00:02 +0000 (21:00 +0900)]
util: Divide inspect() into some subroutines

13 years agoUpgrade GYP to r1034
Ryan Dahl [Thu, 8 Sep 2011 08:11:08 +0000 (01:11 -0700)]
Upgrade GYP to r1034

13 years agoUpgrade V8 to 3.6.1
Ryan Dahl [Thu, 8 Sep 2011 02:22:41 +0000 (19:22 -0700)]
Upgrade V8 to 3.6.1

13 years agobuffer: write() should always set _charsWritten.
koichik [Thu, 8 Sep 2011 02:47:32 +0000 (11:47 +0900)]
buffer: write() should always set _charsWritten.

Fixes #1633.

13 years agoMerge remote branch 'origin/v0.4'
Ryan Dahl [Thu, 8 Sep 2011 00:51:33 +0000 (17:51 -0700)]
Merge remote branch 'origin/v0.4'

Conflicts:
lib/net.js
test/simple/test-buffer.js

13 years agotls: new[] instead of malloc() in Connection::GetSession()
Ben Noordhuis [Wed, 7 Sep 2011 15:29:34 +0000 (17:29 +0200)]
tls: new[] instead of malloc() in Connection::GetSession()

13 years agotls: add client-side session resumption support
Sean Cunningham [Mon, 29 Aug 2011 18:09:01 +0000 (14:09 -0400)]
tls: add client-side session resumption support

13 years agodocs: document that the build system depends on python >= 2.5.2
Ben Noordhuis [Tue, 6 Sep 2011 21:11:14 +0000 (23:11 +0200)]
docs: document that the build system depends on python >= 2.5.2

Fixes #354.

13 years agodocs: typos and minor edits in several modules
Thomas Shinnick [Wed, 31 Aug 2011 13:12:34 +0000 (08:12 -0500)]
docs: typos and minor edits in several modules

Mostly quite minor edits.  Those possibly of more interest are:

  emitter.setMaxListeners(n)

    That the limit is per event name for an emitter.

  fs.readlink()

    Not a path, but rather the symbolic link's string value, which
      would be at best a partial path, certainly not a 'resolvedPath'

  global.__filename

    This may be "well-known" but this is a full path to the module
    that referencing code is running in.  It is not the main program's
    path, unless you are in the main program.  Each module knows only
    its own path.

  server.listen(port,...)

    I actually needed this functionality... "gimme just _any_ next port"

  stream.end()
  stream.destroy()

    Yeah, everybody knows what happens to the queued data, but let's
    make it *really* explicit for the first readers.

13 years agotest: test for correct parsing of URLs with plus character in protocol
Maciej Małecki [Mon, 5 Sep 2011 19:16:00 +0000 (21:16 +0200)]
test: test for correct parsing of URLs with plus character in protocol

13 years agourl: add plus sign to protocol pattern
Maciej Małecki [Mon, 5 Sep 2011 19:15:18 +0000 (21:15 +0200)]
url: add plus sign to protocol pattern

13 years agofile: translate libuv error codes to errno names
Ben Noordhuis [Tue, 6 Sep 2011 14:30:48 +0000 (16:30 +0200)]
file: translate libuv error codes to errno names

Fixes incorrect error names (ex. ENOEXEC instead of EBADF,
EMLINK instead of ENOENT).

Fixes #1656.

13 years agouv: upgrade to cc91989
Ben Noordhuis [Tue, 6 Sep 2011 14:14:14 +0000 (16:14 +0200)]
uv: upgrade to cc91989

13 years agoImprove path parsing on windows
Bert Belder [Tue, 6 Sep 2011 02:46:44 +0000 (04:46 +0200)]
Improve path parsing on windows

Closes #650

13 years agofile: fix errno propagation in sync fs calls
Ben Noordhuis [Tue, 6 Sep 2011 00:03:43 +0000 (02:03 +0200)]
file: fix errno propagation in sync fs calls

Include libuv fs error code in the JS exception.

Fixes #1657.

13 years agouv: upgrade to 58ef43e
Ben Noordhuis [Mon, 5 Sep 2011 22:24:39 +0000 (00:24 +0200)]
uv: upgrade to 58ef43e

13 years agowindows: it's rude to clobber quick edit mode
Peter Bright [Sun, 31 Jul 2011 20:19:36 +0000 (21:19 +0100)]
windows: it's rude to clobber quick edit mode

Closes #1429

13 years agoObjectWraps should be MarkIndependent
Ryan Dahl [Mon, 5 Sep 2011 21:40:30 +0000 (14:40 -0700)]
ObjectWraps should be MarkIndependent

13 years agoUpgrade libuv to a8017fd
Ryan Dahl [Mon, 5 Sep 2011 07:32:15 +0000 (00:32 -0700)]
Upgrade libuv to a8017fd

13 years agofix test-fs-realpath
isaacs [Mon, 5 Sep 2011 05:13:01 +0000 (22:13 -0700)]
fix test-fs-realpath

13 years agointernal fs functions called with this == ReqWrap
Ryan Dahl [Mon, 5 Sep 2011 02:48:55 +0000 (19:48 -0700)]
internal fs functions called with this == ReqWrap

13 years agoReturn ReqWrap from internal fs functions
Ryan Dahl [Mon, 5 Sep 2011 02:44:01 +0000 (19:44 -0700)]
Return ReqWrap from internal fs functions

13 years agoFix test-fs-error-messages.js
Ryan Dahl [Mon, 5 Sep 2011 01:46:37 +0000 (18:46 -0700)]
Fix test-fs-error-messages.js

13 years agoUpgrade libuv to 991f6ee
Ryan Dahl [Mon, 5 Sep 2011 01:16:33 +0000 (18:16 -0700)]
Upgrade libuv to 991f6ee

13 years agodgram-uv: black hole incoming messages after closing
Bert Belder [Mon, 5 Sep 2011 01:30:12 +0000 (03:30 +0200)]
dgram-uv: black hole incoming messages after closing

Fixes test/simple/test-dgram-pingpong.js on windows

13 years agoUpgrade libuv to b6ede6c
Ryan Dahl [Mon, 5 Sep 2011 00:16:07 +0000 (17:16 -0700)]
Upgrade libuv to b6ede6c

Fixes require('fs').readdirSync on unix.

13 years agonet-uv: correctly set socket.remoteAddress and -port
Bert Belder [Mon, 5 Sep 2011 00:09:24 +0000 (02:09 +0200)]
net-uv: correctly set socket.remoteAddress and -port

closes #1345

13 years agogyp: add js files to node project
Bert Belder [Sun, 4 Sep 2011 23:01:53 +0000 (01:01 +0200)]
gyp: add js files to node project

13 years agowin: vcbuild.bat should attempt to run vcvarsall.bat
Bert Belder [Sun, 4 Sep 2011 22:35:42 +0000 (00:35 +0200)]
win: vcbuild.bat should attempt to run vcvarsall.bat

13 years agoUpgrade libuv to 142a702
Ryan Dahl [Sun, 4 Sep 2011 23:13:03 +0000 (16:13 -0700)]
Upgrade libuv to 142a702

13 years agoresolve mingw32 build problem
Bert Belder [Sun, 4 Sep 2011 20:54:24 +0000 (22:54 +0200)]
resolve mingw32 build problem

13 years agouv_getsockname got renamed
Bert Belder [Sun, 4 Sep 2011 20:53:01 +0000 (22:53 +0200)]
uv_getsockname got renamed

13 years agoUpgrade libuv to 7b87ff7c9b
Bert Belder [Sun, 4 Sep 2011 20:25:40 +0000 (22:25 +0200)]
Upgrade libuv to 7b87ff7c9b

13 years agoWindows: set executables to be console programs
Peter Bright [Tue, 30 Aug 2011 02:39:51 +0000 (03:39 +0100)]
Windows: set executables to be console programs

closes #1644

13 years agodocs: Fix merge error in tls docs
Logan Smyth [Sun, 4 Sep 2011 15:38:34 +0000 (11:38 -0400)]
docs: Fix merge error in tls docs

Fixes #1648.

13 years agobuild: add RPATH environment variable
Ashok Mudukutore [Thu, 25 Aug 2011 17:03:07 +0000 (11:03 -0600)]
build: add RPATH environment variable

Overrides default run-time library paths

13 years agonet: Socket write encoding case sensitivity
koichik [Sat, 3 Sep 2011 06:28:36 +0000 (15:28 +0900)]
net: Socket write encoding case sensitivity

Fixes #1586.

13 years agofix windows build break
Igor Zinkovsky [Sun, 4 Sep 2011 01:41:12 +0000 (18:41 -0700)]
fix windows build break

13 years agoenable missing fs functions on windows
Igor Zinkovsky [Sat, 3 Sep 2011 18:24:32 +0000 (11:24 -0700)]
enable missing fs functions on windows

13 years agofix async readdir
Igor Zinkovsky [Sat, 3 Sep 2011 06:54:13 +0000 (23:54 -0700)]
fix async readdir

13 years agouv: upgrade to 6422a14
Ben Noordhuis [Sun, 4 Sep 2011 00:31:12 +0000 (02:31 +0200)]
uv: upgrade to 6422a14

13 years agobuffer: write() should always set _charsWritten.
koichik [Fri, 2 Sep 2011 09:37:15 +0000 (18:37 +0900)]
buffer: write() should always set _charsWritten.

Refs #1633.

13 years agodocs: explain how url.format works (`search` trumps `query`, etc)
AJ ONeal [Thu, 1 Sep 2011 18:23:17 +0000 (12:23 -0600)]
docs: explain how url.format works (`search` trumps `query`, etc)

13 years agoFixes #1635. Fixed typo
Michael Jackson [Fri, 2 Sep 2011 19:53:49 +0000 (12:53 -0700)]
Fixes #1635. Fixed typo

13 years agowin: link to psapi.lib
Ryan Dahl [Fri, 2 Sep 2011 19:53:16 +0000 (12:53 -0700)]
win: link to psapi.lib

broke in 65c2763

13 years agodocs: console.log() refer to util.format().
koichik [Fri, 2 Sep 2011 16:36:56 +0000 (01:36 +0900)]
docs: console.log() refer to util.format().

13 years agocrypto: Fix BIO's usage.
koichik [Wed, 31 Aug 2011 16:57:11 +0000 (01:57 +0900)]
crypto: Fix BIO's usage.

Fixes #1612.
Fixes #1296.

13 years agocrypto: use X509_get_ext_by_NID(NID_subject_alt_name)
Ben Noordhuis [Tue, 30 Aug 2011 21:47:21 +0000 (23:47 +0200)]
crypto: use X509_get_ext_by_NID(NID_subject_alt_name)

13 years agoadded test case for foaf+ssl client certificate
Niclas Hoyer [Tue, 30 Aug 2011 20:46:48 +0000 (22:46 +0200)]
added test case for foaf+ssl client certificate

13 years agoAdded additional properties to getPeerCertificate, now includes subjectAltName, Expon...
Niclas Hoyer [Tue, 30 Aug 2011 20:46:07 +0000 (22:46 +0200)]
Added additional properties to getPeerCertificate, now includes subjectAltName, Exponent and Modulus (FOAF+SSL friendly).

Patch written by Nathan,
http://groups.google.com/group/nodejs/browse_thread/thread/1d42da4cb2e51536

13 years agotest: add test case for util.isDate() behavior
Nathan Rajlich [Thu, 1 Sep 2011 20:12:37 +0000 (13:12 -0700)]
test: add test case for util.isDate() behavior

13 years agoutil: improve util.isDate() function
Nathan Rajlich [Wed, 31 Aug 2011 06:13:45 +0000 (23:13 -0700)]
util: improve util.isDate() function

The old implementation was fragile. i.e. node-time is an example of a user-land
module that exports an extended Date object (with a few added functions on it's
own Date object's prototype). In that case, the old check fails.

13 years agobuffer: Avoid overrun with 'binary' encoding.
koichik [Thu, 1 Sep 2011 07:48:35 +0000 (16:48 +0900)]
buffer: Avoid overrun with 'binary' encoding.

Fixes #1624.

13 years agoUpgrade libuv to b89f4f3
Ryan Dahl [Fri, 2 Sep 2011 00:44:06 +0000 (17:44 -0700)]
Upgrade libuv to b89f4f3

13 years agoAdded some win32 platform functions
Karl Skomski [Wed, 31 Aug 2011 12:33:40 +0000 (14:33 +0200)]
Added some win32 platform functions

Fixes #1617

13 years agoUpgrade libuv to 2e60358
Ryan Dahl [Thu, 1 Sep 2011 21:16:00 +0000 (14:16 -0700)]
Upgrade libuv to 2e60358

Fixes #1621.

13 years agorepl: don't eval twice when an Error is thrown
Nathan Rajlich [Thu, 1 Sep 2011 00:58:00 +0000 (17:58 -0700)]
repl: don't eval twice when an Error is thrown

13 years agocrypto: set data before sending to thread pool
Ryan Dahl [Wed, 31 Aug 2011 23:11:00 +0000 (16:11 -0700)]
crypto: set data before sending to thread pool

fixes test-crypto

13 years agoUpgrade libuv to 836cc20
Ryan Dahl [Wed, 31 Aug 2011 22:38:02 +0000 (15:38 -0700)]
Upgrade libuv to 836cc20

13 years agoShow warning when using lib/sys.js
Maciej Małecki [Wed, 31 Aug 2011 13:29:37 +0000 (15:29 +0200)]
Show warning when using lib/sys.js

13 years agofix win32 uv loop breakage
Jeroen Janssen [Wed, 31 Aug 2011 11:03:47 +0000 (13:03 +0200)]
fix win32 uv loop breakage

13 years agoUpgrade libuv to ea4271f
Ryan Dahl [Wed, 31 Aug 2011 08:53:01 +0000 (01:53 -0700)]
Upgrade libuv to ea4271f

Required adding uv_default_loop() in many places.

13 years agotls: x509 certificate subject parsing fail
koichik [Fri, 26 Aug 2011 11:00:40 +0000 (20:00 +0900)]
tls: x509 certificate subject parsing fail

Fixes #1568.

13 years agoStrip V8 -Werror
Ryan Dahl [Tue, 30 Aug 2011 16:42:54 +0000 (09:42 -0700)]
Strip V8 -Werror

13 years agoFixes #1610 Remove DigiNotar CA from trusted list
isaacs [Tue, 30 Aug 2011 15:35:16 +0000 (08:35 -0700)]
Fixes #1610 Remove DigiNotar CA from trusted list

Details:
https://threatpost.com/en_us/blogs/attackers-obtain-valid-cert-google-domains-mozilla-moves-revoke-it-082911
http://www.coriolis-systems.com/blog/2011/08/diginotar-certificate-security.php

13 years agoFixes #1610 Remove DigiNotar CA from trusted list
isaacs [Tue, 30 Aug 2011 15:35:16 +0000 (08:35 -0700)]
Fixes #1610 Remove DigiNotar CA from trusted list

Details:
https://threatpost.com/en_us/blogs/attackers-obtain-valid-cert-google-domains-mozilla-moves-revoke-it-082911
http://www.coriolis-systems.com/blog/2011/08/diginotar-certificate-security.php

13 years agodocs: document querystring behavior for arrays and unassigned parameters
AJ ONeal [Mon, 29 Aug 2011 22:21:37 +0000 (16:21 -0600)]
docs: document querystring behavior for arrays and unassigned parameters

13 years agouv: upgrade to 0ba44cf
Ben Noordhuis [Tue, 30 Aug 2011 11:09:47 +0000 (13:09 +0200)]
uv: upgrade to 0ba44cf

13 years agoFix Windows build
Ryan Dahl [Tue, 30 Aug 2011 09:26:22 +0000 (02:26 -0700)]
Fix Windows build

13 years agoUpgrade libuv to ca11711
Ryan Dahl [Tue, 30 Aug 2011 08:59:38 +0000 (01:59 -0700)]
Upgrade libuv to ca11711

13 years agoUse new uv_fs_ apis
Igor Zinkovsky [Sun, 28 Aug 2011 09:23:17 +0000 (02:23 -0700)]
Use new uv_fs_ apis

This will cause master to be unstable for a while as we replace existing eio
calls with uv_fs calls.

13 years agoupgrade libuv to a6ed175
Ryan Dahl [Tue, 30 Aug 2011 07:59:56 +0000 (00:59 -0700)]
upgrade libuv to a6ed175

13 years agoUpgrade V8 to 3.5.9.1
Ryan Dahl [Mon, 29 Aug 2011 22:29:35 +0000 (15:29 -0700)]
Upgrade V8 to 3.5.9.1

13 years agoUpgrade libuv to cbbb254
Ryan Dahl [Mon, 29 Aug 2011 22:23:13 +0000 (15:23 -0700)]
Upgrade libuv to cbbb254

Fixes #1506

13 years agoFixes #1503. make libuv backend default on unix
Ryan Dahl [Mon, 29 Aug 2011 21:01:05 +0000 (14:01 -0700)]
Fixes #1503. make libuv backend default on unix

13 years agostdio: fix typo in doc comment
Abimanyu Raja [Sun, 28 Aug 2011 22:06:40 +0000 (15:06 -0700)]
stdio: fix typo in doc comment

13 years agoSockets should never be attached to a ClientRequest before nextTick().
Mikeal Rogers [Sun, 28 Aug 2011 22:51:40 +0000 (15:51 -0700)]
Sockets should never be attached to a ClientRequest before nextTick().

This way the API for interacting directly with the socket object is
consistent before and after the Agent pool is exhausted.

Fixes #1601.

13 years agomodule: remove 'is URL?' check in module loader, dead code
Jann Horn [Tue, 16 Aug 2011 17:12:54 +0000 (20:12 +0300)]
module: remove 'is URL?' check in module loader, dead code

13 years agov8: remove unnecessary break-after-return in switch statement
jkummerow@chromium.org [Mon, 29 Aug 2011 10:47:00 +0000 (10:47 +0000)]
v8: remove unnecessary break-after-return in switch statement

BUG=v8:1642

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

This is a back-port of upstream r9043. Fixes build on OS X 10.5.

13 years agotest: test for issue #752
Peter Lyons [Fri, 12 Aug 2011 19:20:24 +0000 (13:20 -0600)]
test: test for issue #752

13 years agohttp: remove 'headers sent?' check in OutgoingMessage.getHeader()
Peter Lyons [Mon, 1 Aug 2011 17:39:15 +0000 (13:39 -0400)]
http: remove 'headers sent?' check in OutgoingMessage.getHeader()

Fixes #752.

13 years agoDon't load-time link against CreateSymbolicLink, it doesn't exist on Windows Server...
Peter Bright [Sat, 27 Aug 2011 01:34:09 +0000 (02:34 +0100)]
Don't load-time link against CreateSymbolicLink, it doesn't exist on Windows Server 2003.

Fixes #1592.

13 years agomerge vcbuild.bat and generate_projects.bat
Igor Zinkovsky [Fri, 26 Aug 2011 22:04:47 +0000 (15:04 -0700)]
merge vcbuild.bat and generate_projects.bat

13 years agoNow working on 0.5.6
Ben Noordhuis [Fri, 26 Aug 2011 23:27:52 +0000 (01:27 +0200)]
Now working on 0.5.6

13 years agoBump version to v0.5.5 v0.5.5 v0.5.5-rc1
Ben Noordhuis [Fri, 26 Aug 2011 21:24:18 +0000 (23:24 +0200)]
Bump version to v0.5.5

13 years agoFix typo in configure script
Ben Noordhuis [Fri, 26 Aug 2011 20:38:45 +0000 (20:38 +0000)]
Fix typo in configure script

13 years agoFix build - due to V8 API change
Ryan Dahl [Fri, 26 Aug 2011 20:20:27 +0000 (13:20 -0700)]
Fix build - due to V8 API change

13 years agoMerge remote branch 'origin/v0.4'
Ryan Dahl [Fri, 26 Aug 2011 20:16:16 +0000 (13:16 -0700)]
Merge remote branch 'origin/v0.4'

Conflicts:
AUTHORS
ChangeLog
doc/api/stdio.markdown
doc/index.html
doc/template.html
lib/net.js
src/node_version.h
test/simple/test-child-process-customfd-bounded.js
test/simple/test-console-not-call-toString.js

13 years agoUpgrade V8 to 3.5.8
Ryan Dahl [Fri, 26 Aug 2011 20:07:04 +0000 (13:07 -0700)]
Upgrade V8 to 3.5.8