platform/upstream/nodejs.git
13 years agoRemove path module dependency from url module
Bert Belder [Wed, 5 Jan 2011 15:32:04 +0000 (16:32 +0100)]
Remove path module dependency from url module

Now the path module can be adapted to support windows paths without breaking
the url module.  It also allows the undocumented keepBlanks flag to be
removed from path.join and path.normalizeArray.

13 years agoRemove keepBlanks flag from path functions
Bert Belder [Wed, 5 Jan 2011 15:40:21 +0000 (16:40 +0100)]
Remove keepBlanks flag from path functions

13 years agoImplement os.isWindows
Bert Belder [Wed, 5 Jan 2011 02:30:27 +0000 (03:30 +0100)]
Implement os.isWindows

13 years agoAdd C++ Buffer migration tips
Ryan Dahl [Wed, 5 Jan 2011 01:23:48 +0000 (17:23 -0800)]
Add C++ Buffer migration tips

13 years agoRevert "realpath files during module load"
Bert Belder [Wed, 5 Jan 2011 00:57:49 +0000 (01:57 +0100)]
Revert "realpath files during module load"

This reverts commit 131546e7339d6960ea91629915468c6f04a33cf7.

Doesn't work on windows, coming back soon.

13 years agoDon't attempt to capture SIGUSR1
Bert Belder [Tue, 4 Jan 2011 23:45:01 +0000 (00:45 +0100)]
Don't attempt to capture SIGUSR1

13 years agoMerge branch 'master' of git://github.com/ry/node
Bert Belder [Tue, 4 Jan 2011 23:41:59 +0000 (00:41 +0100)]
Merge branch 'master' of git://github.com/ry/node

Conflicts:
src/node.cc
src/node.js

13 years agorealpath files during module load
Mihai Călin Bazon [Tue, 4 Jan 2011 20:24:17 +0000 (12:24 -0800)]
realpath files during module load

13 years agoImplement WriteStream.destroySoon
Ryan Dahl [Tue, 4 Jan 2011 19:39:12 +0000 (11:39 -0800)]
Implement WriteStream.destroySoon

13 years agonet.js: Check that readWatcher exists before pause, resume
Ryan Dahl [Tue, 4 Jan 2011 19:25:36 +0000 (11:25 -0800)]
net.js: Check that readWatcher exists before pause, resume

13 years agoImplement new stream method, destroySoon
Ryan Dahl [Tue, 4 Jan 2011 19:22:17 +0000 (11:22 -0800)]
Implement new stream method, destroySoon

Still missing on fs.WriteStream

13 years agohack for ending https connections
Ryan Dahl [Tue, 4 Jan 2011 18:36:05 +0000 (10:36 -0800)]
hack for ending https connections

13 years agoFirst pass at new https server
Ryan Dahl [Sun, 2 Jan 2011 09:13:56 +0000 (01:13 -0800)]
First pass at new https server

13 years agoNODE_DEBUG uses strings instead of bitflags
Ryan Dahl [Mon, 3 Jan 2011 23:27:57 +0000 (15:27 -0800)]
NODE_DEBUG uses strings instead of bitflags

13 years agodebugger: use correct handle handle
Ryan Dahl [Mon, 3 Jan 2011 21:21:28 +0000 (13:21 -0800)]
debugger: use correct handle handle

13 years agodebugger: don't display whole path of scripts
Ryan Dahl [Mon, 3 Jan 2011 20:58:19 +0000 (12:58 -0800)]
debugger: don't display whole path of scripts

13 years agoMerge branch 'debugger'
Ryan Dahl [Mon, 3 Jan 2011 18:27:16 +0000 (10:27 -0800)]
Merge branch 'debugger'

13 years agoNow working on v0.3.4-pre
Ryan Dahl [Mon, 3 Jan 2011 02:57:22 +0000 (18:57 -0800)]
Now working on v0.3.4-pre

13 years agoBump version to v0.3.3 v0.3.3
Ryan Dahl [Mon, 3 Jan 2011 02:33:49 +0000 (18:33 -0800)]
Bump version to v0.3.3

13 years agoFix REPL for named functions
Ryan Dahl [Mon, 3 Jan 2011 02:08:08 +0000 (18:08 -0800)]
Fix REPL for named functions

add some tests.

13 years agoFix the OS module for win32
Bert Belder [Sun, 2 Jan 2011 22:44:43 +0000 (23:44 +0100)]
Fix the OS module for win32

13 years agoMerge remote branch 'origin/master'
Bert Belder [Sun, 2 Jan 2011 21:57:32 +0000 (22:57 +0100)]
Merge remote branch 'origin/master'

Conflicts:
src/node_net.cc
src/node_os.cc

13 years agoFix openssl version check
Ryan Dahl [Sun, 2 Jan 2011 20:37:27 +0000 (12:37 -0800)]
Fix openssl version check

13 years agoDisable TLS tests when node doesn't have OpenSSL.
Ryan Dahl [Sun, 2 Jan 2011 09:54:19 +0000 (01:54 -0800)]
Disable TLS tests when node doesn't have OpenSSL.

13 years agoAdd openssl version to process.versions
Ryan Dahl [Sun, 2 Jan 2011 09:44:42 +0000 (01:44 -0800)]
Add openssl version to process.versions

13 years agoFix typos
Ryan Dahl [Sun, 2 Jan 2011 09:13:27 +0000 (01:13 -0800)]
Fix typos

13 years agoadd process.stdin
Ryan Dahl [Sun, 2 Jan 2011 05:54:46 +0000 (21:54 -0800)]
add process.stdin

13 years agorepl.js style
Ryan Dahl [Sun, 2 Jan 2011 05:41:07 +0000 (21:41 -0800)]
repl.js style

13 years agoSyntax error hack for modules.
Ryan Dahl [Sun, 2 Jan 2011 05:14:24 +0000 (21:14 -0800)]
Syntax error hack for modules.

13 years agoAdd '{a:1}' to REPL tests
Ryan Dahl [Sun, 2 Jan 2011 05:14:06 +0000 (21:14 -0800)]
Add '{a:1}' to REPL tests

13 years agoAllow for evaling statements in REPL too
Ryan Dahl [Sun, 2 Jan 2011 05:04:13 +0000 (21:04 -0800)]
Allow for evaling statements in REPL too

13 years agoImprove how REPL commands are evaled
Ryan Dahl [Sun, 2 Jan 2011 01:54:45 +0000 (17:54 -0800)]
Improve how REPL commands are evaled

Before:
> {a: 1}
1
> (function() {
...   // foo
...   return 1;
... })();
...

Now:
> {a: 1}
{ a : 1 }
> (function() {
...   // foo
...   return 1;
... })();
1
>

13 years agoFix solaris build
Ryan Dahl [Sun, 2 Jan 2011 01:43:07 +0000 (01:43 +0000)]
Fix solaris build

Stub out new platform functions.

13 years agoRevert "Add optional filters to stream.pipe()"
Ryan Dahl [Sun, 2 Jan 2011 00:41:39 +0000 (16:41 -0800)]
Revert "Add optional filters to stream.pipe()"

This reverts commit 24aded078fd6838d2f21934e57c7cc8dfd7303d1.

13 years agoMake syntax error display optional
Ryan Dahl [Sat, 1 Jan 2011 22:24:16 +0000 (14:24 -0800)]
Make syntax error display optional

Fixes GH-543

13 years agoLint node_script.cc
Ryan Dahl [Sat, 1 Jan 2011 21:17:42 +0000 (13:17 -0800)]
Lint node_script.cc

13 years agoUpdate links for v0.2.6 on website
Ryan Dahl [Fri, 31 Dec 2010 05:07:42 +0000 (21:07 -0800)]
Update links for v0.2.6 on website

13 years agouse util.inspect to format objects and arrays printed to the console
Sami Samhuri [Fri, 31 Dec 2010 00:20:47 +0000 (19:20 -0500)]
use util.inspect to format objects and arrays printed to the console

13 years agoEventEmitter.prototype.once should "return this;"
Daniel C [Tue, 7 Dec 2010 16:44:21 +0000 (18:44 +0200)]
EventEmitter.prototype.once should "return this;"

13 years agodebugger: a little bit of doc
Ryan Dahl [Fri, 31 Dec 2010 02:46:49 +0000 (18:46 -0800)]
debugger: a little bit of doc

13 years agodebugger: Prompt before quitting
Ryan Dahl [Fri, 31 Dec 2010 02:28:30 +0000 (18:28 -0800)]
debugger: Prompt before quitting

13 years agodebugger: Don't prompt until child is killed
Ryan Dahl [Fri, 31 Dec 2010 02:07:19 +0000 (18:07 -0800)]
debugger: Don't prompt until child is killed

13 years agoFix some errors in debugger tests
Ryan Dahl [Fri, 31 Dec 2010 01:52:14 +0000 (17:52 -0800)]
Fix some errors in debugger tests

13 years agodebugger: Fix some parser issues
Ryan Dahl [Fri, 31 Dec 2010 01:33:06 +0000 (17:33 -0800)]
debugger: Fix some parser issues

Wouldn't handle events if it got backed up.

13 years agodebugger: Disable/Enable raw mode for child
Ryan Dahl [Thu, 30 Dec 2010 23:46:47 +0000 (15:46 -0800)]
debugger: Disable/Enable raw mode for child

13 years agodebugger: Clean ups, bug fixes
Ryan Dahl [Thu, 30 Dec 2010 21:25:49 +0000 (13:25 -0800)]
debugger: Clean ups, bug fixes

13 years agodebugger: add 'kill' command
Ryan Dahl [Thu, 30 Dec 2010 20:33:27 +0000 (12:33 -0800)]
debugger: add 'kill' command

13 years agodebugger: repeat command functionality
Ryan Dahl [Thu, 30 Dec 2010 19:54:49 +0000 (11:54 -0800)]
debugger: repeat command functionality

13 years agodebugger: don't display node's internal scripts
Ryan Dahl [Thu, 30 Dec 2010 19:53:55 +0000 (11:53 -0800)]
debugger: don't display node's internal scripts

13 years agoWrap up debugger in one class
Ryan Dahl [Thu, 30 Dec 2010 19:17:11 +0000 (11:17 -0800)]
Wrap up debugger in one class

just for better readablity

13 years agodebugger: style
Ryan Dahl [Thu, 30 Dec 2010 18:32:41 +0000 (10:32 -0800)]
debugger: style

13 years agodebugger: Print error if executing command that requires being connected
Ryan Dahl [Thu, 30 Dec 2010 18:31:33 +0000 (10:31 -0800)]
debugger: Print error if executing command that requires being connected

13 years agostart debug agent on SIGUSR1
Ryan Dahl [Sat, 18 Dec 2010 19:17:29 +0000 (11:17 -0800)]
start debug agent on SIGUSR1

13 years agodebugger: clean up
Ryan Dahl [Thu, 30 Dec 2010 18:18:25 +0000 (10:18 -0800)]
debugger: clean up

13 years agoDebugger: better maintance of script list
Ryan Dahl [Thu, 30 Dec 2010 18:02:42 +0000 (10:02 -0800)]
Debugger: better maintance of script list

13 years agodebugger: Work towards interactive restart
Ryan Dahl [Thu, 30 Dec 2010 09:34:54 +0000 (01:34 -0800)]
debugger: Work towards interactive restart

13 years agodebugger: Clean up child
Ryan Dahl [Thu, 30 Dec 2010 08:10:30 +0000 (00:10 -0800)]
debugger: Clean up child

13 years agoRather have the debugger be parent process
Ryan Dahl [Thu, 30 Dec 2010 06:07:38 +0000 (22:07 -0800)]
Rather have the debugger be parent process

13 years agoadd 'info breakpoints'
Ryan Dahl [Thu, 23 Dec 2010 18:38:43 +0000 (10:38 -0800)]
add 'info breakpoints'

13 years agohighlight current script
Ryan Dahl [Thu, 23 Dec 2010 18:32:34 +0000 (10:32 -0800)]
highlight current script

13 years agodebugger: 'scripts' command was conflicting with 's'
Ryan Dahl [Thu, 23 Dec 2010 18:18:06 +0000 (10:18 -0800)]
debugger: 'scripts' command was conflicting with 's'

13 years agoStart on frame zero - don't do extra break
Ryan Dahl [Thu, 23 Dec 2010 18:10:28 +0000 (10:10 -0800)]
Start on frame zero - don't do extra break

13 years agodebugger: Clean up a few commands
Ryan Dahl [Thu, 23 Dec 2010 07:31:54 +0000 (23:31 -0800)]
debugger: Clean up a few commands

13 years agoDisable OPOST
Ryan Dahl [Thu, 23 Dec 2010 07:31:06 +0000 (23:31 -0800)]
Disable OPOST

Helps when sharing a tty with non-raw mode processes

13 years agoDebugger: Fix some output
Ryan Dahl [Thu, 23 Dec 2010 02:39:22 +0000 (18:39 -0800)]
Debugger: Fix some output

13 years agoAdd better breakpoint text
Ryan Dahl [Thu, 23 Dec 2010 02:30:56 +0000 (18:30 -0800)]
Add better breakpoint text

13 years agoFork out to debugger on debugger statements
Ryan Dahl [Thu, 23 Dec 2010 01:17:34 +0000 (17:17 -0800)]
Fork out to debugger on debugger statements

Also implement continue in Client.

13 years agoDebugger client emits ready after recving initial res
Ryan Dahl [Wed, 22 Dec 2010 22:40:28 +0000 (14:40 -0800)]
Debugger client emits ready after recving initial res

13 years agoAdd more debugger tests
Ryan Dahl [Wed, 22 Dec 2010 22:31:57 +0000 (14:31 -0800)]
Add more debugger tests

13 years agokeep track of current frame. eval works for global scope
Ryan Dahl [Wed, 22 Dec 2010 08:48:22 +0000 (00:48 -0800)]
keep track of current frame. eval works for global scope

13 years agoFix test-debugger-client
Ryan Dahl [Wed, 22 Dec 2010 06:31:30 +0000 (22:31 -0800)]
Fix test-debugger-client

13 years agoAdd beginning of build-in debugger
Ryan Dahl [Wed, 22 Dec 2010 03:14:29 +0000 (19:14 -0800)]
Add beginning of build-in debugger

+ test-debugger-client (which is currently broken)

13 years agostart debug agent on SIGUSR1
Ryan Dahl [Sat, 18 Dec 2010 19:17:29 +0000 (11:17 -0800)]
start debug agent on SIGUSR1

13 years agoAdd ability to ask question from readline
Ryan Dahl [Thu, 30 Dec 2010 09:34:31 +0000 (01:34 -0800)]
Add ability to ask question from readline

13 years agoFree (ref-counted) private key.
Tom Hughes [Thu, 23 Dec 2010 21:49:55 +0000 (15:49 -0600)]
Free (ref-counted) private key.

13 years agoFix Cygwin compatibility in the os module
Brian White [Thu, 23 Dec 2010 13:06:03 +0000 (08:06 -0500)]
Fix Cygwin compatibility in the os module

13 years agocorrect some inline links in api document
Kai Chen [Tue, 21 Dec 2010 04:35:40 +0000 (12:35 +0800)]
correct some inline links in api document

13 years agocmake: Add toolchain file for cross-compiling.
Tom Hughes [Wed, 8 Dec 2010 21:37:28 +0000 (15:37 -0600)]
cmake: Add toolchain file for cross-compiling.

13 years agocmake: Fix OpenSSL detection and node crypto compilation.
Tom Hughes [Wed, 8 Dec 2010 01:06:52 +0000 (19:06 -0600)]
cmake: Fix OpenSSL detection and node crypto compilation.

13 years agocmake: add -lutil
Daniel Gröber [Sun, 5 Dec 2010 14:10:05 +0000 (15:10 +0100)]
cmake: add -lutil

13 years agoAdd more functionality to the os module
Brian White [Wed, 22 Dec 2010 18:55:47 +0000 (13:55 -0500)]
Add more functionality to the os module

13 years agoDon't access buffer data before initializing it.
Tom Hughes [Mon, 20 Dec 2010 17:15:20 +0000 (11:15 -0600)]
Don't access buffer data before initializing it.

Prevents valgrind from complaining and still tests that buffer data is
treated as unsigned.

13 years agoFix memory leak in node_crypto.cc.
Tom Hughes [Tue, 21 Dec 2010 21:52:07 +0000 (15:52 -0600)]
Fix memory leak in node_crypto.cc.

Both HexDecode and unbase64 allocate buffers, which weren't being freed.

13 years agoFix memory corruption with unnamed AF_UNIX sockets.
Tom Hughes [Fri, 17 Dec 2010 23:26:58 +0000 (17:26 -0600)]
Fix memory corruption with unnamed AF_UNIX sockets.

AF_UNIX sockets can have a pathname, be unnamed, or abstract (Linux
only). If an unnamed socket is returned by getsockname, getpeername, or
accept, sun_path should not be inspected.

13 years agoAdd 'make test-valgrind'
Ryan Dahl [Wed, 22 Dec 2010 18:24:34 +0000 (10:24 -0800)]
Add 'make test-valgrind'

13 years agoprocess.kill coerces args to integers
Ryan Dahl [Tue, 21 Dec 2010 23:40:10 +0000 (15:40 -0800)]
process.kill coerces args to integers

13 years agofix assert.throws
Oleg Slobodskoi [Tue, 21 Dec 2010 17:42:52 +0000 (18:42 +0100)]
fix assert.throws

13 years agoAdd toolchain=gcc to V8 build for Sun
Ryan Dahl [Tue, 21 Dec 2010 20:02:51 +0000 (12:02 -0800)]
Add toolchain=gcc to V8 build for Sun

13 years agoThe following error can be thrown from accept on ECONNABORT. Instead, it should be...
Theo Schlossnagle [Tue, 21 Dec 2010 03:08:41 +0000 (22:08 -0500)]
The following error can be thrown from accept on ECONNABORT. Instead, it should be ignored.

net:1100
        if (e.errno != EMFILE) throw e;
                               ^
Error: ECONNABORTED, Software caused connection abort
    at IOWatcher.callback (net:1098:24)
    at node.js:773:9

13 years agoUpgrade V8 to 3.0.4
Ryan Dahl [Tue, 21 Dec 2010 18:24:08 +0000 (10:24 -0800)]
Upgrade V8 to 3.0.4

13 years agoPort GetHostName
Bert Belder [Mon, 20 Dec 2010 23:07:02 +0000 (00:07 +0100)]
Port GetHostName

13 years agoRevert "Performance-killing bug workaround for V8 on mingw"
Bert Belder [Mon, 20 Dec 2010 22:52:38 +0000 (23:52 +0100)]
Revert "Performance-killing bug workaround for V8 on mingw"

This reverts commit 9a9edb0e8e6120b3b8a3868d0c44577111dd1857.

13 years agoUpdate TODO.win32
Bert Belder [Mon, 20 Dec 2010 22:32:04 +0000 (23:32 +0100)]
Update TODO.win32

13 years agoFixes to child process
Bert Belder [Mon, 20 Dec 2010 22:31:28 +0000 (23:31 +0100)]
Fixes to child process

13 years agoAfter building overwrite existing ./node(_g)?.exe
Bert Belder [Mon, 6 Dec 2010 12:46:49 +0000 (13:46 +0100)]
After building overwrite existing ./node(_g)?.exe

13 years agoChild processes
Bert Belder [Fri, 3 Dec 2010 00:44:09 +0000 (01:44 +0100)]
Child processes

13 years agoMake using winsock extension functions possible
Bert Belder [Fri, 3 Dec 2010 00:14:40 +0000 (01:14 +0100)]
Make using winsock extension functions possible

13 years agoMake select work on >64 FDs on windows
Bert Belder [Fri, 3 Dec 2010 00:12:50 +0000 (01:12 +0100)]
Make select work on >64 FDs on windows

13 years agoSupport for non-overlapped sockets
Bert Belder [Tue, 30 Nov 2010 16:07:09 +0000 (17:07 +0100)]
Support for non-overlapped sockets

By default windows creates sockets with the WSA_FLAG_OVERLAPPED flag set.
Because child processes don't expect to have overlapped stdio (it never happens)
it won't work with them.

13 years agoWork around intermittent mkdir failures in testcfg.py
Bert Belder [Tue, 30 Nov 2010 09:39:39 +0000 (10:39 +0100)]
Work around intermittent mkdir failures in testcfg.py