platform/upstream/nodejs.git
13 years agoFix pummel/text-exec
Ryan Dahl [Fri, 28 Jan 2011 04:07:28 +0000 (20:07 -0800)]
Fix pummel/text-exec

13 years agoRevert "Use html5 spec stylesheet for docs"
Ryan Dahl [Fri, 28 Jan 2011 03:55:38 +0000 (19:55 -0800)]
Revert "Use html5 spec stylesheet for docs"

This reverts commit 6dbf49110b518b9c8d5d2673a6bd40de501c388e.

13 years agoSimplify website
Ryan Dahl [Fri, 28 Jan 2011 03:47:17 +0000 (19:47 -0800)]
Simplify website

13 years agoAdd test-https-large-response.js
Ryan Dahl [Fri, 28 Jan 2011 03:27:25 +0000 (19:27 -0800)]
Add test-https-large-response.js

13 years agoFix option parsing in tls.connect()
Ryan Dahl [Fri, 28 Jan 2011 03:24:39 +0000 (19:24 -0800)]
Fix option parsing in tls.connect()

13 years agoHelpful error when child_process.exec hit maxBuffer
Ryan Dahl [Fri, 28 Jan 2011 01:45:17 +0000 (17:45 -0800)]
Helpful error when child_process.exec hit maxBuffer

13 years agodebugger: prevent crash when backtrace doesn't come back
Ryan Dahl [Fri, 28 Jan 2011 01:44:42 +0000 (17:44 -0800)]
debugger: prevent crash when backtrace doesn't come back

13 years agoRemove more process.assert
Ryan Dahl [Fri, 28 Jan 2011 01:02:25 +0000 (17:02 -0800)]
Remove more process.assert

13 years agoAnother fix for process.assert
Ryan Dahl [Fri, 28 Jan 2011 00:59:28 +0000 (16:59 -0800)]
Another fix for process.assert

13 years agoFix process.assert problem
Ryan Dahl [Fri, 28 Jan 2011 00:55:49 +0000 (16:55 -0800)]
Fix process.assert problem

Introduced in f9f0e5c75c6a6fa32dd91f242c7463d467f6dcd4

13 years agoPre-process out assert()
Ryan Dahl [Fri, 28 Jan 2011 00:35:35 +0000 (16:35 -0800)]
Pre-process out assert()

13 years agoFix links
Ryan Dahl [Fri, 28 Jan 2011 00:24:02 +0000 (16:24 -0800)]
Fix links

13 years agonewcomer resources in README
David Trejo [Mon, 24 Jan 2011 04:52:37 +0000 (20:52 -0800)]
newcomer resources in README

Closes GH-579.

13 years agoFix style issues with ext_key_usage patch
Greg Hughes [Fri, 28 Jan 2011 00:12:13 +0000 (00:12 +0000)]
Fix style issues with ext_key_usage patch

Closes GH-586.

13 years agoCorrect process.kill doc
Ryan Dahl [Thu, 27 Jan 2011 22:37:43 +0000 (14:37 -0800)]
Correct process.kill doc

Thanks Kevin. Closes GH-518.

13 years agoTypos
Ryan Dahl [Mon, 10 Jan 2011 21:50:46 +0000 (13:50 -0800)]
Typos

Closes GH-557.
Closes GH-539.

13 years agoA few spelling fixes.
Ryan Dahl [Fri, 14 Jan 2011 18:45:01 +0000 (18:45 +0000)]
A few spelling fixes.

Thanks Bjarki. Closes GH-561.

13 years agoFix arg order of fs.linkSync in docs
Ryan Dahl [Thu, 27 Jan 2011 22:20:50 +0000 (14:20 -0800)]
Fix arg order of fs.linkSync in docs

Thanks Pierre. Closes GH-571.

13 years agoAdd ext_key_usage to getPeerCertificate
Greg Hughes [Thu, 27 Jan 2011 00:46:51 +0000 (00:46 +0000)]
Add ext_key_usage to getPeerCertificate

13 years agoA module ID with a trailing slash must be a dir.
isaacs [Thu, 27 Jan 2011 21:14:47 +0000 (13:14 -0800)]
A module ID with a trailing slash must be a dir.

require('./foo/') should not try to load './foo.js'.  It should only
look for ./foo/index.js

Closes GH-588

13 years agoFixing bug in http request default encoding.
Ali Farhadi [Wed, 26 Jan 2011 07:36:45 +0000 (11:06 +0330)]
Fixing bug in http request default encoding.

13 years agoAdding callback parameter to Socket's setTimeout method.
Ali Farhadi [Wed, 26 Jan 2011 08:06:22 +0000 (11:36 +0330)]
Adding callback parameter to Socket's setTimeout method.

13 years agoIncrease timeout on test-repl to 5 seconds
Ryan Dahl [Wed, 26 Jan 2011 01:35:06 +0000 (17:35 -0800)]
Increase timeout on test-repl to 5 seconds

Hopefully wont get failures on buildbot slaves.

13 years agoAdding test for many keep-alive connections
Ali Farhadi [Tue, 25 Jan 2011 16:03:21 +0000 (19:33 +0330)]
Adding test for many keep-alive connections

13 years agodebugger: Don't crash when evaling buffer
Ryan Dahl [Tue, 25 Jan 2011 23:50:12 +0000 (15:50 -0800)]
debugger: Don't crash when evaling buffer

13 years agoRevert "Preprocess out assert()"
Ryan Dahl [Tue, 25 Jan 2011 23:26:19 +0000 (15:26 -0800)]
Revert "Preprocess out assert()"

This reverts commit 8bd7e4fad81bb62cb463831800ddde5059969f6b.

13 years agoFix tests when spaces are in path
Carter Allen [Mon, 27 Dec 2010 00:32:04 +0000 (17:32 -0700)]
Fix tests when spaces are in path

13 years agoPreprocess out assert()
Ryan Dahl [Tue, 25 Jan 2011 20:53:36 +0000 (12:53 -0800)]
Preprocess out assert()

13 years agoUse old http.Client
Ryan Dahl [Tue, 25 Jan 2011 06:27:31 +0000 (22:27 -0800)]
Use old http.Client

This is meant as a path for upgrading to the new http.request() API.
http.Client will be disappearing in the future.

13 years agoFix undefined_reference_in_new_context
Ryan Dahl [Tue, 25 Jan 2011 06:39:59 +0000 (22:39 -0800)]
Fix undefined_reference_in_new_context

13 years agoAdding support for require-like initialization of node,
Daniel Ennis [Tue, 25 Jan 2011 01:52:38 +0000 (20:52 -0500)]
Adding support for require-like initialization of node,

so `node foo`
will load one of:
./foo.js
./foo.node
./foo/index.js
./foo/index.node

Test cases added.
Ensured no conflict with native names.

13 years agoUpgrade V8 to 3.0.10
Ryan Dahl [Tue, 25 Jan 2011 04:55:18 +0000 (20:55 -0800)]
Upgrade V8 to 3.0.10

13 years agoReadline: fixes, more key bindings
Bert Belder [Tue, 25 Jan 2011 02:54:26 +0000 (03:54 +0100)]
Readline: fixes, more key bindings

- Made backward/forward more convenient
- More key bindings that windows users are used to
- Fix delete-word-right
- Duplicate code cleanup

13 years agoSupport pastes and meta-backspace
isaacs [Tue, 25 Jan 2011 00:09:41 +0000 (16:09 -0800)]
Support pastes and meta-backspace

13 years agoFix windows build
Bert Belder [Tue, 25 Jan 2011 02:49:03 +0000 (03:49 +0100)]
Fix windows build

13 years agoLand Cantrill's DTrace patch
Ryan Dahl [Tue, 25 Jan 2011 01:50:10 +0000 (17:50 -0800)]
Land Cantrill's DTrace patch

only works on solaris

13 years agoRestructure src/node.js startup code
Felix Geisendörfer [Mon, 24 Jan 2011 22:15:10 +0000 (23:15 +0100)]
Restructure src/node.js startup code

This patch introduces a logical structure and sequence for the
bootstrap code found src/node.js.

13 years agofs.open should set FD_CLOEXEC
Ryan Dahl [Mon, 24 Jan 2011 19:57:21 +0000 (11:57 -0800)]
fs.open should set FD_CLOEXEC

13 years agolint
Ryan Dahl [Mon, 24 Jan 2011 18:55:30 +0000 (10:55 -0800)]
lint

13 years agoWindows: better net support
Bert Belder [Fri, 21 Jan 2011 02:54:30 +0000 (03:54 +0100)]
Windows: better net support

13 years agoWorkaround for libev handle caching bug on windows
Bert Belder [Mon, 24 Jan 2011 16:26:22 +0000 (17:26 +0100)]
Workaround for libev handle caching bug on windows

The windows socket api uses handles, not fds. Libev caches the handle
associated with an fd, and uses this handle when updating the (also cached)
handle set that goes into select(). When an fd is closed and subsequently
re-used before the event loop returns to libev, libev fails to detect
properly that the handle changed. And even if it does, the cached handle of
the closed socket is overwritten by the new handle, so by the time libev
tries to update the select fdset it has forgotten which handle to remove
from it. This is solved by a simple hook ev_fd_closed that makes it clear
its caches before the fd is re-used.

13 years agowindows compat: undefined_reference_in_new_context test
Ryan Dahl [Sun, 23 Jan 2011 23:32:07 +0000 (15:32 -0800)]
windows compat: undefined_reference_in_new_context test

13 years agoFixing bug in http request's end method.
Ali Farhadi [Sun, 23 Jan 2011 21:43:59 +0000 (01:13 +0330)]
Fixing bug in http request's end method.

13 years agoMove commonjs module system into lib/module.js
Felix Geisendörfer [Sun, 23 Jan 2011 22:40:56 +0000 (23:40 +0100)]
Move commonjs module system into lib/module.js

This de-couples NativeModule from the module system and completes the
main objective of this refactoring.

13 years agoExpose agent in http and https client.
Mikeal Rogers [Sun, 23 Jan 2011 00:09:50 +0000 (16:09 -0800)]
Expose agent in http and https client.

13 years agoNow working on v0.3.7
Ryan Dahl [Sat, 22 Jan 2011 02:26:05 +0000 (18:26 -0800)]
Now working on v0.3.7

13 years agoBump version to v0.3.6 v0.3.6
Ryan Dahl [Sat, 22 Jan 2011 01:57:04 +0000 (17:57 -0800)]
Bump version to v0.3.6

13 years agoAdd https docs to toc
Ryan Dahl [Sat, 22 Jan 2011 02:16:56 +0000 (18:16 -0800)]
Add https docs to toc

13 years agoFix test-http-exceptions
Ryan Dahl [Sat, 22 Jan 2011 01:48:14 +0000 (17:48 -0800)]
Fix test-http-exceptions

Agent: Each time an http req is sent to a socket, _cycle to try to dispatch
another. Problem became apparent in 4612b0 when we wait for connecting
sockets.

13 years agoFix test-http-allow-req-after-204-res
Ryan Dahl [Sat, 22 Jan 2011 01:39:45 +0000 (17:39 -0800)]
Fix test-http-allow-req-after-204-res

Agent queue waits for connecting sockets.

13 years agoAdd test-https-agent
Ryan Dahl [Fri, 21 Jan 2011 23:55:48 +0000 (15:55 -0800)]
Add test-https-agent

13 years agohttp: agent should cycle on close
Ryan Dahl [Fri, 21 Jan 2011 22:53:31 +0000 (14:53 -0800)]
http: agent should cycle on close

13 years agoFix for meta keys in a weird iTerm state.
isaacs [Fri, 21 Jan 2011 18:08:48 +0000 (10:08 -0800)]
Fix for meta keys in a weird iTerm state.

13 years agoWindows line endings. s/\r//g
isaacs [Fri, 21 Jan 2011 00:52:30 +0000 (16:52 -0800)]
Windows line endings. s/\r//g

13 years agoFix meta+character keys on mac
Bert Belder [Thu, 20 Jan 2011 23:47:55 +0000 (00:47 +0100)]
Fix meta+character keys on mac

13 years agoExpose http.getAgent
Ryan Dahl [Fri, 21 Jan 2011 21:47:27 +0000 (13:47 -0800)]
Expose http.getAgent

13 years agoAdd https.get()
Ryan Dahl [Fri, 21 Jan 2011 21:21:01 +0000 (13:21 -0800)]
Add https.get()

13 years agoInitial pass at https client
Ryan Dahl [Fri, 21 Jan 2011 21:12:35 +0000 (13:12 -0800)]
Initial pass at https client

13 years agowaf: display oprofile and gdbjit options for all platforms
Ryan Dahl [Fri, 21 Jan 2011 03:07:15 +0000 (19:07 -0800)]
waf: display oprofile and gdbjit options for all platforms

was breaking mac

13 years agoMerge branch 'http_agent'
Ryan Dahl [Fri, 21 Jan 2011 02:38:13 +0000 (18:38 -0800)]
Merge branch 'http_agent'

13 years agoFix test-http-upload-timeout
Ryan Dahl [Fri, 21 Jan 2011 02:23:50 +0000 (18:23 -0800)]
Fix test-http-upload-timeout

Cannot just close the connection or client will error.

13 years agotest-http-client-reconnect-bug: hang up should be error.
Ryan Dahl [Fri, 21 Jan 2011 02:19:30 +0000 (18:19 -0800)]
test-http-client-reconnect-bug: hang up should be error.

13 years ago...
Ryan Dahl [Fri, 21 Jan 2011 01:55:13 +0000 (17:55 -0800)]
...

13 years agoDocs for new http API
Ryan Dahl [Fri, 21 Jan 2011 01:54:59 +0000 (17:54 -0800)]
Docs for new http API

13 years agohacky work around socket hangups on http requests
Ryan Dahl [Fri, 21 Jan 2011 01:07:44 +0000 (17:07 -0800)]
hacky work around socket hangups on http requests

13 years agoBackport client 'upgrade' events
Ryan Dahl [Fri, 21 Jan 2011 00:25:24 +0000 (16:25 -0800)]
Backport client 'upgrade' events

13 years agoall errors go to req object
Ryan Dahl [Thu, 20 Jan 2011 23:55:02 +0000 (15:55 -0800)]
all errors go to req object

13 years agohttp.Client shims
Ryan Dahl [Thu, 20 Jan 2011 19:21:42 +0000 (11:21 -0800)]
http.Client shims

13 years agoAdd parser to agent
Ryan Dahl [Thu, 20 Jan 2011 18:29:54 +0000 (10:29 -0800)]
Add parser to agent

13 years agofirst pass at http refactor for TLS
Ryan Dahl [Thu, 20 Jan 2011 10:41:16 +0000 (02:41 -0800)]
first pass at http refactor for TLS

13 years agoDisable gdbjit by default
Ryan Dahl [Fri, 21 Jan 2011 02:04:09 +0000 (18:04 -0800)]
Disable gdbjit by default

13 years agoFix memory corruption bug on Windows
Bert Belder [Thu, 20 Jan 2011 00:41:16 +0000 (01:41 +0100)]
Fix memory corruption bug on Windows

13 years agoFix ev_async misuse in node_child_process_win32.cc
Bert Belder [Thu, 20 Jan 2011 00:40:55 +0000 (01:40 +0100)]
Fix ev_async misuse in node_child_process_win32.cc

13 years agoFix an assertion failure in the full code generator.
kmillikin@chromium.org [Wed, 19 Jan 2011 15:26:54 +0000 (15:26 +0000)]
Fix an assertion failure in the full code generator.

We hit an assertion failure when we tried to record the AST ID of
the (shared) .arguments variable proxy more than once.  This was hit
when we had multiple calls to the same parameter in a function that
used the arguments object.  The fix is to not visit the subexpressions
of the (shared) property access expression.

BUG=1060

Review URL: http://codereview.chromium.org/6368007

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@6404 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

13 years agoTransfer data gathering responsibility to readline
Ryan Dahl [Wed, 19 Jan 2011 19:46:14 +0000 (11:46 -0800)]
Transfer data gathering responsibility to readline

Fixes non-raw REPL/Debugger on Posix.

13 years agoFix tab on posix tty
Ryan Dahl [Wed, 19 Jan 2011 19:33:42 +0000 (11:33 -0800)]
Fix tab on posix tty

13 years agowscript: style
Ryan Dahl [Wed, 19 Jan 2011 19:18:12 +0000 (11:18 -0800)]
wscript: style

13 years agoCompile gdbjit in by default on linux
Ryan Dahl [Wed, 19 Jan 2011 19:08:49 +0000 (11:08 -0800)]
Compile gdbjit in by default on linux

13 years agoWorkaround for V8 bug 884
Bert Belder [Tue, 18 Jan 2011 02:57:14 +0000 (03:57 +0100)]
Workaround for V8 bug 884

See http://code.google.com/p/v8/issues/detail?id=884

13 years agoUpgrade V8 to 3.0.9
Ryan Dahl [Wed, 19 Jan 2011 19:06:13 +0000 (11:06 -0800)]
Upgrade V8 to 3.0.9

13 years agoWindows: fix window size getter bug
Bert Belder [Wed, 19 Jan 2011 04:55:02 +0000 (05:55 +0100)]
Windows: fix window size getter bug

13 years agoUpdate TODO.win32
Bert Belder [Wed, 19 Jan 2011 03:14:42 +0000 (04:14 +0100)]
Update TODO.win32

13 years agoReadline: use symbolic key names instead of ascii control codes
Bert Belder [Fri, 14 Jan 2011 02:44:05 +0000 (03:44 +0100)]
Readline: use symbolic key names instead of ascii control codes

13 years agoReadline: use tty methods instead of control sequences
Bert Belder [Wed, 12 Jan 2011 03:13:41 +0000 (04:13 +0100)]
Readline: use tty methods instead of control sequences

13 years agoUse tty.ReadStream and tty.WriteStream for stdio when appropriate
Bert Belder [Mon, 17 Jan 2011 22:28:54 +0000 (23:28 +0100)]
Use tty.ReadStream and tty.WriteStream for stdio when appropriate

13 years agoImplement tty.ReadStream and tty.WriteStream
Bert Belder [Wed, 19 Jan 2011 03:08:07 +0000 (04:08 +0100)]
Implement tty.ReadStream and tty.WriteStream

13 years agoNew stdio functions to aid new readline interface
Bert Belder [Mon, 17 Jan 2011 22:27:14 +0000 (23:27 +0100)]
New stdio functions to aid new readline interface

13 years agoWindows: watcher for tty events
Bert Belder [Tue, 11 Jan 2011 01:11:57 +0000 (02:11 +0100)]
Windows: watcher for tty events

13 years agowscript chooses win32 source files, not cpp
Ryan Dahl [Tue, 18 Jan 2011 18:44:50 +0000 (10:44 -0800)]
wscript chooses win32 source files, not cpp

13 years agoUse common.PORT not 8000
Ryan Dahl [Wed, 19 Jan 2011 06:27:12 +0000 (22:27 -0800)]
Use common.PORT not 8000

13 years agomove test-exec to pummel - too slow
Ryan Dahl [Wed, 19 Jan 2011 06:25:38 +0000 (22:25 -0800)]
move test-exec to pummel - too slow

13 years agomake 'readyState' available to CryptoStream
Alexis Sellier [Wed, 19 Jan 2011 03:39:20 +0000 (22:39 -0500)]
make 'readyState' available to CryptoStream

13 years agoAdd setEncoding to CryptoStream
Ryan Dahl [Wed, 19 Jan 2011 02:03:55 +0000 (18:03 -0800)]
Add setEncoding to CryptoStream

13 years agoAdd setNoDelay to cryptostream
Ryan Dahl [Wed, 19 Jan 2011 01:56:52 +0000 (17:56 -0800)]
Add setNoDelay to cryptostream

13 years agolisten/bind errors should close net.Server
Ryan Dahl [Wed, 19 Jan 2011 00:22:43 +0000 (16:22 -0800)]
listen/bind errors should close net.Server

13 years agofactor linklist code into own file
Ryan Dahl [Tue, 18 Jan 2011 22:26:32 +0000 (14:26 -0800)]
factor linklist code into own file

13 years agoRemove completed TODO.win32 items
Bert Belder [Mon, 17 Jan 2011 22:30:13 +0000 (23:30 +0100)]
Remove completed TODO.win32 items

13 years agoMake child_process.kill always work on windows
Bert Belder [Mon, 17 Jan 2011 21:59:25 +0000 (22:59 +0100)]
Make child_process.kill always work on windows

13 years agoFix several child process bugs on windows
Bert Belder [Mon, 17 Jan 2011 22:01:20 +0000 (23:01 +0100)]
Fix several child process bugs on windows

13 years agoFix detection of socket errors
Bert Belder [Mon, 17 Jan 2011 21:49:23 +0000 (22:49 +0100)]
Fix detection of socket errors