platform/upstream/nodejs.git
12 years agofs: fix typo in function names
Ben Noordhuis [Thu, 1 Dec 2011 21:24:40 +0000 (22:24 +0100)]
fs: fix typo in function names

The build was not affected: the typos were in macros that only come into effect
when _LARGEFILE_SOURCE is not defined - which is never.

12 years agoRemove duplicate npmrc file
isaacs [Thu, 1 Dec 2011 20:23:43 +0000 (12:23 -0800)]
Remove duplicate npmrc file

12 years agonpm msi changes
Igor Zinkovsky [Thu, 1 Dec 2011 07:53:35 +0000 (23:53 -0800)]
npm msi changes

12 years agoRe #2207 Add default npmrc for MSI install
isaacs [Thu, 1 Dec 2011 18:49:07 +0000 (10:49 -0800)]
Re #2207 Add default npmrc for MSI install

12 years agonpm 1.1.0-alpha-5
isaacs [Thu, 1 Dec 2011 00:45:26 +0000 (16:45 -0800)]
npm 1.1.0-alpha-5

Fix #2186
First part of #2207

12 years agoRevert "build: compile with -D__DARWIN_64_BIT_INO_T on OS X"
Ben Noordhuis [Thu, 1 Dec 2011 20:00:46 +0000 (21:00 +0100)]
Revert "build: compile with -D__DARWIN_64_BIT_INO_T on OS X"

This reverts commit f004d5aeac0a91a1731575d3ac9a80d710a1f48a.

__DARWIN_64_BIT_INO_T is a no-op in most cases and might be actively harmful in
some others.

12 years agocli: add -p switch, print result of --eval
Ben Noordhuis [Thu, 1 Dec 2011 16:21:00 +0000 (17:21 +0100)]
cli: add -p switch, print result of --eval

12 years agonet: don't emit 'close' event twice
Ben Noordhuis [Thu, 1 Dec 2011 13:51:53 +0000 (14:51 +0100)]
net: don't emit 'close' event twice

Don't allow `socket.destroy()` to run twice. The self-destruct sequence itself
is idempotent but it makes the 'close' and 'error' events fire more than once,
which may confuse listeners.

Fixes #2223.

12 years agobuild: add --without-npm flag to configure script
Ben Noordhuis [Wed, 30 Nov 2011 14:49:42 +0000 (15:49 +0100)]
build: add --without-npm flag to configure script

Fixes #2200.

12 years agoDocs template: HTML cleanup
Mathias Bynens [Wed, 30 Nov 2011 08:54:20 +0000 (09:54 +0100)]
Docs template: HTML cleanup

Remove references to `/favicon.ico` as it’s the default in all browsers. More
info: http://mathiasbynens.be/notes/rel-shortcut-icon

`type=text/css` and `media=all` are the implied defaults for `<link
rel=stylesheet>` (and `<style>`), so omit these attributes.

Similarly, `type=text/javascript` is the default for `<script>` elements, so
omit these attributes.

12 years agopunycode: Update to v0.2.1
Mathias Bynens [Wed, 30 Nov 2011 08:44:00 +0000 (09:44 +0100)]
punycode: Update to v0.2.1

12 years agoutil: ensure that the .inspect function isn't the one being executed
Nathan Rajlich [Wed, 30 Nov 2011 02:21:10 +0000 (18:21 -0800)]
util: ensure that the .inspect function isn't the one being executed

Fixes #2225.

12 years agofixed problem with rss memory reporting incorrect number over 4 gigs
Russ Bradberry [Tue, 29 Nov 2011 22:28:22 +0000 (17:28 -0500)]
fixed problem with rss memory reporting incorrect number over 4 gigs

12 years agonode_crypto: use EVP_Cipher*_ex methods, not 'obsolete' versions
Ingmar Runge [Thu, 3 Nov 2011 04:15:09 +0000 (05:15 +0100)]
node_crypto: use EVP_Cipher*_ex methods, not 'obsolete' versions

This also fixes an issue that made blowfish's ECB mode unusable.

12 years agosys: print stack trace if NODE_DEBUG=sys
Ben Noordhuis [Tue, 29 Nov 2011 18:21:41 +0000 (19:21 +0100)]
sys: print stack trace if NODE_DEBUG=sys

12 years agoUpgrade libuv to fce90652ed38ab0925131ed141972354a494933b
Bert Belder [Tue, 29 Nov 2011 11:45:39 +0000 (12:45 +0100)]
Upgrade libuv to fce90652ed38ab0925131ed141972354a494933b

12 years agoOutgoingMessage.prototype.write does not take Array
seebees [Mon, 28 Nov 2011 17:36:54 +0000 (09:36 -0800)]
OutgoingMessage.prototype.write does not take Array

Changed the type checking for OutgoingMessage.prototype.write so it only accepts string and Buffer.

And test.
Fixes #2162
Fixes #2208

12 years agodoc: add note about NODE_MODULE module_name requirement
Roman Shtylman [Mon, 28 Nov 2011 19:44:23 +0000 (14:44 -0500)]
doc: add note about NODE_MODULE module_name requirement

module_name needs to match the final binary name

12 years agochild_process: fix order of args to errnoException()
Thomas Shinnick [Mon, 28 Nov 2011 19:30:48 +0000 (13:30 -0600)]
child_process: fix order of args to errnoException()

12 years agodocs: add rel="canonical" link to latest API docs
Ben Noordhuis [Mon, 28 Nov 2011 13:13:55 +0000 (14:13 +0100)]
docs: add rel="canonical" link to latest API docs

12 years agomodules: fix error message for native add-ons without entry points
Ben Noordhuis [Sun, 27 Nov 2011 21:38:54 +0000 (22:38 +0100)]
modules: fix error message for native add-ons without entry points

Trying to load an add-on without "init" or "modname_module" symbols would raise
an "Out of memory" exception. Let's improve that error message.

12 years agoRemove npm's .gitignore, add generated docs
isaacs [Sat, 26 Nov 2011 17:21:03 +0000 (09:21 -0800)]
Remove npm's .gitignore, add generated docs

12 years agodocs: fix favicon
Tim Oxley [Sat, 26 Nov 2011 13:23:06 +0000 (23:23 +1000)]
docs: fix favicon

12 years agotls: fix https with fs.openReadStream hangs
koichik [Sat, 26 Nov 2011 15:43:57 +0000 (00:43 +0900)]
tls: fix https with fs.openReadStream hangs

Fixes #2185.
Fixes #2198.

12 years agotest: update an expired certificate
koichik [Sat, 26 Nov 2011 17:05:24 +0000 (02:05 +0900)]
test: update an expired certificate

12 years agodocs: fix typo
kyle@dontkry.com [Sat, 26 Nov 2011 02:26:11 +0000 (18:26 -0800)]
docs: fix typo

Fixes #2193.

12 years agoNow working on v0.6.4
Bert Belder [Fri, 25 Nov 2011 11:43:44 +0000 (12:43 +0100)]
Now working on v0.6.4

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 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 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 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 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 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 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 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 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 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 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 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 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 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.

12 years agotest: add more punycode tests
Ben Noordhuis [Fri, 11 Nov 2011 10:33:12 +0000 (11:33 +0100)]
test: add more punycode tests