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

13 years agotyped arrays: add Float64Array
Ben Noordhuis [Wed, 27 Jul 2011 02:34:28 +0000 (04:34 +0200)]
typed arrays: add Float64Array

13 years agotyped arrays: alias method subarray() to slice()
Ben Noordhuis [Tue, 26 Jul 2011 21:38:25 +0000 (23:38 +0200)]
typed arrays: alias method subarray() to slice()

13 years agotyped arrays: integrate plask's typed array implementation
Ben Noordhuis [Tue, 26 Jul 2011 21:20:29 +0000 (23:20 +0200)]
typed arrays: integrate plask's typed array implementation

13 years agocrypto: PBKDF2 function from OpenSSL
Glen Low [Thu, 11 Aug 2011 09:40:55 +0000 (17:40 +0800)]
crypto: PBKDF2 function from OpenSSL

13 years agouv: upgrade to 7f82995
Ben Noordhuis [Fri, 12 Aug 2011 14:14:46 +0000 (16:14 +0200)]
uv: upgrade to 7f82995

13 years agoIncorporate endianness into buffer.read* function names instead of passing in a boole...
Brian White [Tue, 9 Aug 2011 04:40:10 +0000 (00:40 -0400)]
Incorporate endianness into buffer.read* function names instead of passing in a boolean flag

13 years agotest: enable simple/test-http-dns-error for `make test-uv`
Ben Noordhuis [Fri, 12 Aug 2011 13:46:44 +0000 (15:46 +0200)]
test: enable simple/test-http-dns-error for `make test-uv`

13 years agotest: add test for #1202, uncatchable exception on bad host name
Ben Noordhuis [Mon, 8 Aug 2011 20:56:26 +0000 (22:56 +0200)]
test: add test for #1202, uncatchable exception on bad host name

13 years agonet: defer DNS lookup error events to next tick
Ben Noordhuis [Tue, 9 Aug 2011 14:26:42 +0000 (16:26 +0200)]
net: defer DNS lookup error events to next tick

net.createConnection() creates a net.Socket object
and immediately calls net.Socket.connect() on it.

There are no event listeners registered yet so
defer the error event to the next tick.

Fixes #1202.

13 years agoNow working on v0.5.5
Ryan Dahl [Fri, 12 Aug 2011 09:15:19 +0000 (02:15 -0700)]
Now working on v0.5.5

13 years agoBump version to v0.5.4 v0.5.4
Ryan Dahl [Fri, 12 Aug 2011 07:46:39 +0000 (00:46 -0700)]
Bump version to v0.5.4

13 years agoUpgrade libuv to 65f71a2
Ryan Dahl [Fri, 12 Aug 2011 08:14:04 +0000 (01:14 -0700)]
Upgrade libuv to 65f71a2

13 years agoUpgrade V8 to v3.5.4
Ryan Dahl [Fri, 12 Aug 2011 06:59:21 +0000 (23:59 -0700)]
Upgrade V8 to v3.5.4

13 years agoUpgrade libuv to d358738
Ryan Dahl [Thu, 11 Aug 2011 23:46:26 +0000 (16:46 -0700)]
Upgrade libuv to d358738

13 years agoAdd some debug output to test-child-process-double-pipe
Ryan Dahl [Thu, 11 Aug 2011 23:42:14 +0000 (16:42 -0700)]
Add some debug output to test-child-process-double-pipe

13 years agonet_uv: resume on closed net.Socket shouldn't crash
Ryan Dahl [Thu, 11 Aug 2011 23:41:53 +0000 (16:41 -0700)]
net_uv: resume on closed net.Socket shouldn't crash

13 years agobuild: .gitignore build/ directory
Ben Noordhuis [Thu, 11 Aug 2011 23:10:41 +0000 (01:10 +0200)]
build: .gitignore build/ directory

13 years agoFix #1497 querystring: Replace 'in' test with 'hasOwnProperty'
isaacs [Thu, 11 Aug 2011 22:30:56 +0000 (15:30 -0700)]
Fix #1497 querystring: Replace 'in' test with 'hasOwnProperty'

13 years agohttp: destroy socket on error
Ben Noordhuis [Thu, 11 Aug 2011 21:39:38 +0000 (23:39 +0200)]
http: destroy socket on error

Needs further investigation, the test passed without `--use-uv`.

Fixes failing test:
  test/simple/test-http-dns-fail.js

13 years agonet_uv: pipes don't have getsockname
Ryan Dahl [Thu, 11 Aug 2011 17:44:20 +0000 (10:44 -0700)]
net_uv: pipes don't have getsockname

13 years agonet: properly export remoteAddress to user land
Ben Noordhuis [Thu, 11 Aug 2011 15:41:30 +0000 (17:41 +0200)]
net: properly export remoteAddress to user land

Fixes failing test:
  test/simple/test-net-remote-address-port.js

13 years agotest: fix logic error in test-net-remote-address-port.js
Ben Noordhuis [Thu, 11 Aug 2011 13:57:03 +0000 (15:57 +0200)]
test: fix logic error in test-net-remote-address-port.js

The test intended to register an 'at exit' listener
but called `process.exit()` instead.

13 years agoFix MSVS building.
Peter Bright [Thu, 11 Aug 2011 01:45:56 +0000 (02:45 +0100)]
Fix MSVS building.

13 years agoUpgrade libuv to ca633920f564167158d0bb82989d842a47c27d56
Bert Belder [Thu, 11 Aug 2011 02:00:39 +0000 (04:00 +0200)]
Upgrade libuv to ca633920f564167158d0bb82989d842a47c27d56

13 years agonode: propagate --use-uv to child processes
Ben Noordhuis [Thu, 11 Aug 2011 00:47:43 +0000 (02:47 +0200)]
node: propagate --use-uv to child processes

13 years agouv: upgrade to e8497ae
Ben Noordhuis [Thu, 11 Aug 2011 00:46:02 +0000 (02:46 +0200)]
uv: upgrade to e8497ae

13 years agowin: fix test-process-env
Ryan Dahl [Thu, 11 Aug 2011 00:14:23 +0000 (17:14 -0700)]
win: fix test-process-env

Remove support for setting process.env.TZ as it doesn't seem we can do it
x-platform without fixing V8.

13 years agouv: upgrade to b328e4c
Ben Noordhuis [Wed, 10 Aug 2011 23:40:16 +0000 (01:40 +0200)]
uv: upgrade to b328e4c

13 years agouv: upgrade to b6b97f3
Ben Noordhuis [Wed, 10 Aug 2011 22:36:22 +0000 (00:36 +0200)]
uv: upgrade to b6b97f3

13 years agotcp: propagate libuv tcp accept() errors to net_uv.js
Ben Noordhuis [Wed, 10 Aug 2011 21:59:21 +0000 (23:59 +0200)]
tcp: propagate libuv tcp accept() errors to net_uv.js

13 years agoUpgrade libuv to db190c7
Ryan Dahl [Wed, 10 Aug 2011 21:23:26 +0000 (14:23 -0700)]
Upgrade libuv to db190c7

13 years agonet_uv: Handle failed shutdown req
Ryan Dahl [Wed, 10 Aug 2011 21:09:21 +0000 (14:09 -0700)]
net_uv: Handle failed shutdown req

13 years agoAdd test-pipe-file-to-http to test-uv
Ryan Dahl [Wed, 10 Aug 2011 20:33:22 +0000 (13:33 -0700)]
Add test-pipe-file-to-http to test-uv

13 years agonet_uv: fix test/simple/test-pipe-file-to-http.js
Ryan Dahl [Wed, 10 Aug 2011 20:27:05 +0000 (13:27 -0700)]
net_uv: fix test/simple/test-pipe-file-to-http.js

13 years agotest: Allow common.ddCommand to be run in presence of existing file
Ryan Dahl [Wed, 10 Aug 2011 18:32:32 +0000 (11:32 -0700)]
test: Allow common.ddCommand to be run in presence of existing file

13 years agox-platform func for spawning pwd in tests
Ryan Dahl [Wed, 10 Aug 2011 18:22:58 +0000 (11:22 -0700)]
x-platform func for spawning pwd in tests

Fixes test-child-process-buffering

13 years agoExplicitly disable cr/lf conversion for test fixtures
Bert Belder [Wed, 10 Aug 2011 17:56:56 +0000 (19:56 +0200)]
Explicitly disable cr/lf conversion for test fixtures

Otherwise git's autocrlf feature makes test fail on windows.

13 years agoRevert "Make test-sync-fileread pass even when git cr/lf conversion is enabled"
Bert Belder [Wed, 10 Aug 2011 17:54:36 +0000 (19:54 +0200)]
Revert "Make test-sync-fileread pass even when git cr/lf conversion is enabled"

We'll solve this problem with a .gitattributes file.
This reverts commit 27ef0b0903e348cc10d0c5d2ee2ef25aa1676440.

13 years agoAdd NPN and SNI documentation.
Fedor Indutny [Sat, 30 Jul 2011 14:03:05 +0000 (21:03 +0700)]
Add NPN and SNI documentation.

Fixes #1420.
Fixes #1426.

13 years agoMake test-sync-fileread pass even when git cr/lf conversion is enabled
Bert Belder [Wed, 10 Aug 2011 02:30:31 +0000 (04:30 +0200)]
Make test-sync-fileread pass even when git cr/lf conversion is enabled

13 years agoOpen files in binary mode, on msvc too
Bert Belder [Wed, 10 Aug 2011 02:23:44 +0000 (04:23 +0200)]
Open files in binary mode, on msvc too

13 years agoRemove unnecessary line
Ryan Dahl [Wed, 10 Aug 2011 01:05:50 +0000 (18:05 -0700)]
Remove unnecessary line

13 years agoFix test-net-server-on-fd-0 for windows by removing assert
Ryan Dahl [Wed, 10 Aug 2011 00:59:26 +0000 (17:59 -0700)]
Fix test-net-server-on-fd-0 for windows by removing assert

Rename to regression test for GH-746 as the fd 0 behavior was not what the
bug report was about.

13 years agoAdd fixed tests to test-uv
Ryan Dahl [Wed, 10 Aug 2011 00:46:29 +0000 (17:46 -0700)]
Add fixed tests to test-uv

13 years agoFix dd command tests for Windows
Ryan Dahl [Wed, 10 Aug 2011 00:43:57 +0000 (17:43 -0700)]
Fix dd command tests for Windows

13 years agoFix test/simple/test-repl
Ryan Dahl [Tue, 9 Aug 2011 23:38:48 +0000 (16:38 -0700)]
Fix test/simple/test-repl

13 years agoImprove win compat of test-repl
Ryan Dahl [Tue, 9 Aug 2011 23:06:32 +0000 (16:06 -0700)]
Improve win compat of test-repl

13 years agocrypto: fix incorrect ssl shutdown check
Tom Hughes [Fri, 5 Aug 2011 22:22:54 +0000 (15:22 -0700)]
crypto: fix incorrect ssl shutdown check

13 years agonet: fix incorrect sizeof()
Tom Hughes [Fri, 5 Aug 2011 20:52:27 +0000 (13:52 -0700)]
net: fix incorrect sizeof()

13 years agoImprove assert error messages
Ryan Dahl [Tue, 9 Aug 2011 21:18:16 +0000 (14:18 -0700)]
Improve assert error messages

1. actual and expected should be displayed in the same order they were given

2. long values should be truncated.

13 years agoeio: define HAVE_UTIMES 1 on cygwin, fixes build
Ben Noordhuis [Tue, 9 Aug 2011 20:56:18 +0000 (22:56 +0200)]
eio: define HAVE_UTIMES 1 on cygwin, fixes build

Fixes #1483.

13 years agowindows: fix test-umask
Ryan Dahl [Tue, 9 Aug 2011 20:53:56 +0000 (13:53 -0700)]
windows: fix test-umask

13 years agoUpgrade libuv to e5f513c
Ryan Dahl [Tue, 9 Aug 2011 19:26:44 +0000 (12:26 -0700)]
Upgrade libuv to e5f513c

13 years agoReadd the static libpthread-win32 libraries
Ryan Dahl [Tue, 9 Aug 2011 19:25:10 +0000 (12:25 -0700)]
Readd the static libpthread-win32 libraries

13 years agoRevert "Unify configure scripts"
Ryan Dahl [Tue, 9 Aug 2011 17:19:48 +0000 (10:19 -0700)]
Revert "Unify configure scripts"

This reverts commit 71435ede815ee2c73b09f7071ee1b6d10945d409.

13 years agoMake buffer.INSPECT_MAX_BYTES public for mscdex
Ryan Dahl [Tue, 9 Aug 2011 02:04:24 +0000 (19:04 -0700)]
Make buffer.INSPECT_MAX_BYTES public for mscdex

13 years agoTruncate Buffer.inspect at 50 bytes
Ryan Dahl [Tue, 9 Aug 2011 00:50:23 +0000 (17:50 -0700)]
Truncate Buffer.inspect at 50 bytes

13 years agoFix test-executable-path
Ryan Dahl [Tue, 9 Aug 2011 00:35:26 +0000 (17:35 -0700)]
Fix test-executable-path

13 years agoFix test-http-upgrade-server and test-http-parser
Ryan Dahl [Tue, 9 Aug 2011 00:08:38 +0000 (17:08 -0700)]
Fix test-http-upgrade-server and test-http-parser

Problem was introduced in last http-parser upgrade which fixed a long
standing bug with the upgrade event and removed several callbacks.

13 years agoEndian argument should be a boolean. Signed integers shouldn't run through checks...
Robert Mustacchi [Mon, 8 Aug 2011 20:26:00 +0000 (13:26 -0700)]
Endian argument should be a boolean. Signed integers shouldn't run through checks for unsigned integers. Clean up jslint. Provide unchecked uint entry points.

13 years agoTests should point at the build directory until GYP is default
Ryan Dahl [Tue, 9 Aug 2011 00:01:38 +0000 (17:01 -0700)]
Tests should point at the build directory until GYP is default

13 years agoMerge branch 'gyp'
Ryan Dahl [Mon, 8 Aug 2011 23:22:41 +0000 (16:22 -0700)]
Merge branch 'gyp'

13 years agoFix test-child-process-exec-cwd.
Ryan Dahl [Mon, 8 Aug 2011 23:14:30 +0000 (16:14 -0700)]
Fix test-child-process-exec-cwd.

13 years agoUnify configure scripts
Ryan Dahl [Mon, 8 Aug 2011 22:09:42 +0000 (15:09 -0700)]
Unify configure scripts

13 years agoRevert "Remove scons"
Ryan Dahl [Mon, 8 Aug 2011 21:15:51 +0000 (14:15 -0700)]
Revert "Remove scons"

This reverts commit bd270b48a790ba00dd5a0dc9624aabbdedacaea8.

13 years agoUpgrade libuv to 75c10905
Ryan Dahl [Mon, 8 Aug 2011 21:14:47 +0000 (14:14 -0700)]
Upgrade libuv to 75c10905

13 years agoBring back old Makefile and configure script
Ryan Dahl [Mon, 8 Aug 2011 21:12:40 +0000 (14:12 -0700)]
Bring back old Makefile and configure script

GYP and WAF need to live in parallel for some time.

13 years agoFix MSVS build
Ryan Dahl [Mon, 8 Aug 2011 19:32:34 +0000 (12:32 -0700)]
Fix MSVS build

13 years agoMove GYP file to the project root
Ryan Dahl [Mon, 8 Aug 2011 19:11:48 +0000 (12:11 -0700)]
Move GYP file to the project root

13 years agogenerate-project.bat: Point at the right path
Ryan Dahl [Mon, 8 Aug 2011 17:25:55 +0000 (10:25 -0700)]
generate-project.bat: Point at the right path

13 years agosketch out configure support
Ryan Dahl [Mon, 8 Aug 2011 15:55:39 +0000 (08:55 -0700)]
sketch out configure support

13 years agohttp2: reword confusing comment
Ben Noordhuis [Mon, 8 Aug 2011 15:37:52 +0000 (17:37 +0200)]
http2: reword confusing comment

13 years agoImprove util.format() compatibility with browser.
koichik [Sun, 7 Aug 2011 06:55:44 +0000 (15:55 +0900)]
Improve util.format() compatibility with browser.

Fixes #1434.

13 years agoFixes https host header default port handling.
Mikeal Rogers [Sun, 7 Aug 2011 23:14:32 +0000 (16:14 -0700)]
Fixes https host header default port handling.

13 years agoTest for default host headers on default ports in https and http
isaacs [Mon, 8 Aug 2011 00:36:49 +0000 (17:36 -0700)]
Test for default host headers on default ports in https and http

13 years agodocs: rename readline.md to readline.markdown
Ben Noordhuis [Sun, 7 Aug 2011 22:56:04 +0000 (00:56 +0200)]
docs: rename readline.md to readline.markdown

13 years agosymlink in ./node and ./node_g for make users
Ryan Dahl [Sun, 7 Aug 2011 21:54:33 +0000 (14:54 -0700)]
symlink in ./node and ./node_g for make users

13 years agoAdd generate-projects.bat
Ryan Dahl [Sun, 7 Aug 2011 21:54:14 +0000 (14:54 -0700)]
Add generate-projects.bat

13 years agodocs: fix typo in tls API docs
Ben Noordhuis [Sun, 7 Aug 2011 21:30:03 +0000 (23:30 +0200)]
docs: fix typo in tls API docs

13 years agoDisable optimization in debug builds.
Peter Bright [Sun, 7 Aug 2011 18:46:26 +0000 (19:46 +0100)]
Disable optimization in debug builds.

Enable full optimization in release builds.

13 years agoSilence VC++ warnings about use of badly-designed parts of the C library.
Peter Bright [Sun, 7 Aug 2011 18:05:37 +0000 (19:05 +0100)]
Silence VC++ warnings about use of badly-designed parts of the C library.

13 years agoFix missing prototype warnings.
Peter Bright [Sun, 7 Aug 2011 17:44:11 +0000 (18:44 +0100)]
Fix missing prototype warnings.

13 years agoFix bad platform name.
Peter Bright [Sun, 7 Aug 2011 17:43:24 +0000 (18:43 +0100)]
Fix bad platform name.

13 years agoAdd 'make test' and friends
Ryan Dahl [Sun, 7 Aug 2011 08:24:00 +0000 (01:24 -0700)]
Add 'make test' and friends

13 years agoMake MSVS build.
Peter Bright [Sun, 7 Aug 2011 05:11:21 +0000 (06:11 +0100)]
Make MSVS build.

MSVS settings don't actually need to be guarded by conditions. gyp will do
the right thing.

13 years agoV8 GYP should attempt to not use cygwin.
Peter Bright [Sat, 6 Aug 2011 04:23:25 +0000 (05:23 +0100)]
V8 GYP should attempt to not use cygwin.

13 years agoModify GYP scripts for VC build
Peter Bright [Sat, 6 Aug 2011 19:20:15 +0000 (20:20 +0100)]
Modify GYP scripts for VC build