platform/upstream/nodejs.git
13 years agoDocument error in console.timeEnd
koichik [Wed, 13 Jul 2011 15:10:17 +0000 (00:10 +0900)]
Document error in console.timeEnd

Fixes #1109.

13 years agoadded explanation of `exports`
AJ ONeal [Thu, 19 May 2011 19:49:29 +0000 (12:49 -0700)]
added explanation of `exports`

Fixes #1075.

13 years agoDoc improvements
koichik [Sat, 9 Jul 2011 17:04:56 +0000 (02:04 +0900)]
Doc improvements

Fixes #297.

13 years agoUpdate favicon
Ryan Dahl [Mon, 11 Jul 2011 19:24:49 +0000 (12:24 -0700)]
Update favicon

13 years agoFix wallpaper links
Ryan Dahl [Mon, 11 Jul 2011 15:48:02 +0000 (08:48 -0700)]
Fix wallpaper links

13 years agologo update
Ryan Dahl [Mon, 11 Jul 2011 15:29:25 +0000 (08:29 -0700)]
logo update

13 years agoDoc improvements. Explained the flags of fs.open().
koichik [Sat, 9 Jul 2011 07:59:35 +0000 (16:59 +0900)]
Doc improvements. Explained the flags of fs.open().

Fixes #1268.

13 years agoDoc improvements
koichik [Sat, 11 Jun 2011 13:09:40 +0000 (22:09 +0900)]
Doc improvements

moved 'continue' event from http.Agent to http.ClientRequest.
added 'close' event to http.ClientResponse.
added 'open' event to fs.ReadStream.

Fixes #1169.

13 years agodocs for chown/chmod
isaacs [Sat, 2 Apr 2011 00:46:18 +0000 (17:46 -0700)]
docs for chown/chmod

13 years agoRevert 3e2a2a7. Always send a HTTP/1.1 status line to the client.
Ben Noordhuis [Tue, 5 Jul 2011 19:54:06 +0000 (21:54 +0200)]
Revert 3e2a2a7. Always send a HTTP/1.1 status line to the client.

13 years agoBring back execScript
Ryan Dahl [Wed, 6 Jul 2011 23:52:14 +0000 (16:52 -0700)]
Bring back execScript

Undoing
http://codereview.chromium.org/7060008
https://groups.google.com/forum/#!topic/v8-dev/JTRHrPHFBts

13 years agofix an broken question.
Yoshihiro Kikuchi [Tue, 5 Jul 2011 08:32:23 +0000 (17:32 +0900)]
fix an broken question.

Fixes #1274.

13 years agoTypo: stout -> stdout
Alex Xu [Sat, 2 Apr 2011 14:43:55 +0000 (10:43 -0400)]
Typo: stout -> stdout

Closes #874

13 years agoTest cases for #1234: don't send HTTP/1.1 responses to HTTP/1.0 clients.
Ben Noordhuis [Wed, 29 Jun 2011 19:14:02 +0000 (21:14 +0200)]
Test cases for #1234: don't send HTTP/1.1 responses to HTTP/1.0 clients.

13 years agoDon't send a HTTP/1.1 status line to HTTP/1.0 clients.
Ben Noordhuis [Wed, 29 Jun 2011 18:24:16 +0000 (20:24 +0200)]
Don't send a HTTP/1.1 status line to HTTP/1.0 clients.

Fixes #1234.

13 years agoClean up temporary file on exit.
Ben Noordhuis [Mon, 4 Jul 2011 23:06:39 +0000 (01:06 +0200)]
Clean up temporary file on exit.

Unbreaks test/simple/test-http-get-pipeline-problem.js,
it assumed a fixed number of files in the tmp directory.

13 years agoFix a misnamed argument; multicastAddress -> multicastInterface. Closes #1237.
Joe Shaw [Mon, 27 Jun 2011 17:25:05 +0000 (13:25 -0400)]
Fix a misnamed argument; multicastAddress -> multicastInterface. Closes #1237.

13 years agoFixed a typo in a comment: "realpatch" -> "realpath"
Jörn Horstmann [Wed, 11 May 2011 09:33:16 +0000 (02:33 -0700)]
Fixed a typo in a comment: "realpatch" -> "realpath"

13 years agoAdding missing v8 namespace to NODE_PSYMBOL
Mariano Iglesias [Fri, 11 Mar 2011 10:09:05 +0000 (07:09 -0300)]
Adding missing v8 namespace to NODE_PSYMBOL

13 years agoFix issue 915 (Failed to find kqueue on FreeBSD) with the relevant portion of a patch...
Brett Kiefer [Wed, 15 Jun 2011 15:07:23 +0000 (11:07 -0400)]
Fix issue 915 (Failed to find kqueue on FreeBSD) with the relevant portion of a patch submitted to node.js dev (groups.google.com/group/nodejs-dev/browse_thread/thread/3aaf7fe2ca390fdc) by Davie Siegel. The issue is that event.h requires types.h on FreeBSD. This rearranges some of the logic but looks like it should still be valid for Darwin.

13 years agoFix doctool uses RegExp object as a Function
koichik [Sun, 3 Jul 2011 07:46:24 +0000 (16:46 +0900)]
Fix doctool uses RegExp object as a Function

RegExp object is no longer Function.
http://code.google.com/p/v8/issues/detail?id=617

Fixes #1262.

13 years agoRemove duplicate section in modules.markdown
koichik [Sun, 3 Jul 2011 07:56:38 +0000 (16:56 +0900)]
Remove duplicate section in modules.markdown

Fixes #1263

13 years agoFixes #877. Don't wait for socket pool to establish connections.
Ryan Dahl [Fri, 1 Jul 2011 22:49:39 +0000 (15:49 -0700)]
Fixes #877. Don't wait for socket pool to establish connections.

Thanks to Yann Biancheri for putting together an initial test.

13 years agoRevert "debugger: don't allow users to input non-valid commands"
Ryan Dahl [Fri, 1 Jul 2011 22:38:53 +0000 (15:38 -0700)]
Revert "debugger: don't allow users to input non-valid commands"

breaks 'print' command

This reverts commit 37d529f818aacd1146b1d927b3251bbefcea389f.

13 years agotiny fixes in tty_posix.js
Yoshihiro KIKUCHI [Thu, 30 Jun 2011 13:20:23 +0000 (22:20 +0900)]
tiny fixes in tty_posix.js

Close #1158
Close #1160
Close #1252

13 years agoNow working on v0.4.10
Ryan Dahl [Wed, 29 Jun 2011 12:44:38 +0000 (14:44 +0200)]
Now working on v0.4.10

13 years agoBump to v0.4.9 v0.4.9
Ryan Dahl [Wed, 29 Jun 2011 11:24:02 +0000 (13:24 +0200)]
Bump to v0.4.9

13 years agoMerge branch 'v8-3.1' into v0.4
Ryan Dahl [Wed, 29 Jun 2011 10:49:37 +0000 (12:49 +0200)]
Merge branch 'v8-3.1' into v0.4

13 years agoUpgrade V8 to 3.1.8.25
Ryan Dahl [Wed, 29 Jun 2011 10:49:17 +0000 (12:49 +0200)]
Upgrade V8 to 3.1.8.25

13 years agoFix -e/--eval can't load module from node_modules
koichik [Fri, 17 Jun 2011 16:11:43 +0000 (01:11 +0900)]
Fix -e/--eval can't load module from node_modules

With -e or --eval, require() can load module using relative path.

    node -e 'require("./foo")'

But it can't load module from node_modules directory.

    node -e 'require("foo")'

Fixes #1196.

13 years agoFixes #1187. Support multiple 'link' headers
Ryan Dahl [Mon, 20 Jun 2011 10:50:58 +0000 (12:50 +0200)]
Fixes #1187. Support multiple 'link' headers

13 years agoFixes #1203. Add missing scope.Close to fs.sendfileSync
Ryan Dahl [Mon, 20 Jun 2011 10:48:38 +0000 (12:48 +0200)]
Fixes #1203. Add missing scope.Close to fs.sendfileSync

13 years agoCleanup crypto verify to not print unnecessary errors
Mark Cavage [Wed, 15 Jun 2011 17:47:25 +0000 (10:47 -0700)]
Cleanup crypto verify to not print unnecessary errors

13 years agoCloses #1177 remove one node_modules optimization
Mathias Buus [Mon, 13 Jun 2011 22:42:06 +0000 (00:42 +0200)]
Closes #1177 remove one node_modules optimization

to better support certain project structures.

13 years agoSupport for signature verification with RSA/DSA public keys
Mark Cavage [Thu, 9 Jun 2011 01:20:17 +0000 (18:20 -0700)]
Support for signature verification with RSA/DSA public keys

Fixes #1166.

13 years agoDocumenting `require.main`, fixing #997
Trevor Burnham [Sun, 1 May 2011 18:03:08 +0000 (14:03 -0400)]
Documenting `require.main`, fixing #997

13 years agoMassage util.inherits for perf increase
Ryan Dahl [Sat, 11 Jun 2011 06:51:48 +0000 (08:51 +0200)]
Massage util.inherits for perf increase

13 years agodebugger: don't allow users to input non-valid commands
Siddharth Mahendraker [Thu, 2 Jun 2011 20:08:18 +0000 (23:08 +0300)]
debugger: don't allow users to input non-valid commands

Fixes #1144.

13 years agoDisabling SSL compression is dependent on OpenSSL version 0.9.8
Ryan Dahl [Fri, 3 Jun 2011 12:38:55 +0000 (14:38 +0200)]
Disabling SSL compression is dependent on OpenSSL version 0.9.8

Fixes #1087.

13 years agoUpgrade http-parser to eee60127c0df551be085cc8e7983e36d7700d885
Ryan Dahl [Fri, 3 Jun 2011 12:12:14 +0000 (14:12 +0200)]
Upgrade http-parser to eee60127c0df551be085cc8e7983e36d7700d885

13 years agoDoc improvements
Ryan Dahl [Fri, 3 Jun 2011 11:19:06 +0000 (13:19 +0200)]
Doc improvements

Fixes #1147.
Fixes #1139.
Fixes #1126.
Thanks ctide, kext, disfated.

13 years agoOption to disable SSL v2
Jérémy Lal [Fri, 3 Jun 2011 06:35:11 +0000 (08:35 +0200)]
Option to disable SSL v2

Fixes #880

13 years agodocument require.cache
Ryan Dahl [Fri, 3 Jun 2011 06:14:35 +0000 (08:14 +0200)]
document require.cache

13 years agoClose #562 Close #1078 Parse file:// urls properly
Ryan Petrello [Fri, 20 May 2011 04:50:35 +0000 (00:50 -0400)]
Close #562 Close #1078 Parse file:// urls properly

The file:// protocol *always* has a hostname; it's frequently
abbreviated as an empty string, which represents 'localhost'
implicitly.

According to RFC 1738 (http://tools.ietf.org/html/rfc1738):

A file URL takes the form:

   file://<host>/<path>

where <host> is the fully qualified domain name of the system on
which the <path> is accessible...

As a special case, <host> can be the string "localhost" or the empty
string; this is interpreted as 'the machine from which the URL is
being interpreted'.

13 years agoFix resource leaks in node_crypto.cc
Ben Noordhuis [Mon, 23 May 2011 11:10:00 +0000 (13:10 +0200)]
Fix resource leaks in node_crypto.cc

Fixes #1097.

13 years agoCrypto documentation fixes
Brian White [Wed, 25 May 2011 04:26:57 +0000 (21:26 -0700)]
Crypto documentation fixes

Fixes #1104.

13 years agoFix error handling bug in stream.pipe()
Felix Geisendörfer [Mon, 23 May 2011 09:02:53 +0000 (11:02 +0200)]
Fix error handling bug in stream.pipe()

Problem: Since stream.pipe() is registering it's own error handlers on
the source and destination stream, it needs to replicate the
EventEmitter 'error' emitting semantics of throwing an error if there
are no other listeners. However, there was a off-by-one error because
the check for remaining listeners was done after cleanup() which means
the pipe's own listener was no longer included.

This would cause 'error' events on either the dest or the source to
throw if there was one other error listener, and while swallowing
the 'error' event if there was no other listener.

Solution: I added a test demonstrating the two issues and fixed the
problem by correcting the off-by-one error.

Fixes #1095.

13 years agoFix incorrect documentation for assert.fail()
Brian White [Tue, 24 May 2011 05:40:09 +0000 (22:40 -0700)]
Fix incorrect documentation for assert.fail()

Fixes #1100.

13 years agoNow working on v0.4.9
Ryan Dahl [Sat, 21 May 2011 07:10:23 +0000 (00:10 -0700)]
Now working on v0.4.9

13 years agoBump to v0.4.8 v0.4.8
Ryan Dahl [Sat, 21 May 2011 02:40:06 +0000 (19:40 -0700)]
Bump to v0.4.8

13 years agoMerge branch 'v8-3.1' into v0.4
Ryan Dahl [Sat, 21 May 2011 02:25:30 +0000 (19:25 -0700)]
Merge branch 'v8-3.1' into v0.4

13 years agoUpgrade V8 to 3.1.8.16
Ryan Dahl [Sat, 21 May 2011 02:24:37 +0000 (19:24 -0700)]
Upgrade V8 to 3.1.8.16

13 years agoFix TJ's assert error
Ryan Dahl [Fri, 20 May 2011 22:39:48 +0000 (15:39 -0700)]
Fix TJ's assert error

Unable to reproduce but connect's "make test TESTS=test/static.test.js" does
it occasionally.

13 years agoAdditional docs for net.listenFD()
Mark Cavage [Fri, 20 May 2011 21:38:49 +0000 (14:38 -0700)]
Additional docs for net.listenFD()

Fixes #1080.

13 years agoCryptoStream.prototype.readyState shoudn't reference fd
Ryan Dahl [Fri, 20 May 2011 17:08:08 +0000 (10:08 -0700)]
CryptoStream.prototype.readyState shoudn't reference fd

Fixes #1069

13 years agoRemove unused variable
Brian White [Thu, 19 May 2011 22:09:10 +0000 (15:09 -0700)]
Remove unused variable

Fixes #1077

13 years agoAdd test for agent upgrade and example in docs
David Trejo [Thu, 19 May 2011 23:50:12 +0000 (16:50 -0700)]
Add test for agent upgrade and example in docs

13 years ago(char *) casting for all strings args to kstat function to avoid warnings
Alexandre Marangone [Thu, 19 May 2011 19:20:08 +0000 (21:20 +0200)]
(char *) casting for all strings args to kstat function to avoid warnings

Fixes #1071.

13 years agoAdding os.totalmem() and os.freemem() for SunOS
Alexandre Marangone [Thu, 19 May 2011 19:15:12 +0000 (21:15 +0200)]
Adding os.totalmem() and os.freemem() for SunOS

13 years agoShare SSL context between server connections
Fedor Indutny [Thu, 19 May 2011 19:42:13 +0000 (02:42 +0700)]
Share SSL context between server connections

Fixes #1073.

13 years agoFix buffer test
Ryan Dahl [Thu, 19 May 2011 19:41:17 +0000 (12:41 -0700)]
Fix buffer test

13 years agomakeFastBuffer should not segfault but rather throw on non-buffer
Ryan Dahl [Thu, 19 May 2011 19:13:48 +0000 (12:13 -0700)]
makeFastBuffer should not segfault but rather throw on non-buffer

13 years agoreadline docs
David Trejo [Thu, 19 May 2011 01:39:06 +0000 (18:39 -0700)]
readline docs

13 years agoChanges for job bullets
Ryan Dahl [Tue, 17 May 2011 20:22:34 +0000 (13:22 -0700)]
Changes for job bullets

13 years agoRemove 'binary' encoding assert - add tests
Ryan Dahl [Mon, 16 May 2011 22:00:33 +0000 (15:00 -0700)]
Remove 'binary' encoding assert - add tests

Don't write large characters to buffers with binary encoding. You will be
silently injured.

13 years agoClose #1054 More clear documentation for module system
isaacs [Mon, 16 May 2011 11:56:40 +0000 (04:56 -0700)]
Close #1054 More clear documentation for module system

13 years agoDisable compression with OpenSSL.
Ryan Dahl [Fri, 1 Apr 2011 02:27:28 +0000 (19:27 -0700)]
Disable compression with OpenSSL.

This improves memory and speed. Users may apply compression in "userland"
above the CryptoStream layer if they desire.

13 years agoFix dns.resolve() with 'PTR' throws Error: Unknown type "PTR"
koichik [Thu, 12 May 2011 04:43:24 +0000 (13:43 +0900)]
Fix dns.resolve() with 'PTR' throws Error: Unknown type "PTR"

Fixes #1038

13 years agoFix event listener leak check timing
koichik [Thu, 12 May 2011 06:18:21 +0000 (15:18 +0900)]
Fix event listener leak check timing

Fixes #1041.

13 years agoFix doc - missing dns.resolveNs() and dns.resolveCname()
koichik [Thu, 12 May 2011 04:49:26 +0000 (13:49 +0900)]
Fix doc - missing dns.resolveNs() and dns.resolveCname()

Fixes #1039.

13 years agoUpdate http.ServerRequest docs
Felix Geisendörfer [Sat, 14 May 2011 14:06:32 +0000 (16:06 +0200)]
Update http.ServerRequest docs

The documentation for 'end' was wrong, and 'close' now has an `err`
parameter.

13 years agoError argument for http.ServerRequest 'close'
Felix Geisendörfer [Sat, 14 May 2011 13:58:41 +0000 (15:58 +0200)]
Error argument for http.ServerRequest 'close'

Problem: It was not possible to detect the reason for a premature
connection termination in http requests.

This patch provides a new `err` argument to the 'close' event which
can be inspected to differentiate between a timeout and a client
actively terminating the connection.

Also contains tests for this new behavior for http and https.

13 years agoMake https 'timeout' events bubble up
Felix Geisendörfer [Sat, 14 May 2011 19:17:13 +0000 (21:17 +0200)]
Make https 'timeout' events bubble up

Also adds a test case for it.

13 years agoAdd trademark stuff to homepage
Ryan Dahl [Wed, 11 May 2011 20:40:42 +0000 (13:40 -0700)]
Add trademark stuff to homepage

13 years agoFix a url regression
isaacs [Tue, 10 May 2011 20:42:49 +0000 (13:42 -0700)]
Fix a url regression

The change for #954 introduced a regression that would cause
the url parser to fail on special chars found in the auth
segment.  Fix that, and also don't create invalid urls when
format() is called on an object containing an auth member
containing '@' characters or delimiters.

13 years agoDocs: server.pause() server.address() socket.address()
Ryan Dahl [Mon, 9 May 2011 17:49:20 +0000 (10:49 -0700)]
Docs: server.pause() server.address() socket.address()

13 years agoDocumenting `require.main`, fixing #997
Trevor Burnham [Sun, 1 May 2011 18:03:08 +0000 (14:03 -0400)]
Documenting `require.main`, fixing #997

13 years agoAgent socket errors bubble up to req only if req exists
Ryan Dahl [Sat, 7 May 2011 19:30:53 +0000 (12:30 -0700)]
Agent socket errors bubble up to req only if req exists

Fixes #836.

13 years agoAttempt to connect to debug process more than once
Marcel Laverdet [Tue, 3 May 2011 21:51:15 +0000 (06:51 +0900)]
Attempt to connect to debug process more than once

The debugger would give up after only 100ms but on my system this
timeout isn't enough. The startup process is now modified to try 6
times every 50ms instead.

Fixes #1010.

13 years agoPoint changelog to correct branch
Ryan Dahl [Fri, 6 May 2011 23:05:02 +0000 (16:05 -0700)]
Point changelog to correct branch

Fixes #1002. Thanks cjavapro.

13 years agoTLS: simplify logic
Ryan Dahl [Fri, 6 May 2011 23:48:44 +0000 (16:48 -0700)]
TLS: simplify logic

13 years agoFix crash in debugger
Ryan Dahl [Thu, 5 May 2011 23:52:05 +0000 (16:52 -0700)]
Fix crash in debugger

13 years agoAdd on('error') to http request example
Ryan Dahl [Thu, 5 May 2011 22:40:45 +0000 (15:40 -0700)]
Add on('error') to http request example

for indexzero

13 years agoAssert, Debug output in normal default build
Ryan Dahl [Thu, 5 May 2011 04:41:01 +0000 (21:41 -0700)]
Assert, Debug output in normal default build

13 years agocleartextstream.destroy() should destroy socket.
Ryan Dahl [Mon, 2 May 2011 19:13:06 +0000 (12:13 -0700)]
cleartextstream.destroy() should destroy socket.

This fixes a critical bug see in MJR's production. Very difficult to build a
test case. Sometimes HTTPS server gets sockets that are hanging in a
half-duplex state.

13 years agoRemove oprofile flags in wscript.
Ben Noordhuis [Sun, 1 May 2011 14:34:05 +0000 (16:34 +0200)]
Remove oprofile flags in wscript.

V8 3.1.5 (commit 550f73a) dropped oprofile support so don't pass
prof=oprofile to scons.

See http://codereview.chromium.org/6474037/

Fixes #998.

13 years agoMerge branch 'v8-3.1' into v0.4
Ryan Dahl [Sat, 30 Apr 2011 18:38:55 +0000 (11:38 -0700)]
Merge branch 'v8-3.1' into v0.4

13 years agoUpgrade V8 to 3.1.8.14
Ryan Dahl [Sat, 30 Apr 2011 18:38:25 +0000 (11:38 -0700)]
Upgrade V8 to 3.1.8.14

13 years agoFix SlowBuffer.write() with 'ucs2' throws ReferenceError.
koichik [Thu, 28 Apr 2011 06:38:28 +0000 (15:38 +0900)]
Fix SlowBuffer.write() with 'ucs2' throws ReferenceError.

13 years agoDoc improvements.
koichik [Thu, 28 Apr 2011 07:36:04 +0000 (16:36 +0900)]
Doc improvements.

13 years agoBetter stream.pipe() tracking.
isaacs [Wed, 27 Apr 2011 18:10:10 +0000 (11:10 -0700)]
Better stream.pipe() tracking.

This commit does three things:

1. Uses an exposed counter rather than a hidden array for tracking dest
streams that may have multiple inputs.  This allows for significantly
faster lookups, since the counter can be checked in constant time rather
than searching an array for the dest object.  (A proper O(1) WeakMap
would be better, but that may have to wait for Harmony.)

2. Calls the 'end' event logic when there is an 'error' event on the
source object (and then throws if there are no other error listeners.)
This is important, because otherwise 'error' events would lead to
memory leaks.

3. Clean up the style a bit.  Function Declarations are not allowed
within blocks in ES strict.  Prefer Function Declarations to Function
Expressions, because hoisting allows for more expressive ordering of
logic.

Downside: It adds "_pipeCount" as part of the Stream API.  It'll work
fine if the member is missing, but if anyone tries to use it for some
other purpose, it can mess things up.

13 years agoClose #983 Better JSON.parse error detection
isaacs [Tue, 26 Apr 2011 16:48:28 +0000 (09:48 -0700)]
Close #983 Better JSON.parse error detection

Previous pattern would only catch ILLEGAL, not { or other
known-but-unexpected JSON tokens.

13 years agoClose #962: Fixed typo in vm.runInNewContext docs.
George Miroshnykov [Thu, 21 Apr 2011 11:43:12 +0000 (14:43 +0300)]
Close #962: Fixed typo in vm.runInNewContext docs.

EDIT: Also added another typo fix to this commit. --isaacs

13 years agoClose #974 Properly report traceless errors.
isaacs [Mon, 25 Apr 2011 19:22:18 +0000 (12:22 -0700)]
Close #974 Properly report traceless errors.

Also, tests for the same.

13 years agoA test that running 100 stream pipes in parallel is ok
isaacs [Sat, 23 Apr 2011 02:31:14 +0000 (19:31 -0700)]
A test that running 100 stream pipes in parallel is ok

13 years agoCorrect attribution
Ryan Dahl [Sat, 23 Apr 2011 02:04:43 +0000 (19:04 -0700)]
Correct attribution

13 years agoBump bounds on #897 test - was too small for slow machines
Ryan Dahl [Sat, 23 Apr 2011 00:50:40 +0000 (17:50 -0700)]
Bump bounds on #897 test - was too small for slow machines

13 years agoNow working on v0.4.8
Ryan Dahl [Sat, 23 Apr 2011 00:49:56 +0000 (17:49 -0700)]
Now working on v0.4.8

13 years agobump version to v0.4.7 v0.4.7
Ryan Dahl [Sat, 23 Apr 2011 00:06:02 +0000 (17:06 -0700)]
bump version to v0.4.7

13 years agoFix timeouts with floating point numbers bug
Ryan Dahl [Fri, 22 Apr 2011 23:38:27 +0000 (16:38 -0700)]
Fix timeouts with floating point numbers bug

fixes #897.