platform/upstream/nodejs.git
12 years agobuild: always compile with large file support
Ben Noordhuis [Wed, 30 Nov 2011 01:28:10 +0000 (02:28 +0100)]
build: always compile with large file support

Fixes a nasty sizeof(struct stat) mismatch bug that caused random crashes and
silent memory corruption.

12 years agobuild: regenerate out/Makefile from within the main Makefile
eddy_me08@yahoo.com [Tue, 29 Nov 2011 14:31:31 +0000 (16:31 +0200)]
build: regenerate out/Makefile from within the main Makefile

Fixes #2147.

12 years agobuild: DRY configure script
Ben Noordhuis [Tue, 29 Nov 2011 15:27:52 +0000 (16:27 +0100)]
build: DRY configure script

12 years agoFix double #define of NODE_VERSION_IS_RELEASE
Ben Noordhuis [Sun, 27 Nov 2011 01:09:15 +0000 (02:09 +0100)]
Fix double #define of NODE_VERSION_IS_RELEASE

12 years agobuild: compile with -D__DARWIN_64_BIT_INO_T on OS X
Ben Noordhuis [Fri, 25 Nov 2011 15:49:52 +0000 (16:49 +0100)]
build: compile with -D__DARWIN_64_BIT_INO_T on OS X

Fixes a struct stat size mismatch on 64 bits machines that made Node crash with
a EXC_BAD_ACCESS on startup.

Fixes #2061 for gyp builds. Solution proposed by Paddy Byers.

12 years agoMerge branch 'v0.6'
Bert Belder [Fri, 25 Nov 2011 11:34:29 +0000 (12:34 +0100)]
Merge branch 'v0.6'

Conflicts:
Makefile
src/node_version.h
test/simple/test-http-response-no-headers.js

12 years agoBump version to v0.6.3 v0.6.3
Bert Belder [Fri, 25 Nov 2011 10:23:28 +0000 (11:23 +0100)]
Bump version to v0.6.3

12 years agoStrip trailing whitespace in changelog
Bert Belder [Fri, 25 Nov 2011 10:07:57 +0000 (11:07 +0100)]
Strip trailing whitespace in changelog

12 years agoMake the pummel test runner not crash on windows when a directory is locked
Bert Belder [Fri, 25 Nov 2011 09:27:30 +0000 (10:27 +0100)]
Make the pummel test runner not crash on windows when a directory is locked

12 years agoUpgrade libuv to 01f64f6
Bert Belder [Fri, 25 Nov 2011 09:16:43 +0000 (10:16 +0100)]
Upgrade libuv to 01f64f6

12 years agoFs: use strncmp instead of memcmp for comparing strings
Bert Belder [Fri, 25 Nov 2011 08:30:50 +0000 (09:30 +0100)]
Fs: use strncmp instead of memcmp for comparing strings

12 years agoEnable long paths on windows
Author: Igor Zinkovsky [Fri, 25 Nov 2011 08:29:06 +0000 (09:29 +0100)]
Enable long paths on windows

12 years agoupdate libuv to cfa4112950b1f897fda7
Igor Zinkovsky [Fri, 25 Nov 2011 03:45:35 +0000 (19:45 -0800)]
update libuv to cfa4112950b1f897fda7

12 years agoFix test-stdin-from-file
Bert Belder [Fri, 25 Nov 2011 02:08:27 +0000 (03:08 +0100)]
Fix test-stdin-from-file

12 years agoUpgrade libuv to 3a50f8f
Bert Belder [Fri, 25 Nov 2011 01:13:37 +0000 (02:13 +0100)]
Upgrade libuv to 3a50f8f

12 years agoFix issues with test-fs-chmod
Bert Belder [Fri, 25 Nov 2011 00:25:38 +0000 (01:25 +0100)]
Fix issues with test-fs-chmod

- The test simultaneously chmods and fchmods the same file.
- On windows, it leaves behind a fixture in read-only mode,
  which causes test-fs-fsync to fail.

12 years agoUpgrade libuv to 45b976a
Bert Belder [Fri, 25 Nov 2011 00:01:17 +0000 (01:01 +0100)]
Upgrade libuv to 45b976a

12 years agotest: better fs.lchmod() availability check
Ben Noordhuis [Thu, 24 Nov 2011 23:55:10 +0000 (00:55 +0100)]
test: better fs.lchmod() availability check

fs.lchmod() is a BSD-ism, not a "not Windows"-ism.

12 years agoUpgrade libuv to ea63f06
Bert Belder [Thu, 24 Nov 2011 18:57:17 +0000 (19:57 +0100)]
Upgrade libuv to ea63f06

12 years agoAdd test for GH-2177
Bert Belder [Thu, 24 Nov 2011 18:56:41 +0000 (19:56 +0100)]
Add test for GH-2177

12 years agoDgram: correctly report recvmsg errors
Bert Belder [Thu, 24 Nov 2011 16:00:53 +0000 (17:00 +0100)]
Dgram: correctly report recvmsg errors

12 years agoWindows: correctly resolve drive-relative paths
Bert Belder [Thu, 24 Nov 2011 01:38:34 +0000 (02:38 +0100)]
Windows: correctly resolve drive-relative paths

12 years agoDon't die when arguments are passed to process.cwd()
Bert Belder [Thu, 24 Nov 2011 01:19:54 +0000 (02:19 +0100)]
Don't die when arguments are passed to process.cwd()

12 years agobuild: print "not yet implemented" warning on `make install`
Ben Noordhuis [Wed, 23 Nov 2011 12:19:19 +0000 (13:19 +0100)]
build: print "not yet implemented" warning on `make install`

12 years agodocs: fix dgram markdown
Ben Noordhuis [Wed, 23 Nov 2011 11:55:49 +0000 (12:55 +0100)]
docs: fix dgram markdown

12 years agobuild: fix circular dependency in doc target
Ben Noordhuis [Wed, 23 Nov 2011 11:54:45 +0000 (12:54 +0100)]
build: fix circular dependency in doc target

12 years agoFixes #2076. Add logos to MSI
Ryan Dahl [Wed, 23 Nov 2011 03:23:41 +0000 (19:23 -0800)]
Fixes #2076. Add logos to MSI

12 years agoAdd exe and msi signing to vcbuild.bat
Ryan Dahl [Wed, 23 Nov 2011 02:17:12 +0000 (18:17 -0800)]
Add exe and msi signing to vcbuild.bat

12 years agoFixes #2083. Support installing npm in the .msi
Ryan Dahl [Wed, 23 Nov 2011 00:10:32 +0000 (16:10 -0800)]
Fixes #2083. Support installing npm in the .msi

12 years agoUpdate npm to 1.1.0-alpha-2
isaacs [Wed, 23 Nov 2011 00:56:59 +0000 (16:56 -0800)]
Update npm to 1.1.0-alpha-2

12 years agoClose #2166 Close the fd in lchmod
isaacs [Tue, 22 Nov 2011 21:10:57 +0000 (13:10 -0800)]
Close #2166 Close the fd in lchmod

12 years agoGet test-http-response-no-headers.js to pass
Felix Geisendörfer [Tue, 22 Nov 2011 20:54:17 +0000 (21:54 +0100)]
Get test-http-response-no-headers.js to pass

Main fix was in 3abebf which added HTTP/0.9 support to http parser.

Changed test because HTTP 1.1 mandates keep-alive when no headers are
given.

Fixes #1711

12 years agotest: add 'response body with no headers' http test
Ben Noordhuis [Thu, 17 Nov 2011 15:30:37 +0000 (16:30 +0100)]
test: add 'response body with no headers' http test

HTTP/0.9 - fails with a parse error
HTTP/1.0 - works
HTTP/1.1 - fails with an empty response body

See #1711.

12 years agoMerge remote branch 'origin/v0.6'
Ryan Dahl [Tue, 22 Nov 2011 21:01:10 +0000 (13:01 -0800)]
Merge remote branch 'origin/v0.6'

Conflicts:
Makefile
src/node_version.h
test/simple/test-crypto.js

12 years agoUpgrade http-parser to joyent/http-parser@2498961
Ryan Dahl [Tue, 22 Nov 2011 20:54:12 +0000 (12:54 -0800)]
Upgrade http-parser to joyent/http-parser@2498961

12 years agoFix broken commit 2cd5adc
Ryan Dahl [Tue, 22 Nov 2011 20:43:55 +0000 (12:43 -0800)]
Fix broken commit 2cd5adc

12 years agoInstall npm with 'make install'
Ryan Dahl [Tue, 22 Nov 2011 20:38:48 +0000 (12:38 -0800)]
Install npm with 'make install'

12 years agoFixes #2160. Fix tty.getWindowSize docs
Ryan Dahl [Tue, 22 Nov 2011 18:22:53 +0000 (10:22 -0800)]
Fixes #2160. Fix tty.getWindowSize docs

12 years agoRemove support for multi-source pipe()
Felix Geisendörfer [Mon, 21 Nov 2011 21:57:33 +0000 (22:57 +0100)]
Remove support for multi-source pipe()

This reverts 6c5b31bd which had too few use cases, too much complexity,
and can be handled in user-land by using `{end: false}`.

Closes #1996

12 years agozlib: Fix invalidly failing test
isaacs [Fri, 18 Nov 2011 22:38:18 +0000 (14:38 -0800)]
zlib: Fix invalidly failing test

12 years agotest: add DSA sign/verify crypto tests
Ben Noordhuis [Tue, 22 Nov 2011 15:01:07 +0000 (16:01 +0100)]
test: add DSA sign/verify crypto tests

12 years agoInclude NPM, update .pkg to install it.
Ryan Dahl [Mon, 21 Nov 2011 17:48:45 +0000 (09:48 -0800)]
Include NPM, update .pkg to install it.

.msi update coming soon.

12 years agotls: expose more openssl SSL context options
Ben Noordhuis [Mon, 21 Nov 2011 12:58:30 +0000 (13:58 +0100)]
tls: expose more openssl SSL context options

12 years agotls: expose ssl bug workaround constants
Roman Shtylman [Sun, 20 Nov 2011 23:09:07 +0000 (18:09 -0500)]
tls: expose ssl bug workaround constants

The internet is filled with servers which have various bugs and other
ssl handshake issues. These constants can be used with the Agent
secureOptions option to get around such server limitations when performing
https requests

12 years agotest: `stdin` isn't closed after `resume()` and `pause()`
Maciej Małecki [Mon, 24 Oct 2011 23:57:43 +0000 (01:57 +0200)]
test: `stdin` isn't closed after `resume()` and `pause()`

This works on `node v0.4.12`, but doesn't work on `node v0.6.2`

12 years agoFixes #2084. Makeify tools/osx-dist.sh
Ryan Dahl [Mon, 21 Nov 2011 03:22:30 +0000 (19:22 -0800)]
Fixes #2084. Makeify tools/osx-dist.sh

12 years agoNow working on v0.6.3
Ben Noordhuis [Fri, 18 Nov 2011 23:22:13 +0000 (00:22 +0100)]
Now working on v0.6.3

12 years agoBump version to v0.6.2 v0.6.2
Ben Noordhuis [Fri, 18 Nov 2011 21:09:59 +0000 (22:09 +0100)]
Bump version to v0.6.2

12 years agozlib: Fix invalidly failing test
isaacs [Fri, 18 Nov 2011 22:38:18 +0000 (14:38 -0800)]
zlib: Fix invalidly failing test

12 years agobuild: compile with -D__DARWIN_64_BIT_INO_T on OS X
Ben Noordhuis [Fri, 18 Nov 2011 12:47:54 +0000 (13:47 +0100)]
build: compile with -D__DARWIN_64_BIT_INO_T on OS X

Fixes a struct stat size mismatch on 64 bits machines that made Node crash with
a EXC_BAD_ACCESS on startup.

Fixes #2061. Solution proposed by Paddy Byers.

12 years agouv: upgrade to 01fbe7b
Ben Noordhuis [Fri, 18 Nov 2011 13:05:35 +0000 (14:05 +0100)]
uv: upgrade to 01fbe7b

12 years agoAdd missing rm
Ryan Dahl [Fri, 18 Nov 2011 20:03:35 +0000 (12:03 -0800)]
Add missing rm

12 years agodocs: document dgram error event
Ben Noordhuis [Fri, 18 Nov 2011 13:16:06 +0000 (14:16 +0100)]
docs: document dgram error event

12 years agocrypto: use the libuv rwlock API
Ben Noordhuis [Mon, 14 Nov 2011 21:27:57 +0000 (22:27 +0100)]
crypto: use the libuv rwlock API

12 years agouv: upgrade to e4680cc
Ben Noordhuis [Fri, 18 Nov 2011 12:07:01 +0000 (13:07 +0100)]
uv: upgrade to e4680cc

12 years agobuffer: add .read*() and .write*() methods to SlowBuffer prototype
Ben Noordhuis [Thu, 17 Nov 2011 13:14:43 +0000 (14:14 +0100)]
buffer: add .read*() and .write*() methods to SlowBuffer prototype

Fixes #2138.

12 years agoForce makefile generation in gyp
Ryan Dahl [Fri, 18 Nov 2011 01:18:29 +0000 (17:18 -0800)]
Force makefile generation in gyp

12 years agodocs: document the `persistent` option for `fs.watch` and `fs.watchFile`
Trevor Burnham [Wed, 16 Nov 2011 23:19:46 +0000 (18:19 -0500)]
docs: document the `persistent` option for `fs.watch` and `fs.watchFile`

12 years agobuild: fix gyp xcode project generator
Paddy Byers [Tue, 15 Nov 2011 23:52:23 +0000 (23:52 +0000)]
build: fix gyp xcode project generator

Only attempt to generate FrameworkPhase output for code targets.

12 years agobuild: remove v8-node.gyp
Ben Noordhuis [Thu, 17 Nov 2011 22:48:40 +0000 (23:48 +0100)]
build: remove v8-node.gyp

12 years agocrypto: add support for RSA public key signing/verification
Ben Noordhuis [Thu, 17 Nov 2011 21:58:13 +0000 (22:58 +0100)]
crypto: add support for RSA public key signing/verification

12 years agocrypto: make verify() return true or false, not 1 or 0
Ben Noordhuis [Thu, 17 Nov 2011 19:46:40 +0000 (20:46 +0100)]
crypto: make verify() return true or false, not 1 or 0

It's what the documentation says it should return.

12 years agoutil: remove the line requiring events
E. Azer Koçulu [Thu, 17 Nov 2011 07:20:06 +0000 (23:20 -0800)]
util: remove the line requiring events

12 years agocrypto: make verify() return true or false, not 1 or 0
Ben Noordhuis [Thu, 17 Nov 2011 19:46:40 +0000 (20:46 +0100)]
crypto: make verify() return true or false, not 1 or 0

It's what the documentation says it should return.

12 years agoMerge remote branch 'origin/v0.6'
Ben Noordhuis [Thu, 17 Nov 2011 20:06:50 +0000 (20:06 +0000)]
Merge remote branch 'origin/v0.6'

12 years agoFixes #2140. Fix illumos build.
Ryan Dahl [Thu, 17 Nov 2011 19:39:14 +0000 (11:39 -0800)]
Fixes #2140. Fix illumos build.

12 years agoutil: remove the line requiring events
E. Azer Koçulu [Thu, 17 Nov 2011 07:20:06 +0000 (23:20 -0800)]
util: remove the line requiring events

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

Re-applies 77e4abbc3e66505af89c57cd7bff555890a33f3f, lost in a V8 upgrade.

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.

Re-applies d104e5b91cfa3ef3ef846d5a0ab07c0336263a92, lost in a V8 upgrade.

12 years agotest: add 'response body with no headers' http test
Ben Noordhuis [Thu, 17 Nov 2011 15:30:37 +0000 (16:30 +0100)]
test: add 'response body with no headers' http test

HTTP/0.9 - fails with a parse error
HTTP/1.0 - works
HTTP/1.1 - fails with an empty response body

See #1711.

12 years agotest: add 'no response headers' http parser test
Ben Noordhuis [Thu, 17 Nov 2011 12:36:29 +0000 (13:36 +0100)]
test: add 'no response headers' http parser test

12 years agodocs: clarify addon docs
Artur Adib [Wed, 9 Nov 2011 02:13:59 +0000 (21:13 -0500)]
docs: clarify addon docs

12 years agoWindows: make Buffer and ObjectWrap available to compiled extensions
Bert Belder [Wed, 16 Nov 2011 23:54:42 +0000 (00:54 +0100)]
Windows: make Buffer and ObjectWrap available to compiled extensions

Closes GH-2036

12 years agoFix strange vcbuild "label not found" error
Bert Belder [Wed, 16 Nov 2011 23:10:14 +0000 (00:10 +0100)]
Fix strange vcbuild "label not found" error

12 years agotls: make cipher list configurable
Ben Noordhuis [Wed, 16 Nov 2011 22:54:43 +0000 (23:54 +0100)]
tls: make cipher list configurable

options.ciphers existed but didn't work, the cipher list was effectively
hard-coded to RC4-SHA:AES128-SHA:AES256-SHA.

Fixes #2066.

12 years agoWorking on v0.7.0
Ryan Dahl [Wed, 16 Nov 2011 21:38:04 +0000 (13:38 -0800)]
Working on v0.7.0

12 years agoMerge remote branch 'origin/v0.6'
Ryan Dahl [Wed, 16 Nov 2011 21:37:20 +0000 (13:37 -0800)]
Merge remote branch 'origin/v0.6'

12 years agoUpgrade libuv to 2007eb8
Ryan Dahl [Wed, 16 Nov 2011 21:05:35 +0000 (13:05 -0800)]
Upgrade libuv to 2007eb8

12 years agobuffer: fix minimum values for writeInt*() functions
Łukasz Walukiewicz [Wed, 16 Nov 2011 12:38:09 +0000 (13:38 +0100)]
buffer: fix minimum values for writeInt*() functions

12 years agobuffer: fix minimum values for writeInt*() functions
Łukasz Walukiewicz [Wed, 16 Nov 2011 12:38:09 +0000 (13:38 +0100)]
buffer: fix minimum values for writeInt*() functions

12 years agocrypto: fix 'var may be used uninitialized' compiler warnings
Ben Noordhuis [Tue, 15 Nov 2011 21:56:11 +0000 (22:56 +0100)]
crypto: fix 'var may be used uninitialized' compiler warnings

12 years agobuild: auto-run tools/gyp_node after ./configure
Ben Noordhuis [Tue, 15 Nov 2011 16:17:05 +0000 (17:17 +0100)]
build: auto-run tools/gyp_node after ./configure

12 years agoRemove SCONS deprecate WAF
Ryan Dahl [Tue, 15 Nov 2011 03:02:44 +0000 (19:02 -0800)]
Remove SCONS deprecate WAF

We keep around WAF for node-waf only.

We need great diligence by people over the next couple weeks to work out all
the kinks in the GYP build system. We realize that it is currently several
times slower than the WAF build. Please lend a hand.

Fixes #1504
Fixes #1500

12 years agoUpgrade V8 to 3.6.6.8
Ryan Dahl [Tue, 15 Nov 2011 01:17:23 +0000 (17:17 -0800)]
Upgrade V8 to 3.6.6.8

12 years agoRemove str.format to support python2.5.
Ryan Dahl [Mon, 14 Nov 2011 20:03:23 +0000 (12:03 -0800)]
Remove str.format to support python2.5.

Fixes #2077
Fixes #2108

Thanks to David Keegan for debugging and the patch.

12 years ago"Trailer" header should mention "Content-MD5" trailer name in this example.
Trent Mick [Mon, 14 Nov 2011 18:58:58 +0000 (10:58 -0800)]
"Trailer" header should mention "Content-MD5" trailer name in this example.

Fixes #2107

12 years agotest for REPL .save and .load and documentation updates
seebees [Sun, 13 Nov 2011 01:57:42 +0000 (17:57 -0800)]
test for REPL .save and .load and documentation updates

12 years agopunycode: Update to v0.1.1.
Mathias Bynens [Sun, 13 Nov 2011 09:39:24 +0000 (10:39 +0100)]
punycode: Update to v0.1.1.

12 years ago.load, .save and local scope tab completion
seebees [Sat, 12 Nov 2011 01:44:39 +0000 (17:44 -0800)]
.load, .save and local scope tab completion

Fixes #2063.

REPLServer.prototype.resetContext:
Reset the line cache

REPLServer.prototype.memory (don't know if I like that name, called from finish)
pushes what cmd's have been executed against it into this.lines
pushes the "tab depth" for bufferedCommands, in this.lines.level

REPLServer.prototype.displayPrompt:
Uses "tab depth" from this.lines.level to adjust the prompt to visually
denote this depth e.g.
> asdf = function () {
… var inner = {
….. one:1

REPLServer.prototype.complete:
Now notices if there is a bufferedCommand and attempts determine locally
scoped variables by removing any functions from this.lines and evaling these
lines in a nested REPL e.g.
> asdf = function () {
… var inner = { one: 1};
… inn\t
will complete to 'inner' and inner.o\t will complete to 'inner.one'
If the nested REPL still has a bufferedCommand it will falls back to the
default.

ArrayStream is a helper class for the nested REPL to get commands pushed to it.
new REPLServer('', new ArrayStream());

Finally added two new REPL commands .save and .load, each takes 1 parameter,
a file and attempts to save or load the file to or from the REPL
respectively.

12 years agoTab Compete test for node REPL
seebees [Sat, 12 Nov 2011 01:24:47 +0000 (17:24 -0800)]
Tab Compete test for node REPL

Currently the REPL only tab completes for globally scoped variables

12 years agotimers: remember extra setTimeout() arguments when timeout==0
Ben Noordhuis [Sat, 12 Nov 2011 12:31:26 +0000 (13:31 +0100)]
timers: remember extra setTimeout() arguments when timeout==0

Fixes #2079.

12 years agoNow working on v0.6.2
Ryan Dahl [Fri, 11 Nov 2011 23:35:10 +0000 (15:35 -0800)]
Now working on v0.6.2

12 years agoBump version to v0.6.1 v0.6.1
Ryan Dahl [Fri, 11 Nov 2011 21:39:40 +0000 (13:39 -0800)]
Bump version to v0.6.1

12 years agoAdd 'make dist-upload'
Ryan Dahl [Fri, 11 Nov 2011 22:31:15 +0000 (14:31 -0800)]
Add 'make dist-upload'

12 years agoBe consistent with v before version in packages
Ryan Dahl [Fri, 11 Nov 2011 22:02:42 +0000 (14:02 -0800)]
Be consistent with v before version in packages

12 years agomsi changes
Igor Zinkovsky [Fri, 11 Nov 2011 20:40:47 +0000 (12:40 -0800)]
msi changes

- remove license from MSI
- adjust path on install
- add message to the end

12 years agoAdd upload command to vcbuild.bat
Ryan Dahl [Fri, 11 Nov 2011 20:38:55 +0000 (12:38 -0800)]
Add upload command to vcbuild.bat

12 years agoSimplify and move getnodeversion.py
Ryan Dahl [Fri, 11 Nov 2011 20:08:24 +0000 (12:08 -0800)]
Simplify and move getnodeversion.py

12 years agodebugger: correctly handle source with multi-byte characters
Shigeki Ohtsu [Fri, 11 Nov 2011 06:37:34 +0000 (15:37 +0900)]
debugger: correctly handle source with multi-byte characters

12 years agoFixes #2073. Cluster should be silent.
Ryan Dahl [Fri, 11 Nov 2011 17:18:31 +0000 (09:18 -0800)]
Fixes #2073. Cluster should be silent.