platform/upstream/nodejs.git
12 years agoUse net_uv instead of net_legacy for stdio
Ryan Dahl [Tue, 13 Sep 2011 00:19:09 +0000 (17:19 -0700)]
Use net_uv instead of net_legacy for stdio

Also temporary hack to prevent process.stdout from keeping event loop alive
by calling uv_unref on process.stdout initialization.

12 years agomkdir EEXIST test
isaacs [Tue, 13 Sep 2011 00:10:24 +0000 (17:10 -0700)]
mkdir EEXIST test

Fixed on uv 3c00d87b4239a6b8358e2085f806170c3eca10cf

12 years agoUpdate uv to 3c00d87b4239a6b8358e2085f806170c3eca10cf
isaacs [Tue, 13 Sep 2011 00:10:51 +0000 (17:10 -0700)]
Update uv to 3c00d87b4239a6b8358e2085f806170c3eca10cf

12 years agov8: move __C99FEATURES__=1 into common.gypi
Ben Noordhuis [Mon, 12 Sep 2011 22:52:56 +0000 (22:52 +0000)]
v8: move __C99FEATURES__=1 into common.gypi

12 years agoWrap uv_pipe_open, implement net.Stream(fd);
Ryan Dahl [Mon, 12 Sep 2011 21:59:51 +0000 (14:59 -0700)]
Wrap uv_pipe_open, implement net.Stream(fd);

Fixes simple/test-child-process-ipc on unix.

12 years agoUpgrade libuv to e7eeacb
Ryan Dahl [Mon, 12 Sep 2011 21:53:27 +0000 (14:53 -0700)]
Upgrade libuv to e7eeacb

12 years agov8: add platform-solaris.cc to gyp build
Ben Noordhuis [Fri, 2 Sep 2011 14:39:44 +0000 (14:39 +0000)]
v8: add platform-solaris.cc to gyp build

12 years agov8: compile with __C99FEATURES__=1 on sunos
Ben Noordhuis [Fri, 2 Sep 2011 14:39:04 +0000 (14:39 +0000)]
v8: compile with __C99FEATURES__=1 on sunos

Exposes INFINITY, isinf(), isfinite(), etc.

12 years agoopenssl: fixups for sunos
Ben Noordhuis [Wed, 31 Aug 2011 19:11:10 +0000 (19:11 +0000)]
openssl: fixups for sunos

12 years agobuild: fixups for sunos
Ben Noordhuis [Wed, 31 Aug 2011 19:10:38 +0000 (19:10 +0000)]
build: fixups for sunos

12 years agobuild: disable -fvisibility=hidden
Ben Noordhuis [Tue, 30 Aug 2011 23:57:03 +0000 (23:57 +0000)]
build: disable -fvisibility=hidden

Not recognized by older versions of gcc.

12 years agobuild: fix breakage when resuming make
Ben Noordhuis [Tue, 30 Aug 2011 22:54:59 +0000 (00:54 +0200)]
build: fix breakage when resuming make

12 years agobuild: configure node, v8, cares and openssl
Ben Noordhuis [Mon, 29 Aug 2011 22:01:43 +0000 (00:01 +0200)]
build: configure node, v8, cares and openssl

12 years agogyp: add sunos support
Ben Noordhuis [Thu, 1 Sep 2011 01:13:49 +0000 (01:13 +0000)]
gyp: add sunos support

12 years agouv: upgrade to 9bd8bd7
Ben Noordhuis [Mon, 12 Sep 2011 21:45:00 +0000 (23:45 +0200)]
uv: upgrade to 9bd8bd7

12 years agouv: upgrade to b450d87
Ben Noordhuis [Mon, 12 Sep 2011 16:41:48 +0000 (18:41 +0200)]
uv: upgrade to b450d87

12 years agofs: unguarded fs.watchFile cache statWatchers checking fixed
Thomas Shinnick [Fri, 9 Sep 2011 04:16:10 +0000 (23:16 -0500)]
fs: unguarded fs.watchFile cache statWatchers checking fixed

Use hasOwnProperty to check filepath cache; previous code could fail if
a filepath duplicated a chained property name.

Fixes #1637.

12 years agofs: add positioned file writing feature to fs.WriteStream
Thomas Shinnick [Sun, 11 Sep 2011 20:30:01 +0000 (15:30 -0500)]
fs: add positioned file writing feature to fs.WriteStream

Patterned on same feature in ReadStream; a small bit of new code added
plus two refactorings of previous code; added two test files.

Fixes #1645.

12 years agofs: minor corrections from examining stream read positioning
Thomas Shinnick [Thu, 8 Sep 2011 23:19:28 +0000 (18:19 -0500)]
fs: minor corrections from examining stream read positioning

Fix minor typos, one small refactor, and change emit() in a constructor
to a throw

12 years agoutil: Fix inspection for Error
koichik [Thu, 8 Sep 2011 16:16:48 +0000 (01:16 +0900)]
util: Fix inspection for Error

Fixes #1634.

12 years agofix syntax error handling for 'throw ...', fix return value assertion
Fedor Indutny [Sun, 11 Sep 2011 07:05:00 +0000 (14:05 +0700)]
fix syntax error handling for 'throw ...', fix return value assertion

12 years agoUn-break the windows build
Bert Belder [Sun, 11 Sep 2011 01:54:08 +0000 (03:54 +0200)]
Un-break the windows build

12 years agowin: make test-cli-eval.js pass
Bert Belder [Sun, 11 Sep 2011 01:52:44 +0000 (03:52 +0200)]
win: make test-cli-eval.js pass

12 years agoUpgrade libuv to efa1b54
Ryan Dahl [Sun, 11 Sep 2011 01:40:40 +0000 (18:40 -0700)]
Upgrade libuv to efa1b54

12 years agoMerge remote branch 'indutny/feature-debugger'
Ryan Dahl [Sun, 11 Sep 2011 00:45:42 +0000 (17:45 -0700)]
Merge remote branch 'indutny/feature-debugger'

Fixes #1667

12 years agoRemove obsolete 'using v8::Null'
Fedor Indutny [Sat, 10 Sep 2011 19:18:45 +0000 (02:18 +0700)]
Remove obsolete 'using v8::Null'

Fixes #1680.

12 years agovm context with accessors
Fedor Indutny [Thu, 8 Sep 2011 11:42:44 +0000 (18:42 +0700)]
vm context with accessors

fixes #1673

12 years ago[debugger] fixed piping from stdout of child process, fixed eval in debug repl (when...
Fedor Indutny [Sat, 10 Sep 2011 16:55:38 +0000 (23:55 +0700)]
[debugger] fixed piping from stdout of child process, fixed eval in debug repl (when not on breakpoint)

12 years ago[debugger] implemented setBreakpoint, etc
Fedor Indutny [Sat, 10 Sep 2011 12:18:36 +0000 (19:18 +0700)]
[debugger] implemented setBreakpoint, etc

Lift prototype methods not only as accessors, but as properties too.
this.print() supports javascript objects inspection
this.error() implemented, don't throw error at callbacks and commands
Fixed list() invokation, when script is not on a breakpoint
Removed obsolete process.nextTick from `step` commands

12 years ago[debugger] deep cloning (depth = 3)
Fedor Indutny [Sat, 10 Sep 2011 11:39:34 +0000 (18:39 +0700)]
[debugger] deep cloning (depth = 3)

12 years ago[debugger] fix slow repl evals inside async callbacks
Fedor Indutny [Sat, 10 Sep 2011 11:19:47 +0000 (18:19 +0700)]
[debugger] fix slow repl evals inside async callbacks

12 years ago[debugger] rename function, add it to ignore list
Fedor Indutny [Sat, 10 Sep 2011 10:57:55 +0000 (17:57 +0700)]
[debugger] rename function, add it to ignore list

12 years ago[debugger] print data from child process' stdout and stderr
Fedor Indutny [Sat, 10 Sep 2011 10:43:22 +0000 (17:43 +0700)]
[debugger] print data from child process' stdout and stderr

12 years ago[debugger] nicier output, clear line before writing
Fedor Indutny [Sat, 10 Sep 2011 10:33:07 +0000 (17:33 +0700)]
[debugger] nicier output, clear line before writing

12 years ago[debugger] more informative break message (reverting back partially)
Fedor Indutny [Sat, 10 Sep 2011 05:38:42 +0000 (12:38 +0700)]
[debugger] more informative break message (reverting back partially)

12 years agoCorrect date
Ryan Dahl [Sat, 10 Sep 2011 03:18:40 +0000 (20:18 -0700)]
Correct date

12 years agoNow working on v0.5.7
Bert Belder [Fri, 9 Sep 2011 23:38:51 +0000 (01:38 +0200)]
Now working on v0.5.7

12 years agoBump version to 0.5.6 v0.5.6
Bert Belder [Fri, 9 Sep 2011 21:55:49 +0000 (23:55 +0200)]
Bump version to 0.5.6

12 years agoUpgrade libuv to bd6066cb
Bert Belder [Fri, 9 Sep 2011 21:51:32 +0000 (23:51 +0200)]
Upgrade libuv to bd6066cb

12 years agofix for test-fs-chmod
Igor Zinkovsky [Fri, 9 Sep 2011 18:46:40 +0000 (11:46 -0700)]
fix for test-fs-chmod

12 years agobuild: install uv-private/*.h, fixes native add-on builds
Ben Noordhuis [Fri, 9 Sep 2011 15:29:54 +0000 (17:29 +0200)]
build: install uv-private/*.h, fixes native add-on builds

12 years agoUpgrade libuv to e95a29ee18
Bert Belder [Fri, 9 Sep 2011 13:05:12 +0000 (15:05 +0200)]
Upgrade libuv to e95a29ee18

12 years agonet_uv: fix 'set is undefined' error
Bert Belder [Fri, 9 Sep 2011 12:59:54 +0000 (14:59 +0200)]
net_uv: fix 'set is undefined' error

12 years agonet_uv: use sufficient buffer to read sock/peername
Bert Belder [Fri, 9 Sep 2011 12:59:27 +0000 (14:59 +0200)]
net_uv: use sufficient buffer to read sock/peername

12 years agofix test-fs-chmod test
Igor Zinkovsky [Fri, 9 Sep 2011 06:24:45 +0000 (23:24 -0700)]
fix test-fs-chmod test

12 years agoUpgrade V8 to 3.6.2
Ryan Dahl [Thu, 8 Sep 2011 23:03:35 +0000 (16:03 -0700)]
Upgrade V8 to 3.6.2

12 years agoUpgrade libuv to 2d1c672e
Bert Belder [Thu, 8 Sep 2011 21:53:24 +0000 (23:53 +0200)]
Upgrade libuv to 2d1c672e

12 years agoUpgrade libuv to 5b567b2
Ryan Dahl [Thu, 8 Sep 2011 21:29:12 +0000 (14:29 -0700)]
Upgrade libuv to 5b567b2

12 years agoRevert "vm context with accessors"
Ryan Dahl [Thu, 8 Sep 2011 20:30:19 +0000 (13:30 -0700)]
Revert "vm context with accessors"

This reverts commit 4527de8cba3bf5f107fcefcf43dbdaa308881ba4.

Causes segfault in test/message/undefined_reference_in_new_context.js

12 years ago[debugger] call silent resume in debugEval to prevent incorrect cursor position after...
Fedor Indutny [Thu, 8 Sep 2011 20:05:21 +0000 (03:05 +0700)]
[debugger] call silent resume in debugEval to prevent incorrect cursor position after repl autocompletion, small refactor in readline

12 years agoEnable link, symlink, and readlink on windows
Igor Zinkovsky [Thu, 8 Sep 2011 19:40:56 +0000 (12:40 -0700)]
Enable link, symlink, and readlink on windows

12 years ago[debugger] added synonyms for run, cont, next, step, out, shorten breakpoint message...
Fedor Indutny [Thu, 8 Sep 2011 19:33:28 +0000 (02:33 +0700)]
[debugger] added synonyms for run, cont, next, step, out, shorten breakpoint message and do not output explicit debug> on breaks

12 years ago[debugger] resume stdin at right time when running code remotely
Fedor Indutny [Thu, 8 Sep 2011 16:04:37 +0000 (23:04 +0700)]
[debugger] resume stdin at right time when running code remotely

12 years ago[debugger] revert to using getter
Fedor Indutny [Thu, 8 Sep 2011 14:18:23 +0000 (21:18 +0700)]
[debugger] revert to using getter

12 years ago[debugger] fix messages
Fedor Indutny [Thu, 8 Sep 2011 10:44:55 +0000 (17:44 +0700)]
[debugger] fix messages

12 years ago[debugger] pause stdin on debugEval
Fedor Indutny [Thu, 8 Sep 2011 09:09:45 +0000 (16:09 +0700)]
[debugger] pause stdin on debugEval

12 years ago[debugger] handle lookup error, no more need to handle SyntaxErrors
Fedor Indutny [Thu, 8 Sep 2011 09:03:48 +0000 (16:03 +0700)]
[debugger] handle lookup error, no more need to handle SyntaxErrors

12 years ago[repl, readline] refactor async completion and execution
Fedor Indutny [Thu, 8 Sep 2011 09:03:27 +0000 (16:03 +0700)]
[repl, readline] refactor async completion and execution

12 years ago[debugger] simulate getters
Fedor Indutny [Thu, 8 Sep 2011 03:59:38 +0000 (10:59 +0700)]
[debugger] simulate getters

12 years ago[debugger] display message on repl(), do not display warnings on Ctrl+C
Fedor Indutny [Wed, 7 Sep 2011 16:43:59 +0000 (23:43 +0700)]
[debugger] display message on repl(), do not display warnings on Ctrl+C

12 years ago[debugger] use newly added `eval` argument for REPLServer
Fedor Indutny [Wed, 7 Sep 2011 16:36:26 +0000 (23:36 +0700)]
[debugger] use newly added `eval` argument for REPLServer

12 years ago[repl] let self.eval be configurable on REPLServer initialization
Fedor Indutny [Wed, 7 Sep 2011 16:35:55 +0000 (23:35 +0700)]
[repl] let self.eval be configurable on REPLServer initialization

12 years ago[debugger] Fix help message
Fedor Indutny [Wed, 7 Sep 2011 14:42:41 +0000 (21:42 +0700)]
[debugger] Fix help message

12 years ago[debugger] restructurize code, eval control repl asynchronously
Fedor Indutny [Wed, 7 Sep 2011 14:29:01 +0000 (21:29 +0700)]
[debugger] restructurize code, eval control repl asynchronously

Move commands closer to each other, use .debugEval and .controlEval for
controlling repl output (no more incorrect 'debug>' prints).

12 years ago[debugger] port all commands
Fedor Indutny [Wed, 7 Sep 2011 10:31:43 +0000 (17:31 +0700)]
[debugger] port all commands

12 years ago[repl] Async global completion
Fedor Indutny [Wed, 7 Sep 2011 10:31:29 +0000 (17:31 +0700)]
[repl] Async global completion

12 years ago[debugger] two repls, initial
Fedor Indutny [Wed, 7 Sep 2011 08:12:58 +0000 (15:12 +0700)]
[debugger] two repls, initial

12 years ago[readline, repl] Fix completion grouping, fix parens eval results
Fedor Indutny [Wed, 7 Sep 2011 08:12:10 +0000 (15:12 +0700)]
[readline, repl] Fix completion grouping, fix parens eval results
handling

12 years ago[repl, readline] async interface
Fedor Indutny [Wed, 7 Sep 2011 07:39:49 +0000 (14:39 +0700)]
[repl, readline] async interface

Add async completion and execution interface for repl and readline

12 years ago[debugger] readline => repl
Fedor Indutny [Tue, 6 Sep 2011 20:08:48 +0000 (03:08 +0700)]
[debugger] readline => repl

Started porting to high-level javascript API and repl.

12 years agovm context with accessors
Fedor Indutny [Thu, 8 Sep 2011 11:42:44 +0000 (18:42 +0700)]
vm context with accessors

true copy of sandbox properties

catch sealed errors, pass global's prototype to CloneObject

Fixes #1673

12 years agohttp: set .code='ECONNRESET' on socket hang up errors
Ben Noordhuis [Thu, 8 Sep 2011 11:46:57 +0000 (13:46 +0200)]
http: set .code='ECONNRESET' on socket hang up errors

Fixes #1672.

12 years agoutil: Fix inspection for sparse array
koichik [Thu, 8 Sep 2011 15:20:01 +0000 (00:20 +0900)]
util: Fix inspection for sparse array

Fixes #1651.

12 years agoutil: Divide inspect() into some subroutines
koichik [Thu, 8 Sep 2011 12:00:02 +0000 (21:00 +0900)]
util: Divide inspect() into some subroutines

12 years agoUpgrade GYP to r1034
Ryan Dahl [Thu, 8 Sep 2011 08:11:08 +0000 (01:11 -0700)]
Upgrade GYP to r1034

12 years agoUpgrade V8 to 3.6.1
Ryan Dahl [Thu, 8 Sep 2011 02:22:41 +0000 (19:22 -0700)]
Upgrade V8 to 3.6.1

12 years agobuffer: write() should always set _charsWritten.
koichik [Thu, 8 Sep 2011 02:47:32 +0000 (11:47 +0900)]
buffer: write() should always set _charsWritten.

Fixes #1633.

12 years agoMerge remote branch 'origin/v0.4'
Ryan Dahl [Thu, 8 Sep 2011 00:51:33 +0000 (17:51 -0700)]
Merge remote branch 'origin/v0.4'

Conflicts:
lib/net.js
test/simple/test-buffer.js

12 years agotls: new[] instead of malloc() in Connection::GetSession()
Ben Noordhuis [Wed, 7 Sep 2011 15:29:34 +0000 (17:29 +0200)]
tls: new[] instead of malloc() in Connection::GetSession()

12 years agotls: add client-side session resumption support
Sean Cunningham [Mon, 29 Aug 2011 18:09:01 +0000 (14:09 -0400)]
tls: add client-side session resumption support

12 years agodocs: document that the build system depends on python >= 2.5.2
Ben Noordhuis [Tue, 6 Sep 2011 21:11:14 +0000 (23:11 +0200)]
docs: document that the build system depends on python >= 2.5.2

Fixes #354.

12 years agodocs: typos and minor edits in several modules
Thomas Shinnick [Wed, 31 Aug 2011 13:12:34 +0000 (08:12 -0500)]
docs: typos and minor edits in several modules

Mostly quite minor edits.  Those possibly of more interest are:

  emitter.setMaxListeners(n)

    That the limit is per event name for an emitter.

  fs.readlink()

    Not a path, but rather the symbolic link's string value, which
      would be at best a partial path, certainly not a 'resolvedPath'

  global.__filename

    This may be "well-known" but this is a full path to the module
    that referencing code is running in.  It is not the main program's
    path, unless you are in the main program.  Each module knows only
    its own path.

  server.listen(port,...)

    I actually needed this functionality... "gimme just _any_ next port"

  stream.end()
  stream.destroy()

    Yeah, everybody knows what happens to the queued data, but let's
    make it *really* explicit for the first readers.

12 years agotest: test for correct parsing of URLs with plus character in protocol
Maciej Małecki [Mon, 5 Sep 2011 19:16:00 +0000 (21:16 +0200)]
test: test for correct parsing of URLs with plus character in protocol

12 years agourl: add plus sign to protocol pattern
Maciej Małecki [Mon, 5 Sep 2011 19:15:18 +0000 (21:15 +0200)]
url: add plus sign to protocol pattern

12 years agofile: translate libuv error codes to errno names
Ben Noordhuis [Tue, 6 Sep 2011 14:30:48 +0000 (16:30 +0200)]
file: translate libuv error codes to errno names

Fixes incorrect error names (ex. ENOEXEC instead of EBADF,
EMLINK instead of ENOENT).

Fixes #1656.

12 years agouv: upgrade to cc91989
Ben Noordhuis [Tue, 6 Sep 2011 14:14:14 +0000 (16:14 +0200)]
uv: upgrade to cc91989

12 years agoImprove path parsing on windows
Bert Belder [Tue, 6 Sep 2011 02:46:44 +0000 (04:46 +0200)]
Improve path parsing on windows

Closes #650

12 years agofile: fix errno propagation in sync fs calls
Ben Noordhuis [Tue, 6 Sep 2011 00:03:43 +0000 (02:03 +0200)]
file: fix errno propagation in sync fs calls

Include libuv fs error code in the JS exception.

Fixes #1657.

12 years agouv: upgrade to 58ef43e
Ben Noordhuis [Mon, 5 Sep 2011 22:24:39 +0000 (00:24 +0200)]
uv: upgrade to 58ef43e

12 years agowindows: it's rude to clobber quick edit mode
Peter Bright [Sun, 31 Jul 2011 20:19:36 +0000 (21:19 +0100)]
windows: it's rude to clobber quick edit mode

Closes #1429

12 years agoObjectWraps should be MarkIndependent
Ryan Dahl [Mon, 5 Sep 2011 21:40:30 +0000 (14:40 -0700)]
ObjectWraps should be MarkIndependent

12 years agoUpgrade libuv to a8017fd
Ryan Dahl [Mon, 5 Sep 2011 07:32:15 +0000 (00:32 -0700)]
Upgrade libuv to a8017fd

12 years agofix test-fs-realpath
isaacs [Mon, 5 Sep 2011 05:13:01 +0000 (22:13 -0700)]
fix test-fs-realpath

12 years agointernal fs functions called with this == ReqWrap
Ryan Dahl [Mon, 5 Sep 2011 02:48:55 +0000 (19:48 -0700)]
internal fs functions called with this == ReqWrap

12 years agoReturn ReqWrap from internal fs functions
Ryan Dahl [Mon, 5 Sep 2011 02:44:01 +0000 (19:44 -0700)]
Return ReqWrap from internal fs functions

12 years agoFix test-fs-error-messages.js
Ryan Dahl [Mon, 5 Sep 2011 01:46:37 +0000 (18:46 -0700)]
Fix test-fs-error-messages.js

12 years agoUpgrade libuv to 991f6ee
Ryan Dahl [Mon, 5 Sep 2011 01:16:33 +0000 (18:16 -0700)]
Upgrade libuv to 991f6ee

12 years agodgram-uv: black hole incoming messages after closing
Bert Belder [Mon, 5 Sep 2011 01:30:12 +0000 (03:30 +0200)]
dgram-uv: black hole incoming messages after closing

Fixes test/simple/test-dgram-pingpong.js on windows

12 years agoUpgrade libuv to b6ede6c
Ryan Dahl [Mon, 5 Sep 2011 00:16:07 +0000 (17:16 -0700)]
Upgrade libuv to b6ede6c

Fixes require('fs').readdirSync on unix.

12 years agonet-uv: correctly set socket.remoteAddress and -port
Bert Belder [Mon, 5 Sep 2011 00:09:24 +0000 (02:09 +0200)]
net-uv: correctly set socket.remoteAddress and -port

closes #1345