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

13 years agoprepare for release - website under new user
Ryan Dahl [Fri, 26 Aug 2011 17:31:27 +0000 (10:31 -0700)]
prepare for release - website under new user

13 years agoFix dns_uv.lookup order
Ryan Dahl [Thu, 25 Aug 2011 22:22:43 +0000 (15:22 -0700)]
Fix dns_uv.lookup order

13 years agouv: upgrade to 835782a
Ben Noordhuis [Fri, 26 Aug 2011 16:10:35 +0000 (18:10 +0200)]
uv: upgrade to 835782a

13 years agotest: simple/test-tls-client-abort fails on SunOS
koichik [Thu, 25 Aug 2011 16:01:08 +0000 (01:01 +0900)]
test: simple/test-tls-client-abort fails on SunOS

Fixes #1583.

13 years agoUpgrade libuv to 39aac4a5
Bert Belder [Fri, 26 Aug 2011 00:39:54 +0000 (02:39 +0200)]
Upgrade libuv to 39aac4a5

13 years agouv: upgrade to 6490c6a
Ben Noordhuis [Thu, 25 Aug 2011 22:23:17 +0000 (00:23 +0200)]
uv: upgrade to 6490c6a

13 years agoutil: isRegExp() should not call toString() on its argument
Nathan Rajlich [Thu, 25 Aug 2011 17:22:35 +0000 (19:22 +0200)]
util: isRegExp() should not call toString() on its argument

An overloaded toString() method may have side effects
so don't call it for a simple type check.

Back-port of 54b409d to the v0.4 branch.

13 years agoAdd headers to improve the IDE experience.
Peter Bright [Mon, 15 Aug 2011 16:35:48 +0000 (17:35 +0100)]
Add headers to improve the IDE experience.

13 years agoUpgrade libuv to 40efa9c
Ryan Dahl [Thu, 25 Aug 2011 00:43:33 +0000 (17:43 -0700)]
Upgrade libuv to 40efa9c

13 years agoReapply Peter Bright's fixes for GYP on MSVS
Ryan Dahl [Wed, 24 Aug 2011 23:23:04 +0000 (16:23 -0700)]
Reapply Peter Bright's fixes for GYP on MSVS

Originally 71333b3f5b12183b2709704fec160df916cb637a

13 years agofix windows build
Ryan Dahl [Wed, 24 Aug 2011 23:20:08 +0000 (16:20 -0700)]
fix windows build

13 years agoAdd dgram_legacy and dgram_uv to node.gyp
Ryan Dahl [Wed, 24 Aug 2011 22:55:10 +0000 (15:55 -0700)]
Add dgram_legacy and dgram_uv to node.gyp

13 years agonet: fix multicast on sunos
Ben Noordhuis [Wed, 24 Aug 2011 22:46:55 +0000 (22:46 +0000)]
net: fix multicast on sunos

setsockopt(IP_MULTICAST_TTL|IP_MULTICAST_LOOP) takes an unsigned char as
its argument on sunos.

Partially fixes simple/test-dgram-multicast: test hangs after socket
close but it no longer throws EINVAL exceptions.

13 years agotest: fix simple/test-eval
Ben Noordhuis [Wed, 24 Aug 2011 22:18:39 +0000 (00:18 +0200)]
test: fix simple/test-eval

Test expects output of console.error(process.argv) to be spread out
over several lines but if /path/to/node is short, it stays on a single line.

13 years agoAdd process.features.debug; fixes simple/test-executable-path.js
Ryan Dahl [Wed, 24 Aug 2011 21:16:35 +0000 (14:16 -0700)]
Add process.features.debug; fixes simple/test-executable-path.js

13 years agodns_uv: add localhost hack for windows
Ryan Dahl [Wed, 24 Aug 2011 20:42:20 +0000 (13:42 -0700)]
dns_uv: add localhost hack for windows

13 years agotest: add dgram tests to test-uv list
Ben Noordhuis [Wed, 24 Aug 2011 02:11:54 +0000 (04:11 +0200)]
test: add dgram tests to test-uv list

13 years agodocs: remove unix dgram documentation
Ben Noordhuis [Wed, 24 Aug 2011 01:50:55 +0000 (03:50 +0200)]
docs: remove unix dgram documentation

13 years agodgram: add socket.fd compatibility hack to dgram_uv.js
Ben Noordhuis [Wed, 24 Aug 2011 00:42:49 +0000 (02:42 +0200)]
dgram: add socket.fd compatibility hack to dgram_uv.js

13 years agodgram: integrate libuv support for UDP over IPv6
Ben Noordhuis [Wed, 24 Aug 2011 00:57:48 +0000 (02:57 +0200)]
dgram: integrate libuv support for UDP over IPv6

13 years agodgram: integrate libuv UDP support
Ben Noordhuis [Sat, 20 Aug 2011 01:47:40 +0000 (03:47 +0200)]
dgram: integrate libuv UDP support

13 years agotcp_wrap: update after libuv API change
Ben Noordhuis [Tue, 23 Aug 2011 23:47:02 +0000 (01:47 +0200)]
tcp_wrap: update after libuv API change

13 years agostream_wrap: update after libuv API change
Ben Noordhuis [Fri, 19 Aug 2011 23:47:09 +0000 (01:47 +0200)]
stream_wrap: update after libuv API change

13 years agouv: upgrade to 80e5491
Ben Noordhuis [Tue, 23 Aug 2011 00:34:43 +0000 (02:34 +0200)]
uv: upgrade to 80e5491

13 years agoMove ARRAY_SIZE macro to node.h
Ben Noordhuis [Tue, 23 Aug 2011 16:26:39 +0000 (18:26 +0200)]
Move ARRAY_SIZE macro to node.h

13 years agodocs: Improved http2 agent docs
Mikeal Rogers [Fri, 12 Aug 2011 21:31:17 +0000 (14:31 -0700)]
docs: Improved http2 agent docs

Fixes #1517.

13 years agovcbuild.bat - for building from cmd-line using msbuild
Igor Zinkovsky [Wed, 24 Aug 2011 06:14:56 +0000 (23:14 -0700)]
vcbuild.bat - for building from cmd-line using msbuild

13 years agotools/test.py to support marking files a libuv-broken
Ryan Dahl [Wed, 24 Aug 2011 05:46:39 +0000 (22:46 -0700)]
tools/test.py to support marking files a libuv-broken

Use

  export NODE_USE_UV=1
  python tools/test.py --libuv simple pummel

To run the equivalent of "make test-uv".

13 years agoMark tests which are broken in libuv
Ryan Dahl [Wed, 24 Aug 2011 06:42:23 +0000 (23:42 -0700)]
Mark tests which are broken in libuv

13 years agoSupport MSVS build directories in tools/test.py
Ryan Dahl [Wed, 24 Aug 2011 02:58:47 +0000 (19:58 -0700)]
Support MSVS build directories in tools/test.py

13 years agoUse Object.getPrototypeOf() on the object in the REPL tab-completion.
Nathan Rajlich [Tue, 23 Aug 2011 17:39:23 +0000 (10:39 -0700)]
Use Object.getPrototypeOf() on the object in the REPL tab-completion.

Some people use __proto__ to augment an Object's prototype after it's been created.
This patch helps make the "new" prototype properties visible if necessary.

This is also more consistent with the while logic below.

13 years agoUpgrade V8 to 3.5.7
Ryan Dahl [Tue, 23 Aug 2011 22:17:13 +0000 (15:17 -0700)]
Upgrade V8 to 3.5.7

13 years agowaf: Don't build out/Debug/node_g - just out/Debug/node
Ryan Dahl [Tue, 23 Aug 2011 22:13:07 +0000 (15:13 -0700)]
waf: Don't build out/Debug/node_g - just out/Debug/node

This is to match how GYP does it.

13 years agonet: fix throw error
Ryan Dahl [Tue, 23 Aug 2011 21:29:46 +0000 (14:29 -0700)]
net: fix throw error

Thanks Tobi

13 years agonet_legacy: Fix throw typo
Ryan Dahl [Tue, 23 Aug 2011 21:24:50 +0000 (14:24 -0700)]
net_legacy: Fix throw typo

Thanks Tobi

13 years agoWAF builds in out/ instead of build/
Ryan Dahl [Tue, 23 Aug 2011 21:08:53 +0000 (14:08 -0700)]
WAF builds in out/ instead of build/

13 years agoHave WAF variants match GYP configuration names
Ryan Dahl [Tue, 23 Aug 2011 20:56:19 +0000 (13:56 -0700)]
Have WAF variants match GYP configuration names

13 years agogyp: Further fixes to target_defaults for mac
Ryan Dahl [Tue, 23 Aug 2011 19:42:49 +0000 (12:42 -0700)]
gyp: Further fixes to target_defaults for mac

13 years agogyp: Don't pass C++ flags to C compiler, and don't pass -ansi in OpenSSL builds.
Evan Martin [Tue, 23 Aug 2011 18:04:08 +0000 (11:04 -0700)]
gyp: Don't pass C++ flags to C compiler, and don't pass -ansi in OpenSSL builds.

13 years agocommon.gypi: don't nest "target_defaults" within "target_defaults"
Evan Martin [Tue, 23 Aug 2011 17:40:51 +0000 (10:40 -0700)]
common.gypi: don't nest "target_defaults" within "target_defaults"

The "conditions" block is already within a "target_defaults", so its
children amend target default settings already.

13 years agodns: Force the DNS module to invoke callbacks asynchronously.
koichik [Fri, 12 Aug 2011 18:09:34 +0000 (03:09 +0900)]
dns: Force the DNS module to invoke callbacks asynchronously.

Fixes #1164.

13 years agonet_uv: throw when people construct net.Socket(fd)
Ryan Dahl [Tue, 23 Aug 2011 09:31:20 +0000 (02:31 -0700)]
net_uv: throw when people construct net.Socket(fd)

Easier to catch compatibility errors.

13 years agonet_uv: Don't error on ECONNRESET
Ryan Dahl [Tue, 23 Aug 2011 02:06:42 +0000 (19:06 -0700)]
net_uv: Don't error on ECONNRESET

Fixes #1571.

13 years agoUpgrade GYP to r1010
Ryan Dahl [Tue, 23 Aug 2011 00:08:16 +0000 (17:08 -0700)]
Upgrade GYP to r1010

13 years agogyp: -ldl on linux
Ryan Dahl [Tue, 23 Aug 2011 00:07:07 +0000 (20:07 -0400)]
gyp: -ldl on linux

13 years agonet_uv: handle read errors
Ryan Dahl [Mon, 22 Aug 2011 22:03:27 +0000 (15:03 -0700)]
net_uv: handle read errors

13 years agoUpgrade libuv to joyent/libuv@ce20791
Ryan Dahl [Mon, 22 Aug 2011 21:51:29 +0000 (14:51 -0700)]
Upgrade libuv to joyent/libuv@ce20791

13 years agoFixes #1531
Mikeal Rogers [Mon, 15 Aug 2011 20:51:20 +0000 (13:51 -0700)]
Fixes #1531

13 years agoAdd failing test for https2 compatibility
Maciej Małecki [Wed, 17 Aug 2011 08:06:41 +0000 (10:06 +0200)]
Add failing test for https2 compatibility

Issue #1531

13 years agoUpdate license info for openssl
Ryan Dahl [Mon, 22 Aug 2011 18:36:38 +0000 (11:36 -0700)]
Update license info for openssl

13 years agoUpgrade to 0.9.8r.
Peter Bright [Sat, 20 Aug 2011 05:05:08 +0000 (06:05 +0100)]
Upgrade to 0.9.8r.

Build in Win32.

13 years agoimport openssl from chrome
Ryan Dahl [Fri, 19 Aug 2011 21:03:32 +0000 (14:03 -0700)]
import openssl from chrome

13 years agoDoc improvements
koichik [Mon, 22 Aug 2011 15:19:39 +0000 (00:19 +0900)]
Doc improvements

13 years agoDoc improvements
koichik [Mon, 22 Aug 2011 15:18:46 +0000 (00:18 +0900)]
Doc improvements

13 years agoFix #1563. overflow in ChildProcess custom_fd.
Ryan Dahl [Sat, 20 Aug 2011 19:38:31 +0000 (12:38 -0700)]
Fix #1563. overflow in ChildProcess custom_fd.

Backported from master f5db3f1f859427d2b1252f937a45409c5d4eb38b

13 years agoFix #1563. overflow in ChildProcess custom_fd.
Ryan Dahl [Sat, 20 Aug 2011 19:38:31 +0000 (12:38 -0700)]
Fix #1563. overflow in ChildProcess custom_fd.

13 years agodocs: process.memoryUsage returns memory usage measured in bytes
Maciej Małecki [Fri, 19 Aug 2011 22:26:21 +0000 (00:26 +0200)]
docs: process.memoryUsage returns memory usage measured in bytes

13 years agodocs: process.memoryUsage returns memory usage measured in bytes
Maciej Małecki [Fri, 19 Aug 2011 22:26:21 +0000 (00:26 +0200)]
docs: process.memoryUsage returns memory usage measured in bytes

13 years agoUpgrade V8 to 3.5.6
Ryan Dahl [Thu, 18 Aug 2011 23:59:21 +0000 (16:59 -0700)]
Upgrade V8 to 3.5.6

13 years agoClose #1544 Document slashesDenoteHost flag in url.parse
isaacs [Wed, 17 Aug 2011 20:13:56 +0000 (13:13 -0700)]
Close #1544 Document slashesDenoteHost flag in url.parse

13 years agoNow working on v0.4.12
Ryan Dahl [Thu, 18 Aug 2011 01:45:28 +0000 (18:45 -0700)]
Now working on v0.4.12

13 years agoBump version to v0.4.11 v0.4.11
Ryan Dahl [Thu, 18 Aug 2011 01:17:57 +0000 (18:17 -0700)]
Bump version to v0.4.11

13 years agobench: make number of response body chunks configurable in http_simple
Ben Noordhuis [Wed, 17 Aug 2011 20:38:30 +0000 (22:38 +0200)]
bench: make number of response body chunks configurable in http_simple

13 years agoFix #1546 some more. Remove expensive debug call.
Ben Noordhuis [Wed, 17 Aug 2011 20:53:13 +0000 (22:53 +0200)]
Fix #1546 some more. Remove expensive debug call.

13 years agoClose #1544 Document slashesDenoteHost flag in url.parse
isaacs [Wed, 17 Aug 2011 20:13:56 +0000 (13:13 -0700)]
Close #1544 Document slashesDenoteHost flag in url.parse

13 years agoMerge remote branch 'origin/v0.4'
Ryan Dahl [Wed, 17 Aug 2011 20:25:44 +0000 (13:25 -0700)]
Merge remote branch 'origin/v0.4'

Conflicts:
doc/api/tls.markdown

13 years agoFixes #1546. Remove expensive debug call.
Ryan Dahl [Wed, 17 Aug 2011 20:21:15 +0000 (13:21 -0700)]
Fixes #1546. Remove expensive debug call.

13 years agobench: make http_simple send chunked encoding if requested
Ben Noordhuis [Wed, 17 Aug 2011 18:39:20 +0000 (20:39 +0200)]
bench: make http_simple send chunked encoding if requested

13 years agohttp: improve compatibility of legacy API
koichik [Sun, 14 Aug 2011 07:56:41 +0000 (16:56 +0900)]
http: improve compatibility of legacy API

In http1, legacy http.Client shares one connection with multiple requests.
But in http2, it uses concurrent connections.
With --use-http1, test/simple/test-http-legacy.js passes.
However, it fails without --use-http1 (use http2).

This improves compatibility of legacy http.Client API between http1 and http2.

Fixes #1530.

13 years agotest: refactored http test.
koichik [Sun, 14 Aug 2011 06:02:14 +0000 (15:02 +0900)]
test: refactored http test.

Many http tests had used legacy http.Client.
This refactored it to use modern API.

Fixes #1528.

13 years agovm: fix incorrect dispatch of vm.runInContext for argument "filename"
Antranig Basman [Thu, 2 Jun 2011 19:45:30 +0000 (13:45 -0600)]
vm: fix incorrect dispatch of vm.runInContext for argument "filename"

Adds test case and documentation for vm.runInContext and vm.createContext.

Fixes #1140.

13 years agoComplete GYP support for Python 2.5.2
Ryan Dahl [Tue, 16 Aug 2011 01:26:48 +0000 (18:26 -0700)]
Complete GYP support for Python 2.5.2

13 years agoGYP Support python 2.5.2
Ryan Dahl [Tue, 16 Aug 2011 01:18:14 +0000 (21:18 -0400)]
GYP Support python 2.5.2

13 years agogyp: Support Linux
Ryan Dahl [Tue, 16 Aug 2011 00:54:47 +0000 (20:54 -0400)]
gyp: Support Linux

13 years agoRemove http.cat. fixes #1447
Mikeal Rogers [Wed, 3 Aug 2011 22:06:16 +0000 (15:06 -0700)]
Remove http.cat. fixes #1447

13 years agoUpgrade GYP to r999
Ryan Dahl [Mon, 15 Aug 2011 22:47:16 +0000 (15:47 -0700)]
Upgrade GYP to r999

To fix osx/make build http://codereview.chromium.org/7618052

13 years agoUpgrade GYP to r995
Ryan Dahl [Mon, 15 Aug 2011 20:48:20 +0000 (13:48 -0700)]
Upgrade GYP to r995

13 years agoFix GYP build on OSX
Ryan Dahl [Mon, 15 Aug 2011 20:40:17 +0000 (13:40 -0700)]
Fix GYP build on OSX

Broken due to DOS line endings.

  ./configure-gyp
  make -f Makefile-gyp

13 years agomodule: fix pointer reference to out-of-scope variable
Ben Noordhuis [Sat, 13 Aug 2011 23:25:39 +0000 (01:25 +0200)]
module: fix pointer reference to out-of-scope variable

Reported by Tom Hughes.

13 years agoutil: isRegExp() should not call toString() on its argument
Nathan Rajlich [Mon, 15 Aug 2011 15:17:33 +0000 (17:17 +0200)]
util: isRegExp() should not call toString() on its argument

An overloaded toString() method may have side effects
so don't call it for a simple type check.

13 years agoFix docs for fs.*chown
Mickaël Delahaye [Mon, 15 Aug 2011 13:09:03 +0000 (15:09 +0200)]
Fix docs for fs.*chown

Fix bad parameters of fs.chown[Sync], fs.fchown[Sync] and
fs.lchown[Sync] in documentation.

Fixes #1533.

13 years agonode_crypto: interface with libuv, not libev
Bert Belder [Mon, 15 Aug 2011 00:30:35 +0000 (02:30 +0200)]
node_crypto: interface with libuv, not libev

13 years agoDocs: Not memcpy, but memmove
koichik [Sun, 14 Aug 2011 14:10:36 +0000 (23:10 +0900)]
Docs: Not memcpy, but memmove

Fixes #1520.

13 years agoRename gyp files to produce useful solution names.
Peter Bright [Sat, 13 Aug 2011 18:17:47 +0000 (19:17 +0100)]
Rename gyp files to produce useful solution names.

Hoist common settings into common.gypi.

Restrict v8's common.gypi to v8 projects.

Ensure v8 doesn't use /MP in debug builds.

Add basic settings for other platforms.

Make uv import common.gypi properly.

Remove LTCG warning.

13 years agopath.js: correct three harmless .length typos
Thomas Shinnick [Sat, 13 Aug 2011 21:22:52 +0000 (16:22 -0500)]
path.js: correct three harmless .length typos

lib/path.js routines normalizeArray() and resolve() have for loops that
count down from end of an array.  The loop indexes are initialized using
"array.length" rather than "array.length-1".  The initial array element
accessed is always beyond the end of array and the value is 'undefined'.
Strangely, code exists that acts to ignore undefined values so that the
typos are unnoticeable.

Existing tests emit no errors either before or after changing to "length-1".
Tests _do_ start failing at "length-2". (Actually it is node that starts
to fail at "length-2" - that's a valid enough test...)

13 years agouv: upgrade to 5899192
Ben Noordhuis [Sun, 14 Aug 2011 01:15:12 +0000 (03:15 +0200)]
uv: upgrade to 5899192

13 years agomodule: fix pointer reference to out-of-scope variable
Ben Noordhuis [Sat, 13 Aug 2011 23:25:39 +0000 (01:25 +0200)]
module: fix pointer reference to out-of-scope variable

Reported by Tom Hughes.

13 years agotest: add typed arrays to known globals list
Thomas Shinnick [Sat, 13 Aug 2011 21:51:31 +0000 (23:51 +0200)]
test: add typed arrays to known globals list

13 years agosmall NPN doc fix
Fedor Indutny [Sat, 13 Aug 2011 17:45:38 +0000 (00:45 +0700)]
small NPN doc fix

Fixes #1522.

13 years agoplatform: fix GetFreeMemory() on 64 bits freebsd
Artem Zaytsev [Sat, 30 Jul 2011 18:06:46 +0000 (22:06 +0400)]
platform: fix GetFreeMemory() on 64 bits freebsd

v_free_count is defined as u_int v_free_count (struct vmmeter sys/vmmeter.h:87)
but variable info defined as unsigned long, this cause error on 64-bits systems
because higher 32 bits remain uninitialized

13 years agobuild: add src/v8_typed_array.cc to gyp sources list
Ben Noordhuis [Fri, 12 Aug 2011 16:57:04 +0000 (18:57 +0200)]
build: add src/v8_typed_array.cc to gyp sources list

13 years agotyped arrays: fix signed/unsigned compiler warnings
Ben Noordhuis [Fri, 12 Aug 2011 16:52:06 +0000 (18:52 +0200)]
typed arrays: fix signed/unsigned compiler warnings

13 years agotyped arrays: preliminary benchmarks
Ben Noordhuis [Wed, 27 Jul 2011 03:08:47 +0000 (05:08 +0200)]
typed arrays: preliminary benchmarks