platform/upstream/nodejs.git
13 years agoFix ErrnoExceptions that have the wrong syscall name
Wade Simmons [Mon, 22 Nov 2010 21:24:09 +0000 (14:24 -0700)]
Fix ErrnoExceptions that have the wrong syscall name

13 years agoFix buffer.slice(0, 0)
Ryan Dahl [Tue, 23 Nov 2010 20:20:22 +0000 (12:20 -0800)]
Fix buffer.slice(0, 0)

13 years agohack to display syntax errors. FIXME
Ryan Dahl [Tue, 23 Nov 2010 01:55:04 +0000 (17:55 -0800)]
hack to display syntax errors. FIXME

13 years agoAdd cmake build support.
Tom Hughes [Mon, 22 Nov 2010 16:31:40 +0000 (10:31 -0600)]
Add cmake build support.

Squashed commit of ca128f7dcd28cbcfba154c8577ed54d4aa71dd02 with
contributions from Mark Constable (markc@renta.net) and Daniel Gröber
(darklord@darkboxed.org).

13 years agoFix problem with requireNative not exporting 'module' object
isaacs [Mon, 22 Nov 2010 19:26:37 +0000 (11:26 -0800)]
Fix problem with requireNative not exporting 'module' object

Broke require('constants'). Add unrelated test which breaks it.

13 years agoAdd support for SSDP methods -_-
Ryan Dahl [Mon, 22 Nov 2010 05:44:23 +0000 (21:44 -0800)]
Add support for SSDP methods -_-

13 years agoUpgrade http-parser
Ryan Dahl [Mon, 22 Nov 2010 05:39:14 +0000 (21:39 -0800)]
Upgrade http-parser

13 years agoFix c-ares bug: reply to a CNAME query
Ben Noordhuis [Tue, 16 Nov 2010 20:38:13 +0000 (21:38 +0100)]
Fix c-ares bug: reply to a CNAME query

doesn't contain addresses, causing ares_parse_a_reply() to bail out with
ARES_ENODATA.

13 years agoSupport CNAME lookups in DNS module.
Ben Noordhuis [Tue, 16 Nov 2010 20:50:24 +0000 (21:50 +0100)]
Support CNAME lookups in DNS module.

13 years agoApple's threaded write()s bug
Jorge Chamorro Bieling [Wed, 17 Nov 2010 09:41:30 +0000 (10:41 +0100)]
Apple's threaded write()s bug

fixes test/simple/test-fs-sir-writes-alot.js on mac

13 years agoFix mac build
Ryan Dahl [Mon, 22 Nov 2010 04:33:04 +0000 (20:33 -0800)]
Fix mac build

13 years agorequire() should work with `node --eval`.
Ben Noordhuis [Tue, 16 Nov 2010 14:44:06 +0000 (15:44 +0100)]
require() should work with `node --eval`.

with tests

Fix module path resolve bug.  Normally the module path is taken from
realpath(__filename) but with eval there is (of course) no filename

13 years agoUse sys.executable to call python
Nikhil Marathe [Thu, 18 Nov 2010 08:22:21 +0000 (13:52 +0530)]
Use sys.executable to call python

13 years agoFix compiler warnings.
Ben Noordhuis [Sat, 20 Nov 2010 12:35:56 +0000 (13:35 +0100)]
Fix compiler warnings.

13 years agoCompile with `-Wno-unused-parameter -D_FORTIFY_SOURCE=2`
Ben Noordhuis [Sat, 20 Nov 2010 12:35:41 +0000 (13:35 +0100)]
Compile with `-Wno-unused-parameter -D_FORTIFY_SOURCE=2`

13 years agoDocs for util.inherits
Marco Rogers [Sun, 21 Nov 2010 05:28:19 +0000 (00:28 -0500)]
Docs for util.inherits

13 years agorequireNative made independent on module system
Herbert Vojčík [Mon, 22 Nov 2010 02:03:21 +0000 (03:03 +0100)]
requireNative made independent on module system

13 years agoPrint deprecation warning on process.compile
Ryan Dahl [Sun, 21 Nov 2010 23:22:08 +0000 (15:22 -0800)]
Print deprecation warning on process.compile

13 years agoUse runInNewContext instead of process.compile
Ryan Dahl [Sun, 21 Nov 2010 23:16:02 +0000 (15:16 -0800)]
Use runInNewContext instead of process.compile

13 years agoLoad 'path' module with requireNative
Ryan Dahl [Sun, 21 Nov 2010 23:07:34 +0000 (15:07 -0800)]
Load 'path' module with requireNative

(now that requireNative does not depend on path module)

13 years agorequireNative doesn't depend on rest of module system
Ryan Dahl [Sun, 21 Nov 2010 23:06:20 +0000 (15:06 -0800)]
requireNative doesn't depend on rest of module system

13 years agoVarious doc tweaks (2-spaces vs tabs, EOL-whitespace, repl prompt, "world" vs "World...
Silas Sewell [Sun, 21 Nov 2010 22:22:34 +0000 (17:22 -0500)]
Various doc tweaks (2-spaces vs tabs, EOL-whitespace, repl prompt, "world" vs "World", etc...)

13 years agosimplify lazy constant loading
Ryan Dahl [Sun, 21 Nov 2010 22:20:22 +0000 (14:20 -0800)]
simplify lazy constant loading

13 years agofix style in path.js
Ryan Dahl [Sun, 21 Nov 2010 22:13:54 +0000 (14:13 -0800)]
fix style in path.js

13 years agoPrint friendly error message when main module is ENOENT
Ryan Dahl [Sun, 21 Nov 2010 21:58:47 +0000 (13:58 -0800)]
Print friendly error message when main module is ENOENT

13 years agostream.pipe should remove listeners on dest close
Ryan Dahl [Sun, 21 Nov 2010 07:08:45 +0000 (23:08 -0800)]
stream.pipe should remove listeners on dest close

13 years agoRevert "Merge branch 'writev'"
Ryan Dahl [Sun, 21 Nov 2010 04:49:44 +0000 (20:49 -0800)]
Revert "Merge branch 'writev'"

This reverts commit cd9515efd99dfa6510e72342a2621bb4b291a89c, reversing
changes made to df46c8e698b9400abaabd77ec836c7cdadf9735c.

Too slow. Needs more work.

13 years agoRevert "Actually don't need to limit sendmsg size on unix - seems okay."
Ryan Dahl [Sun, 21 Nov 2010 04:45:30 +0000 (20:45 -0800)]
Revert "Actually don't need to limit sendmsg size on unix - seems okay."

This reverts commit 464ced4a86e89163ec68a0c2f020720dc82b0191.

13 years agoRevert "fd_to_send needs to be cleared if *any* data was sent"
Ryan Dahl [Sun, 21 Nov 2010 04:45:22 +0000 (20:45 -0800)]
Revert "fd_to_send needs to be cleared if *any* data was sent"

This reverts commit a93634007a0c5366d415782c2a1f164a6d7ecbc5.

13 years agoupdate repl to distinguish JSON.parse SyntaxErrors from the rest
Marco Rogers [Sat, 20 Nov 2010 23:44:58 +0000 (18:44 -0500)]
update repl to distinguish JSON.parse SyntaxErrors from the rest

13 years agoInline Buffer::Length and Buffer::Data
Ryan Dahl [Sat, 20 Nov 2010 08:04:22 +0000 (00:04 -0800)]
Inline Buffer::Length and Buffer::Data

13 years agofd_to_send needs to be cleared if *any* data was sent
Ryan Dahl [Sat, 20 Nov 2010 07:05:13 +0000 (23:05 -0800)]
fd_to_send needs to be cleared if *any* data was sent

13 years agoActually don't need to limit sendmsg size on unix - seems okay.
Ryan Dahl [Sat, 20 Nov 2010 06:52:20 +0000 (22:52 -0800)]
Actually don't need to limit sendmsg size on unix - seems okay.

13 years agoAdd failing test for TLS server
Ryan Dahl [Fri, 19 Nov 2010 21:28:04 +0000 (13:28 -0800)]
Add failing test for TLS server

13 years agoAdd some comments to securepair
Ryan Dahl [Fri, 19 Nov 2010 21:02:14 +0000 (13:02 -0800)]
Add some comments to securepair

13 years agofix style for SecureStream::IsInitFinished
Ryan Dahl [Fri, 19 Nov 2010 20:58:00 +0000 (12:58 -0800)]
fix style for SecureStream::IsInitFinished

13 years agoUpgrade V8 to 2.5.7
Ryan Dahl [Fri, 19 Nov 2010 18:49:09 +0000 (10:49 -0800)]
Upgrade V8 to 2.5.7

13 years agoAdded documentation for Stream.pipe
Nikhil Marathe [Thu, 18 Nov 2010 08:41:44 +0000 (14:11 +0530)]
Added documentation for Stream.pipe

13 years agoFix style
Ryan Dahl [Fri, 19 Nov 2010 18:00:21 +0000 (10:00 -0800)]
Fix style

13 years agoFix OpenSSL SSL_library_init function check on OpenBSD.
Brian White [Fri, 19 Nov 2010 03:33:31 +0000 (22:33 -0500)]
Fix OpenSSL SSL_library_init function check on OpenBSD.

13 years agoUpdate TODO
Ryan Dahl [Fri, 19 Nov 2010 00:57:46 +0000 (16:57 -0800)]
Update TODO

13 years agoMerge branch 'writev'
Ryan Dahl [Fri, 19 Nov 2010 00:49:39 +0000 (16:49 -0800)]
Merge branch 'writev'

13 years agoFix typo
Ryan Dahl [Fri, 19 Nov 2010 00:28:10 +0000 (16:28 -0800)]
Fix typo

13 years agoOnly try to flush big buffers once
Ryan Dahl [Thu, 18 Nov 2010 22:19:09 +0000 (14:19 -0800)]
Only try to flush big buffers once

13 years agoAdd todo about test-pipe.js and throwing on resume()
Ryan Dahl [Thu, 18 Nov 2010 20:04:33 +0000 (12:04 -0800)]
Add todo about test-pipe.js and throwing on resume()

13 years agoFix socket.end() problem on non-empty queue
Ryan Dahl [Thu, 18 Nov 2010 19:59:15 +0000 (11:59 -0800)]
Fix socket.end() problem on non-empty queue

13 years agoFix a bug regarding queueSize, add asserts
Ryan Dahl [Thu, 18 Nov 2010 19:45:32 +0000 (11:45 -0800)]
Fix a bug regarding queueSize, add asserts

13 years agoSmall clean ups
Ryan Dahl [Thu, 18 Nov 2010 19:18:07 +0000 (11:18 -0800)]
Small clean ups

13 years ago'connect' event may disconnect socket
Ryan Dahl [Wed, 17 Nov 2010 19:50:51 +0000 (11:50 -0800)]
'connect' event may disconnect socket

13 years agoDump after ev_loop
Ryan Dahl [Wed, 17 Nov 2010 19:40:43 +0000 (11:40 -0800)]
Dump after ev_loop

13 years agoEmit drain and stop IOWatcher even on empty buffer
Ryan Dahl [Wed, 17 Nov 2010 18:58:45 +0000 (10:58 -0800)]
Emit drain and stop IOWatcher even on empty buffer

13 years agoAdd callback to socket.write(), fix test-sendfds
Ryan Dahl [Sat, 13 Nov 2010 00:24:53 +0000 (16:24 -0800)]
Add callback to socket.write(), fix test-sendfds

13 years agomake sure unix sockets are tagged correctly
Ryan Dahl [Fri, 12 Nov 2010 22:05:26 +0000 (14:05 -0800)]
make sure unix sockets are tagged correctly

13 years agoDon't append buckets of zero length
Ryan Dahl [Fri, 12 Nov 2010 19:47:31 +0000 (11:47 -0800)]
Don't append buckets of zero length

13 years agoAdd IOWatcher.flush()
Ryan Dahl [Fri, 12 Nov 2010 19:31:39 +0000 (11:31 -0800)]
Add IOWatcher.flush()

To be called if sockets get too much data. This is to force a flush before
the tick ends.

13 years agoMaintain queueSize for each socket
Ryan Dahl [Fri, 12 Nov 2010 19:24:30 +0000 (11:24 -0800)]
Maintain queueSize for each socket

13 years agoAlso do ondrain callback for socket (needed by http)
Ryan Dahl [Fri, 12 Nov 2010 17:54:48 +0000 (09:54 -0800)]
Also do ondrain callback for socket (needed by http)

13 years agoReset _eof on socket reuse
Ryan Dahl [Fri, 12 Nov 2010 17:18:44 +0000 (09:18 -0800)]
Reset _eof on socket reuse

13 years agoDon't send null data segments
Ryan Dahl [Fri, 12 Nov 2010 01:31:38 +0000 (17:31 -0800)]
Don't send null data segments

13 years agoSupport encoding
Ryan Dahl [Thu, 11 Nov 2010 22:26:41 +0000 (14:26 -0800)]
Support encoding

13 years agoDumper net.js integration
Ryan Dahl [Fri, 5 Nov 2010 20:03:32 +0000 (13:03 -0700)]
Dumper net.js integration

13 years agoIOWatcher::Dump(), writev
Ryan Dahl [Tue, 2 Nov 2010 22:51:16 +0000 (15:51 -0700)]
IOWatcher::Dump(), writev

13 years agoRip out the old TLS implementation
Ryan Dahl [Thu, 28 Oct 2010 20:02:51 +0000 (13:02 -0700)]
Rip out the old TLS implementation

13 years agoAdd tests for querystring.unescapeBuffer
Ryan Dahl [Fri, 19 Nov 2010 00:22:11 +0000 (16:22 -0800)]
Add tests for querystring.unescapeBuffer

13 years agoFix line wrapping in docs. Add tics for constants in docs text.
Oleg Efimov [Thu, 18 Nov 2010 12:00:24 +0000 (15:00 +0300)]
Fix line wrapping in docs. Add tics for constants in docs text.

13 years agoMake SlowBuffer pass Buffer.isBuffer test.
Stéphan Kochen [Thu, 18 Nov 2010 18:30:47 +0000 (19:30 +0100)]
Make SlowBuffer pass Buffer.isBuffer test.

13 years agoAdd querystring.unescapeBuffer
Ryan Dahl [Thu, 18 Nov 2010 23:18:06 +0000 (15:18 -0800)]
Add querystring.unescapeBuffer

13 years agoquery-string unescape moved to js land
Ryan Dahl [Thu, 18 Nov 2010 23:12:21 +0000 (15:12 -0800)]
query-string unescape moved to js land

13 years agofix race in test-http-big-proxy-responses.js
Ryan Dahl [Thu, 18 Nov 2010 21:50:46 +0000 (13:50 -0800)]
fix race in test-http-big-proxy-responses.js

13 years agoMake sure raw mode is disabled when exiting a terminal-based REPL.
Brian White [Thu, 18 Nov 2010 02:41:36 +0000 (21:41 -0500)]
Make sure raw mode is disabled when exiting a terminal-based REPL.

13 years agoRemove leading comma examples
Ryan Dahl [Thu, 18 Nov 2010 02:25:14 +0000 (18:25 -0800)]
Remove leading comma examples

13 years agoRemove jQuery from project
Micheil Smith [Thu, 18 Nov 2010 01:51:07 +0000 (12:51 +1100)]
Remove jQuery from project

13 years agoAdd doc TODOs
Ryan Dahl [Thu, 18 Nov 2010 01:50:00 +0000 (17:50 -0800)]
Add doc TODOs

13 years agoGenerate Table of Contents at compile time.
Micheil Smith [Thu, 18 Nov 2010 01:26:37 +0000 (12:26 +1100)]
Generate Table of Contents at compile time.

13 years agoBetter description of lstat(). Wrapped all lines.
Dan Søndergaard [Wed, 17 Nov 2010 16:04:21 +0000 (17:04 +0100)]
Better description of lstat(). Wrapped all lines.

13 years agofix utils.inspect's detection of circular structures
Tim Cooijmans [Wed, 17 Nov 2010 20:26:08 +0000 (21:26 +0100)]
fix utils.inspect's detection of circular structures

13 years agoFix links
Ryan Dahl [Wed, 17 Nov 2010 22:51:06 +0000 (14:51 -0800)]
Fix links

13 years agoSimplify next tick logic by looping around ev_loop
Ryan Dahl [Wed, 17 Nov 2010 19:31:16 +0000 (11:31 -0800)]
Simplify next tick logic by looping around ev_loop

This is also in preparation for the writev patch, which needs to dump
remaining data after ev_loop ends.

13 years agoFix doc links
Ryan Dahl [Wed, 17 Nov 2010 17:39:26 +0000 (09:39 -0800)]
Fix doc links

13 years agoNow working on v0.3.2-pre
Ryan Dahl [Wed, 17 Nov 2010 17:31:51 +0000 (09:31 -0800)]
Now working on v0.3.2-pre

13 years agoBump version to v0.3.1 v0.3.1
Ryan Dahl [Wed, 17 Nov 2010 02:46:15 +0000 (18:46 -0800)]
Bump version to v0.3.1

13 years agoRevert "Upgrade V8 to 2.5.6"
Ryan Dahl [Wed, 17 Nov 2010 03:13:52 +0000 (19:13 -0800)]
Revert "Upgrade V8 to 2.5.6"

This reverts commit 564a48643bd3edc6da845e458277a54c8068d0e2.

Breaks cygwin

13 years agoAdd ref to buffer during fs.write and fs.read
Ryan Dahl [Wed, 17 Nov 2010 00:26:55 +0000 (16:26 -0800)]
Add ref to buffer during fs.write and fs.read

There was the possibility the buffer could be GCed while the eio_req was
pending.  Still needs test coverage for the fs.read() problem.

See:
http://groups.google.com/group/nodejs/browse_thread/thread/c11f8b683f37cef

13 years agoTest for server.listen() more carefully, fix bug
Ryan Dahl [Tue, 16 Nov 2010 23:33:21 +0000 (15:33 -0800)]
Test for server.listen() more carefully, fix bug

13 years agoscp should copy the right dir
Ryan Dahl [Tue, 16 Nov 2010 06:25:09 +0000 (22:25 -0800)]
scp should copy the right dir

13 years agoUpdate TODO
Ryan Dahl [Tue, 16 Nov 2010 06:18:52 +0000 (22:18 -0800)]
Update TODO

13 years agoFix doc links on index.html
Ryan Dahl [Tue, 16 Nov 2010 04:34:15 +0000 (20:34 -0800)]
Fix doc links on index.html

13 years agoDocs for server.address()
Ryan Dahl [Tue, 16 Nov 2010 04:26:46 +0000 (20:26 -0800)]
Docs for server.address()

13 years agomake doc improvements
Ryan Dahl [Tue, 16 Nov 2010 04:23:12 +0000 (20:23 -0800)]
make doc improvements

13 years agoTest and fix for self-assigned port from net.Server
Ryan Dahl [Tue, 16 Nov 2010 04:22:54 +0000 (20:22 -0800)]
Test and fix for self-assigned port from net.Server

13 years agoBetter doc indexes, fix some links
Micheil Smith [Sun, 14 Nov 2010 23:50:14 +0000 (10:50 +1100)]
Better doc indexes, fix some links

13 years agoBuild API page into build/doc; simplify doctool.
Micheil Smith [Sun, 14 Nov 2010 23:50:14 +0000 (10:50 +1100)]
Build API page into build/doc; simplify doctool.

13 years agosolaris -> sunos
Ryan Dahl [Tue, 16 Nov 2010 03:23:47 +0000 (03:23 +0000)]
solaris -> sunos

13 years agoFix docs for vm module
Ryan Dahl [Tue, 16 Nov 2010 03:21:56 +0000 (19:21 -0800)]
Fix docs for vm module

13 years agoPrint warning when using platform_none.cc
Ryan Dahl [Tue, 16 Nov 2010 03:19:01 +0000 (03:19 +0000)]
Print warning when using platform_none.cc

13 years agoFix OS::GetExecutablePath for platform_none
Ryan Dahl [Tue, 16 Nov 2010 03:06:18 +0000 (03:06 +0000)]
Fix OS::GetExecutablePath for platform_none

13 years agoRename require('javascript') to require('vm')
Ryan Dahl [Tue, 16 Nov 2010 02:37:27 +0000 (18:37 -0800)]
Rename require('javascript') to require('vm')

13 years agoAdd .node_moudles to lookup path again
Ryan Dahl [Mon, 15 Nov 2010 19:20:35 +0000 (11:20 -0800)]
Add .node_moudles to lookup path again

13 years agoRevert node_module lookup commits
Ryan Dahl [Mon, 15 Nov 2010 18:22:24 +0000 (10:22 -0800)]
Revert node_module lookup commits
Revert "Add ~/.node_modules as well as ~/.node_libraries"

This reverts commits
5e14c8bec0b4e1c19d8567cf8b843b215e8796ac.
b0adaff67e492ab9ac583059f5e2dba54de0973b.
492fc0d7524c0a5b546fb1a16f1b49bb4db73da8.

13 years agoFix docs for 'javascript' module
Ryan Dahl [Mon, 15 Nov 2010 08:51:01 +0000 (00:51 -0800)]
Fix docs for 'javascript' module