platform/upstream/nodejs.git
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

13 years agoImprove error reporting on windows
Bert Belder [Mon, 17 Jan 2011 21:47:59 +0000 (22:47 +0100)]
Improve error reporting on windows

13 years agoDefine winsock error numbers
Bert Belder [Mon, 17 Jan 2011 23:27:08 +0000 (00:27 +0100)]
Define winsock error numbers

13 years agoMisc. cleanups
Bert Belder [Mon, 17 Jan 2011 21:53:12 +0000 (22:53 +0100)]
Misc. cleanups

casts, unused vars, function ordering, /* within comment, etc.

13 years agoClean up the way windows headers are included
Bert Belder [Mon, 17 Jan 2011 23:22:36 +0000 (00:22 +0100)]
Clean up the way windows headers are included

Plus make inclusion order a little more consistent in general

13 years agoWindows: get rid of most NO_IMPL related macros
Bert Belder [Mon, 17 Jan 2011 22:38:34 +0000 (23:38 +0100)]
Windows: get rid of most NO_IMPL related macros

13 years agoWindows: implement missing stdio methods
Bert Belder [Tue, 11 Jan 2011 00:42:12 +0000 (01:42 +0100)]
Windows: implement missing stdio methods

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 agodocs: style
Ryan Dahl [Mon, 17 Jan 2011 21:35:01 +0000 (13:35 -0800)]
docs: style

13 years agodocs: Add note about global scope
Ryan Dahl [Mon, 17 Jan 2011 21:34:22 +0000 (13:34 -0800)]
docs: Add note about global scope

13 years agoFix v8 build on windows
Bert Belder [Mon, 17 Jan 2011 20:12:56 +0000 (21:12 +0100)]
Fix v8 build on windows

reported to v8 in http://codereview.chromium.org/6056006/

13 years agoUpgrade V8 to 3.0.8
Ryan Dahl [Mon, 17 Jan 2011 19:32:56 +0000 (11:32 -0800)]
Upgrade V8 to 3.0.8

13 years agoNow working on v0.3.6
Ryan Dahl [Sun, 16 Jan 2011 23:28:01 +0000 (15:28 -0800)]
Now working on v0.3.6

13 years agoBump version to v0.3.5 v0.3.5
Ryan Dahl [Sun, 16 Jan 2011 23:12:28 +0000 (15:12 -0800)]
Bump version to v0.3.5

13 years agoFix test-require-cache-without-stat.js
Felix Geisendörfer [Sun, 16 Jan 2011 11:33:11 +0000 (12:33 +0100)]
Fix test-require-cache-without-stat.js

This path adds an additional cache to the module system for caching the
location of previously required modules. Since it is embedded in the
loop that iterates over all require.paths, this patch also handles the
case where require.paths is being modified.

The patch also cleans up some code around it.

See: https://groups.google.com/forum/#!topic/nodejs-dev/QGGlrvLDHVs

13 years agoIsolate native module system again
Felix Geisendörfer [Fri, 14 Jan 2011 19:14:47 +0000 (20:14 +0100)]
Isolate native module system again

See: https://github.com/ry/node/commit/2e5dfafcb06f769889bd4d08a07d1c53346e7be7#commitcomment-239719

13 years agoAdd built-in module loading to test-require-cache-without-stat
Ryan Dahl [Sun, 16 Jan 2011 22:34:39 +0000 (14:34 -0800)]
Add built-in module loading to test-require-cache-without-stat

13 years agoAdd broken test for require cache working
Ryan Dahl [Sun, 16 Jan 2011 09:21:38 +0000 (01:21 -0800)]
Add broken test for require cache working

require is caching the compiled code but still stating the filenames.
https://groups.google.com/d/topic/nodejs-dev/QGGlrvLDHVs/discussion

13 years agostyle
Ryan Dahl [Sun, 16 Jan 2011 08:33:16 +0000 (00:33 -0800)]
style

13 years agoRevert "Implement os.isWindows"
Ryan Dahl [Fri, 14 Jan 2011 04:32:14 +0000 (20:32 -0800)]
Revert "Implement os.isWindows"

This reverts commit 9e31e0837ec3c5a88ed477bec3980dd4608046be.

Use process.platform == 'win32'

13 years agoAllow third party hooks before main module load
Ryan Dahl [Fri, 14 Jan 2011 00:30:27 +0000 (16:30 -0800)]
Allow third party hooks before main module load

Just put a file lib/_third_party_main.js into the build directory and take
it from there.

13 years agodebugger: don't hang on ^d and ^c
Ryan Dahl [Fri, 14 Jan 2011 00:04:33 +0000 (16:04 -0800)]
debugger: don't hang on ^d and ^c

13 years agodebugger: error out without script
Ryan Dahl [Thu, 13 Jan 2011 23:28:16 +0000 (15:28 -0800)]
debugger: error out without script

TODO:

debug> run script.js

13 years agodebugger: add uncaughtException handler to kill child
Ryan Dahl [Thu, 13 Jan 2011 23:18:13 +0000 (15:18 -0800)]
debugger: add uncaughtException handler to kill child

13 years agodebugger: Correctly eval arrays and numbers
Ryan Dahl [Thu, 13 Jan 2011 21:59:32 +0000 (13:59 -0800)]
debugger: Correctly eval arrays and numbers

13 years agodebugger: full scope evals
Ryan Dahl [Thu, 13 Jan 2011 21:24:28 +0000 (13:24 -0800)]
debugger: full scope evals

13 years agodebugger: Better backtraces
Ryan Dahl [Thu, 13 Jan 2011 20:48:20 +0000 (12:48 -0800)]
debugger: Better backtraces

13 years agodebugger: primative object inspection
Ryan Dahl [Thu, 13 Jan 2011 19:57:28 +0000 (11:57 -0800)]
debugger: primative object inspection

13 years agodebugger: take help message from commands
Ryan Dahl [Thu, 13 Jan 2011 19:13:57 +0000 (11:13 -0800)]
debugger: take help message from commands

13 years agoA few more list clean ups
Ryan Dahl [Thu, 13 Jan 2011 10:22:09 +0000 (02:22 -0800)]
A few more list clean ups

13 years agoExpose link-list from timers.js; add tests
Ryan Dahl [Thu, 13 Jan 2011 10:09:03 +0000 (02:09 -0800)]
Expose link-list from timers.js; add tests

13 years agodebugger: Don't break on handle === 0
Ryan Dahl [Thu, 13 Jan 2011 00:43:05 +0000 (16:43 -0800)]
debugger: Don't break on handle === 0

13 years agoFix NODE_PATH, was broken after cleanup
Felix Geisendörfer [Wed, 12 Jan 2011 22:42:21 +0000 (23:42 +0100)]
Fix NODE_PATH, was broken after cleanup

13 years agoAlways init module paths
Felix Geisendörfer [Wed, 12 Jan 2011 22:31:04 +0000 (23:31 +0100)]
Always init module paths

The previous cleanup patch broke module loading in the the REPL by
not initializing require.paths.

13 years agoCleanup node module system code
Felix Geisendörfer [Wed, 12 Jan 2011 21:05:45 +0000 (22:05 +0100)]
Cleanup node module system code

13 years agoFix test-net-connect-buffer
Ryan Dahl [Wed, 12 Jan 2011 21:29:43 +0000 (13:29 -0800)]
Fix test-net-connect-buffer

Change to end() behavior in 33c339 was breaking it. end() should wait for
connection before dumping. Changed test-net-connect-timeout to use destroy()
instead.

13 years agonet: Timeouts should work before DNS resolution
Ryan Dahl [Wed, 12 Jan 2011 20:59:58 +0000 (12:59 -0800)]
net: Timeouts should work before DNS resolution

13 years agoAdd test for connection timeouts
Ryan Dahl [Wed, 12 Jan 2011 18:57:01 +0000 (10:57 -0800)]
Add test for connection timeouts

Also make socket.end() destroy connection if still trying to connect.
Previously was ignoring.

13 years agodebugger: Only display basename of scripts
Ryan Dahl [Wed, 12 Jan 2011 18:33:10 +0000 (10:33 -0800)]
debugger: Only display basename of scripts

13 years agotab completion for commands in debugger
Ryan Dahl [Wed, 12 Jan 2011 18:32:48 +0000 (10:32 -0800)]
tab completion for commands in debugger

13 years agoUpgrade c-ares to 1.7.4
Ryan Dahl [Wed, 12 Jan 2011 02:19:22 +0000 (18:19 -0800)]
Upgrade c-ares to 1.7.4

13 years agoNODE_DEBUG=timer instead of bitflags
Ryan Dahl [Wed, 12 Jan 2011 00:53:02 +0000 (16:53 -0800)]
NODE_DEBUG=timer instead of bitflags

13 years agoAllow one extra ms in timer diff
Ryan Dahl [Wed, 12 Jan 2011 00:51:07 +0000 (16:51 -0800)]
Allow one extra ms in timer diff

Fixes sporadic test-next-tick-ordering.js failures

13 years agoAdd delay into test-debugger-client
Ryan Dahl [Wed, 12 Jan 2011 00:30:01 +0000 (16:30 -0800)]
Add delay into test-debugger-client

13 years agoPut a little delay into test-tls-securepair-client.js
Ryan Dahl [Tue, 11 Jan 2011 23:37:56 +0000 (15:37 -0800)]
Put a little delay into test-tls-securepair-client.js

Avoids race. openssl s_server is a terrible program.

13 years agoLibev windows fixes
Bert Belder [Tue, 11 Jan 2011 20:06:58 +0000 (21:06 +0100)]
Libev windows fixes

13 years agoUse html5 spec stylesheet for docs
Ryan Dahl [Tue, 11 Jan 2011 22:32:42 +0000 (14:32 -0800)]
Use html5 spec stylesheet for docs

13 years agoMerge branch 'vanilla-libeio'
Ryan Dahl [Tue, 11 Jan 2011 22:13:06 +0000 (14:13 -0800)]
Merge branch 'vanilla-libeio'

Conflicts:
deps/libeio/config.h.in

13 years agoUpgrade libeio
Ryan Dahl [Tue, 11 Jan 2011 22:09:17 +0000 (14:09 -0800)]
Upgrade libeio

13 years agochild_process: Support setting uid/gid by name
isaacs [Tue, 11 Jan 2011 02:20:12 +0000 (18:20 -0800)]
child_process: Support setting uid/gid by name

13 years agoFix spelling mistakes
Ryan Dahl [Tue, 11 Jan 2011 18:18:46 +0000 (10:18 -0800)]
Fix spelling mistakes

13 years agochild_process: Add gid/uid flags to spawn config
isaacs [Thu, 23 Dec 2010 02:08:20 +0000 (18:08 -0800)]
child_process: Add gid/uid flags to spawn config

This is mostly working, but not completely ideal for two reasons.

1. Rather than emitting an error on the ChildProcess object when the
setgid/setuid fails, it is simply printing the error to stderr and
exiting.  The same happens with the cwd, so that's not completely
terrible.

2. I don't have a good test for this.  It fails with an EPERM if you try
to change the uid or gid as a non-root user.

13 years agoUpgrade libev to 4.3
Ryan Dahl [Tue, 11 Jan 2011 16:45:32 +0000 (08:45 -0800)]
Upgrade libev to 4.3

13 years agoImprove path.resolve documentation
Bert Belder [Tue, 11 Jan 2011 01:57:25 +0000 (02:57 +0100)]
Improve path.resolve documentation

13 years agoBump size of bench histogram to 100ms
Ryan Dahl [Tue, 11 Jan 2011 02:00:15 +0000 (18:00 -0800)]
Bump size of bench histogram to 100ms

13 years agogetWindowSize/setWindowSize
Ryan Dahl [Tue, 11 Jan 2011 01:25:48 +0000 (17:25 -0800)]
getWindowSize/setWindowSize

13 years agotypo setuid -> setsid
Ryan Dahl [Tue, 11 Jan 2011 01:15:17 +0000 (17:15 -0800)]
typo setuid -> setsid

13 years agoFix expired keys
Ryan Dahl [Tue, 11 Jan 2011 00:30:26 +0000 (16:30 -0800)]
Fix expired keys

13 years agotty.open() returns stream instead of slaveFD
Ryan Dahl [Tue, 11 Jan 2011 00:25:13 +0000 (16:25 -0800)]
tty.open() returns stream instead of slaveFD

Also is run in its own session.

13 years agoAdd setsid option to child_process
Ryan Dahl [Tue, 11 Jan 2011 00:22:58 +0000 (16:22 -0800)]
Add setsid option to child_process

13 years agoPrint error when EventEmitters get too many listeners
Ryan Dahl [Sat, 1 Jan 2011 02:32:52 +0000 (18:32 -0800)]
Print error when EventEmitters get too many listeners

13 years agodebugger: implement 'list'
Ryan Dahl [Sun, 9 Jan 2011 03:09:54 +0000 (19:09 -0800)]
debugger: implement 'list'

13 years agoexpose module wrapper to native modules
Ryan Dahl [Sun, 9 Jan 2011 03:09:33 +0000 (19:09 -0800)]
expose module wrapper to native modules

13 years agodebugger: fix 'scripts' command
Ryan Dahl [Sun, 9 Jan 2011 02:20:30 +0000 (18:20 -0800)]
debugger: fix 'scripts' command

path.split() no longer available

13 years agoNow working on v0.3.5-pre
Ryan Dahl [Sun, 9 Jan 2011 00:19:07 +0000 (16:19 -0800)]
Now working on v0.3.5-pre

13 years agoBump version to v0.3.4 v0.3.4
Ryan Dahl [Sat, 8 Jan 2011 23:46:07 +0000 (15:46 -0800)]
Bump version to v0.3.4

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 agoTLS: Forward errors to cleartext
Ryan Dahl [Fri, 7 Jan 2011 18:57:39 +0000 (10:57 -0800)]
TLS: Forward errors to cleartext

But only after control has been inverted.

13 years agoRemove debugger statement from http_simple.js
Ryan Dahl [Fri, 7 Jan 2011 02:07:48 +0000 (18:07 -0800)]
Remove debugger statement from http_simple.js

results in slow bench

13 years agoLint
Ryan Dahl [Fri, 7 Jan 2011 00:06:27 +0000 (16:06 -0800)]
Lint

13 years agoReplace string magic + path.join by path.resolve
Bert Belder [Thu, 6 Jan 2011 20:06:29 +0000 (21:06 +0100)]
Replace string magic + path.join by path.resolve

Because path.resolve is more elegant and windows-safe.

13 years agoRework fs.realpath, primordal windows compatibility
Bert Belder [Thu, 6 Jan 2011 17:30:03 +0000 (18:30 +0100)]
Rework fs.realpath, primordal windows compatibility

13 years agoPath.resolve, path module windows compatibility
Bert Belder [Thu, 6 Jan 2011 05:39:00 +0000 (06:39 +0100)]
Path.resolve, path module windows compatibility

Removes path.normalizeArray() and path.split()

13 years agoFix regression introduced in fe804d9b
isaacs [Wed, 5 Jan 2011 19:12:36 +0000 (11:12 -0800)]
Fix regression introduced in fe804d9b

It breaks argv[0] on posix systems, and makes it so that npm can't
determine whether node was run from an explicit location, or via "node",
so the configs default improperly.

If on windows, don't do this behavior.  On posix, go back to the old
behavior.

13 years agoAllow for two streams in REPL
Ryan Dahl [Thu, 6 Jan 2011 21:42:30 +0000 (13:42 -0800)]
Allow for two streams in REPL

Towards windows compatibility.

13 years agoJoyent link goes to no.de
Ryan Dahl [Thu, 6 Jan 2011 19:05:19 +0000 (11:05 -0800)]
Joyent link goes to no.de

13 years agoFix process.platform
Ryan Dahl [Thu, 6 Jan 2011 03:05:59 +0000 (19:05 -0800)]
Fix process.platform

13 years agoUpdate TODO items
Ryan Dahl [Wed, 5 Jan 2011 19:57:53 +0000 (11:57 -0800)]
Update TODO items

13 years agoRemove legacy TLS api from docs
Ryan Dahl [Wed, 5 Jan 2011 19:55:24 +0000 (11:55 -0800)]
Remove legacy TLS api from docs

13 years agoRename net.Stream to net.Socket
Ryan Dahl [Wed, 5 Jan 2011 19:53:56 +0000 (11:53 -0800)]
Rename net.Stream to net.Socket

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'