platform/upstream/nodejs.git
13 years agoAdd items to TODO
Ryan Dahl [Fri, 17 Sep 2010 05:22:38 +0000 (22:22 -0700)]
Add items to TODO

13 years agoUpgrade V8 to 2.4.4
Ryan Dahl [Fri, 17 Sep 2010 04:33:32 +0000 (21:33 -0700)]
Upgrade V8 to 2.4.4

13 years ago^c to get out of '...' in REPL
Ryan Dahl [Fri, 17 Sep 2010 04:07:22 +0000 (21:07 -0700)]
^c to get out of '...' in REPL

13 years agoSimplify REPL
Ryan Dahl [Fri, 17 Sep 2010 03:50:56 +0000 (20:50 -0700)]
Simplify REPL

13 years agoSafe constructors for fs.ReadStream and fs.WriteStream
Ryan Dahl [Fri, 17 Sep 2010 02:04:09 +0000 (19:04 -0700)]
Safe constructors for fs.ReadStream and fs.WriteStream

13 years agoRemove old versions of fs.read and fs.write from docs
Ryan Dahl [Fri, 17 Sep 2010 01:51:50 +0000 (18:51 -0700)]
Remove old versions of fs.read and fs.write from docs

13 years agoUse the Apple recommended way of detecting OSX Versions
Paul Querna [Thu, 16 Sep 2010 22:27:25 +0000 (15:27 -0700)]
Use the Apple recommended way of detecting OSX Versions

to enable KQueue, rather than deciding based on the compiler version.

13 years agoMove dns.isIP to net.isIP
Paul Querna [Thu, 16 Sep 2010 21:58:04 +0000 (14:58 -0700)]
Move dns.isIP to net.isIP

Add tests and docs.

13 years agoRemove deprecation warnings in net module
Ryan Dahl [Thu, 16 Sep 2010 21:59:55 +0000 (14:59 -0700)]
Remove deprecation warnings in net module

13 years agoRemove deprecation warnings in http module
Ryan Dahl [Thu, 16 Sep 2010 21:49:12 +0000 (14:49 -0700)]
Remove deprecation warnings in http module

13 years agoHandle writeStream errors in sys.pump
Ryan Dahl [Thu, 16 Sep 2010 21:40:41 +0000 (14:40 -0700)]
Handle writeStream errors in sys.pump

13 years agoCommon subexpression in emit.
Herbert Vojčík [Thu, 16 Sep 2010 11:08:09 +0000 (13:08 +0200)]
Common subexpression in emit.

13 years agoNo need to do if (internalModuleCache...), it's in requireNative.
Herbert Vojčík [Thu, 16 Sep 2010 12:30:08 +0000 (14:30 +0200)]
No need to do if (internalModuleCache...), it's in requireNative.

13 years agoModule system moved to the bottom, where only is it needed.
Herbert Vojčík [Thu, 16 Sep 2010 12:04:37 +0000 (14:04 +0200)]
Module system moved to the bottom, where only is it needed.

(this also splits the file into upper "setup" and lower "startup" sections)

13 years agom.id unneccessary, id is enough.
Herbert Vojčík [Thu, 16 Sep 2010 11:53:45 +0000 (13:53 +0200)]
m.id unneccessary, id is enough.

13 years agoNatives having their own self-contained minimalistic module system.
Herbert Vojčík [Wed, 15 Sep 2010 22:16:57 +0000 (00:16 +0200)]
Natives having their own self-contained minimalistic module system.

The main system is built upon this, and is optional, if only natives
are used in application (eg. node-core).

Natives not loaded into own context if NODE_MODULE_CONTEXTS=1.
This have its inner logic, if natives are seen just as lazy-loaded
parts of the core.

13 years agoRemove a few old deprecation warnings
Ryan Dahl [Wed, 15 Sep 2010 23:17:11 +0000 (16:17 -0700)]
Remove a few old deprecation warnings

13 years agoSend multiple header lines in ServerResponse#writeHead when header values are arrays
Sam Stephenson [Wed, 15 Sep 2010 14:52:23 +0000 (09:52 -0500)]
Send multiple header lines in ServerResponse#writeHead when header values are arrays

13 years agoshorten some lines in events.js
Ryan Dahl [Wed, 15 Sep 2010 22:47:28 +0000 (15:47 -0700)]
shorten some lines in events.js

13 years agoOptimize emit for two arguments
Ryan Dahl [Wed, 15 Sep 2010 22:20:04 +0000 (15:20 -0700)]
Optimize emit for two arguments

13 years agoMake a list of known globals
Ryan Dahl [Wed, 15 Sep 2010 06:02:48 +0000 (23:02 -0700)]
Make a list of known globals

And fix missing var!

It would be good to get this script running at the end of every test, so we
know that modules aren't leaking either - but it will require a lot
modification of the tests so that they themselves aren't leaking globals.

13 years agoDefault value for second arg of Buffer#slice
Ryan Dahl [Tue, 14 Sep 2010 22:39:27 +0000 (15:39 -0700)]
Default value for second arg of Buffer#slice

13 years agoSupport for outgoing HTTP trailing headers
Mark Nottingham [Thu, 9 Sep 2010 06:29:35 +0000 (16:29 +1000)]
Support for outgoing HTTP trailing headers

13 years agoUse child_process.exec rather than sys.exec
Ryan Dahl [Tue, 14 Sep 2010 17:29:56 +0000 (10:29 -0700)]
Use child_process.exec rather than sys.exec

13 years agoBug in realpath with symlinks to absolute folder paths which have children.
isaacs [Tue, 14 Sep 2010 16:23:48 +0000 (09:23 -0700)]
Bug in realpath with symlinks to absolute folder paths which have children.

Found by Cliffano Subagio
http://groups.google.com/group/nodejs/browse_thread/thread/f46f093938265ac0/387e14da08c7dd7b?

13 years agoUpgrade libeio
Ryan Dahl [Mon, 13 Sep 2010 22:40:20 +0000 (15:40 -0700)]
Upgrade libeio

13 years agoGet rid of PHP/Rails style parameter munging.
Peter Griess [Mon, 13 Sep 2010 18:54:30 +0000 (13:54 -0500)]
Get rid of PHP/Rails style parameter munging.

- Handle only the most basic of query string parsing and construction.
  Leave the rest (e.g. Rails/PHP behaviors) to modules higher up the
  stack, like Express.

13 years agoCatch Exceptions thrown when openssl is disabled
Tony Metzidis [Sat, 11 Sep 2010 07:44:29 +0000 (00:44 -0700)]
Catch Exceptions thrown when openssl is disabled

13 years ago- fix AttributeError on "use_openssl" when doing ./configure --without-ssl - error...
Tony Metzidis [Sat, 11 Sep 2010 04:37:43 +0000 (21:37 -0700)]
- fix AttributeError on "use_openssl" when doing ./configure --without-ssl - error was: AttributeError: Values instance has no attribute 'use_openssl'

13 years agoFix style in node_object_wrap.h
Ryan Dahl [Mon, 13 Sep 2010 18:40:04 +0000 (11:40 -0700)]
Fix style in node_object_wrap.h

13 years agoAdd lfs flags to node addon script
Ryan Dahl [Mon, 13 Sep 2010 04:58:06 +0000 (21:58 -0700)]
Add lfs flags to node addon script

13 years agoFix style in readline
Ryan Dahl [Mon, 13 Sep 2010 04:47:56 +0000 (21:47 -0700)]
Fix style in readline

13 years agoAdd SIGWINCH handler for readline
Ryan Dahl [Mon, 13 Sep 2010 04:23:53 +0000 (21:23 -0700)]
Add SIGWINCH handler for readline

13 years agoadd to todo
Ryan Dahl [Sun, 12 Sep 2010 03:40:46 +0000 (20:40 -0700)]
add to todo

13 years agoExpose fingerproint from getPeerCertificate
Paul Querna [Fri, 10 Sep 2010 06:27:17 +0000 (23:27 -0700)]
Expose fingerproint from getPeerCertificate

Expose the SHA1 digest of the certificate as the fingerprint attribute in
the object returned by getPeerCertificate()

13 years agoFix fs.realpathSync('/')
Ryan Dahl [Fri, 10 Sep 2010 01:49:28 +0000 (18:49 -0700)]
Fix fs.realpathSync('/')

13 years agoBetter temporary directory handling for tests.
isaacs [Thu, 9 Sep 2010 01:42:32 +0000 (18:42 -0700)]
Better temporary directory handling for tests.

Add a setUp and tearDown function to the test case class, and use it to
create and remove the test/tmp directory for each test.

TODO: amend other tests.

13 years agoDon't use empty.js - breaks module test
Ryan Dahl [Thu, 9 Sep 2010 23:22:57 +0000 (16:22 -0700)]
Don't use empty.js - breaks module test

13 years agoSimple benchmark for node's startup time
Felix Geisendörfer [Thu, 9 Sep 2010 18:36:51 +0000 (20:36 +0200)]
Simple benchmark for node's startup time

13 years agoUse SetPointerInInternalField
Ryan Dahl [Thu, 9 Sep 2010 22:47:37 +0000 (15:47 -0700)]
Use SetPointerInInternalField

13 years agoMerge branch 'fast-buffer'
Ryan Dahl [Thu, 9 Sep 2010 18:08:16 +0000 (11:08 -0700)]
Merge branch 'fast-buffer'

13 years agoRename SlowBuffer in binding
Ryan Dahl [Wed, 8 Sep 2010 06:52:40 +0000 (23:52 -0700)]
Rename SlowBuffer in binding

13 years agoRemove blobs, simplify SlowBuffer
Ryan Dahl [Wed, 8 Sep 2010 06:48:42 +0000 (23:48 -0700)]
Remove blobs, simplify SlowBuffer

Implement SlowBuffer.prototype.slice in js

13 years agoRemove dead code
Ryan Dahl [Wed, 8 Sep 2010 06:31:04 +0000 (23:31 -0700)]
Remove dead code

13 years agoFix big string bug
Ryan Dahl [Wed, 8 Sep 2010 06:04:27 +0000 (23:04 -0700)]
Fix big string bug

13 years agoRemove fancy SlowBuffer constructor
Ryan Dahl [Wed, 8 Sep 2010 05:52:09 +0000 (22:52 -0700)]
Remove fancy SlowBuffer constructor

13 years agoSimplify fast buffer constructor
Ryan Dahl [Wed, 8 Sep 2010 05:36:41 +0000 (22:36 -0700)]
Simplify fast buffer constructor

13 years agoImprove long buffer test
Ryan Dahl [Wed, 8 Sep 2010 05:00:16 +0000 (22:00 -0700)]
Improve long buffer test

13 years agoExpose fast-buffer bug in tests
Ryan Dahl [Wed, 8 Sep 2010 04:40:15 +0000 (21:40 -0700)]
Expose fast-buffer bug in tests

13 years agoUpdate fast buffer benchmarks
Ryan Dahl [Tue, 7 Sep 2010 23:30:17 +0000 (16:30 -0700)]
Update fast buffer benchmarks

13 years agodefineProperty is slow, don't use it for fastbuffer
Ryan Dahl [Tue, 7 Sep 2010 23:29:53 +0000 (16:29 -0700)]
defineProperty is slow, don't use it for fastbuffer

13 years agoExpose SlowBuffer
Ryan Dahl [Tue, 7 Sep 2010 22:20:26 +0000 (15:20 -0700)]
Expose SlowBuffer

13 years agoFix ByteLength hangup
Ryan Dahl [Mon, 6 Sep 2010 20:35:32 +0000 (13:35 -0700)]
Fix ByteLength hangup

13 years agoExpose Buffer.poolSize
Ryan Dahl [Mon, 6 Sep 2010 19:50:13 +0000 (12:50 -0700)]
Expose Buffer.poolSize

13 years agofast buffers for crypto
Ryan Dahl [Mon, 6 Sep 2010 19:16:47 +0000 (12:16 -0700)]
fast buffers for crypto

13 years agoFast buffers for http-parser
Ryan Dahl [Mon, 6 Sep 2010 19:10:33 +0000 (12:10 -0700)]
Fast buffers for http-parser

13 years agomap charsWritten to fast buffer
Ryan Dahl [Mon, 6 Sep 2010 10:07:32 +0000 (03:07 -0700)]
map charsWritten to fast buffer

13 years agoFix base64 write for buffers
Ryan Dahl [Mon, 6 Sep 2010 04:09:33 +0000 (21:09 -0700)]
Fix base64 write for buffers

13 years agoremove unnecessary casts
Ryan Dahl [Mon, 6 Sep 2010 03:49:20 +0000 (20:49 -0700)]
remove unnecessary casts

13 years agoMore fast buffer work
Ryan Dahl [Sun, 5 Sep 2010 20:30:30 +0000 (13:30 -0700)]
More fast buffer work

13 years agofast buffer bounds checking in copy()
Ryan Dahl [Sun, 5 Sep 2010 18:10:59 +0000 (11:10 -0700)]
fast buffer bounds checking in copy()

13 years agostring.length !== Buffer.byteLength(string)
Tim-Smart [Sun, 5 Sep 2010 13:12:35 +0000 (01:12 +1200)]
string.length !== Buffer.byteLength(string)

13 years agoWork to get C++ fast buffers. incomplete
Ryan Dahl [Sun, 5 Sep 2010 03:59:24 +0000 (20:59 -0700)]
Work to get C++ fast buffers. incomplete

13 years agoFast Buffer safe constructor
Ryan Dahl [Sun, 5 Sep 2010 03:58:51 +0000 (20:58 -0700)]
Fast Buffer safe constructor

13 years agoFix buffer binding
Ryan Dahl [Sat, 4 Sep 2010 20:56:27 +0000 (13:56 -0700)]
Fix buffer binding

13 years agoFix fastbuffer style
Ryan Dahl [Sat, 4 Sep 2010 20:48:04 +0000 (13:48 -0700)]
Fix fastbuffer style

Fix style

13 years agoSome silly fixes to buffer.js
Tim-Smart [Sat, 21 Aug 2010 11:18:15 +0000 (23:18 +1200)]
Some silly fixes to buffer.js

13 years agoFastBuffer implementation. API needs migration
Tim-Smart [Sat, 21 Aug 2010 06:28:00 +0000 (18:28 +1200)]
FastBuffer implementation. API needs migration

13 years agoFix: uncaughtException was broken for main module
Felix Geisendörfer [Tue, 7 Sep 2010 14:38:43 +0000 (16:38 +0200)]
Fix: uncaughtException was broken for main module

See: http://github.com/ry/node/commit/635986e4338cf34cf8e1abc4343ffd69d109bb4e

13 years agoCall Tick() after coming out of select()
Ryan Dahl [Thu, 9 Sep 2010 17:30:37 +0000 (10:30 -0700)]
Call Tick() after coming out of select()

Previously we would only call it before going into select(). This is needed
to fix test/simple/test-next-tick-ordering2.js.

13 years agoFix issue #262. Allow fs.realpath to traverse above the current working directory.
isaacs [Thu, 9 Sep 2010 00:25:59 +0000 (17:25 -0700)]
Fix issue #262. Allow fs.realpath to traverse above the current working directory.

13 years agoV8 Cygwin patch
Ryan Dahl [Thu, 9 Sep 2010 00:16:18 +0000 (17:16 -0700)]
V8 Cygwin patch

13 years agoUpgrade V8 to 2.4.2
Ryan Dahl [Thu, 9 Sep 2010 00:14:42 +0000 (17:14 -0700)]
Upgrade V8 to 2.4.2

13 years agoTest for ReadStream typo
Tobie Langel [Wed, 8 Sep 2010 19:09:13 +0000 (12:09 -0700)]
Test for ReadStream typo

13 years agoFix style; undefined reference bug
Ryan Dahl [Wed, 8 Sep 2010 19:03:33 +0000 (12:03 -0700)]
Fix style; undefined reference bug

13 years agoDo not emit WriteStream's drain event before ws.write has been called.
Tobie Langel [Wed, 8 Sep 2010 12:28:31 +0000 (14:28 +0200)]
Do not emit WriteStream's drain event before ws.write has been called.

13 years agoAvoid closing a WriteStream before it has been opened.
Tobie Langel [Wed, 8 Sep 2010 11:19:25 +0000 (13:19 +0200)]
Avoid closing a WriteStream before it has been opened.

13 years agoAvoid missing ref error in WriteStream.prototype.destroy().
Tobie Langel [Wed, 8 Sep 2010 11:15:05 +0000 (13:15 +0200)]
Avoid missing ref error in WriteStream.prototype.destroy().

13 years agoMake test-global work with NODE_MODULE_CONTEXTS.
Herbert Vojčík [Fri, 20 Aug 2010 16:59:33 +0000 (18:59 +0200)]
Make test-global work with NODE_MODULE_CONTEXTS.

13 years agoModifying test-global to accomodate v8 inter-context 'global' protection.
Herbert Vojčík [Fri, 20 Aug 2010 15:15:37 +0000 (17:15 +0200)]
Modifying test-global to accomodate v8 inter-context 'global' protection.

13 years agoRemoving test-global-between-modules.
Herbert Vojčík [Sun, 22 Aug 2010 00:00:50 +0000 (02:00 +0200)]
Removing test-global-between-modules.

Using "global" to push data to require()d modules
not supported under NODE_MODULE_CONTEXTS=1.

13 years agoRemoved comment-out code.
Herbert Vojčík [Fri, 20 Aug 2010 13:32:22 +0000 (15:32 +0200)]
Removed comment-out code.

13 years agoIncrease ReadStream bufferSize to 64k
Ryan Dahl [Wed, 8 Sep 2010 17:14:04 +0000 (10:14 -0700)]
Increase ReadStream bufferSize to 64k

13 years agoadd ANSI coloring option to sys.inspect and, by default, to the repl
Trent Mick [Sat, 4 Sep 2010 04:25:35 +0000 (21:25 -0700)]
add ANSI coloring option to sys.inspect and, by default, to the repl

13 years agoCtrl+W support for the REPL
Trent Mick [Sat, 4 Sep 2010 04:53:53 +0000 (21:53 -0700)]
Ctrl+W support for the REPL

FWIW, command-line style (delete back to whitespace) would be:
    leading = leading.replace(/\S+\s*$/, '');

13 years agoTest case showing a bug in nextTick ordering
Felix Geisendörfer [Wed, 8 Sep 2010 05:34:21 +0000 (07:34 +0200)]
Test case showing a bug in nextTick ordering

nextTick should fire before setTimeout in this test, but it doesn't.

13 years agotest-http-parser should not use private API
Ryan Dahl [Mon, 6 Sep 2010 19:18:46 +0000 (12:18 -0700)]
test-http-parser should not use private API

13 years agoDon't refer to private API in test-repl
Ryan Dahl [Mon, 6 Sep 2010 19:12:36 +0000 (12:12 -0700)]
Don't refer to private API in test-repl

13 years agoSpecial deepEquals for buffer
Ryan Dahl [Tue, 7 Sep 2010 23:28:49 +0000 (16:28 -0700)]
Special deepEquals for buffer

13 years agotypo: forceClose -> destroy for WriteStreams
Ryan Dahl [Sun, 5 Sep 2010 09:27:02 +0000 (02:27 -0700)]
typo: forceClose -> destroy for WriteStreams

13 years agoFix bug in process._tickCallback where callbacks can get abandoned.
Benjamin Thomas [Wed, 1 Sep 2010 11:01:38 +0000 (05:01 -0600)]
Fix bug in process._tickCallback where callbacks can get abandoned.

Change process._tickCallback so that if a callback throws an error but
there are other callbacks after it, we indicate that
process._tickCallback needs to be ran again.

Currently, if a callback in process._tickCallback throws an error, and
that error is caught by an uncaughtException handler and
process.nextTick is never called again, then any other callbacks already
added to the nextTickQueue won't be called again.

Updated the next-tick-errors test to catch this scenario.

13 years agoTreat "//some_path" as pathname rather than hostname by default.
isaacs [Wed, 1 Sep 2010 00:59:50 +0000 (17:59 -0700)]
Treat "//some_path" as pathname rather than hostname by default.

Note that "//" is still a special indicator for the hostname, and this does
not change the parsing of mailto: and other "slashless" url schemes.  It
does however remove some oddness in url.parse(req.url) which is the most
common use-case for the url.parse function.

13 years agoMake sure setInterval(cb, 0) loops infinitely
Ryan Dahl [Tue, 31 Aug 2010 23:45:17 +0000 (16:45 -0700)]
Make sure setInterval(cb, 0) loops infinitely

13 years agoFix style
Ryan Dahl [Mon, 30 Aug 2010 23:35:58 +0000 (16:35 -0700)]
Fix style

13 years agoFix style in test/simple/test-dgram-unix.js
Ryan Dahl [Mon, 30 Aug 2010 21:17:27 +0000 (14:17 -0700)]
Fix style in test/simple/test-dgram-unix.js

13 years agoRemove timer from test/simple/test-dgram-unix.js
Ryan Dahl [Mon, 30 Aug 2010 21:15:28 +0000 (14:15 -0700)]
Remove timer from test/simple/test-dgram-unix.js

Test running already has a timeout mechanism.

13 years agofix for fs.readFile to return string when encoding specified on zero length read
Marco Rogers [Wed, 25 Aug 2010 04:36:08 +0000 (00:36 -0400)]
fix for fs.readFile to return string when encoding specified on zero length read

13 years agoFixed async fs writes with length 0, it should fire the callback
Marco Rogers [Wed, 25 Aug 2010 03:46:37 +0000 (23:46 -0400)]
Fixed async fs writes with length 0, it should fire the callback

13 years agoAllow Strings for ports on net.Server.listen
Bradley Meck [Mon, 30 Aug 2010 20:26:53 +0000 (13:26 -0700)]
Allow Strings for ports on net.Server.listen

13 years agoConstants should be readOnly and DontDelete
Fedor Indutny [Mon, 30 Aug 2010 09:04:31 +0000 (16:04 +0700)]
Constants should be readOnly and DontDelete