Ryan Dahl
adec544fdd
Revert "Expose the V8 debug object process.debug"
This reverts commit d9fbb8a580
.
14 years ago
Ryan Dahl
31b59400f8
Allow null context in Script
14 years ago
isaacs
1a1214866f
SetBlocking should set blocking, not toggle it
14 years ago
isaacs
e9aacd40c6
When the parent's stdio FDs are passed to a child, make them temporarily blocking.
Many programs do not handle non-blocking stdio very well. In particular,
man and less have serious problems with this, and since stdout isn't being
flushed after each write, the output jumps about on the screen as you page
down. Programs that do use non-blocking stdio will set that flag themselves
(as node does).
This puts the stdio file descriptors into blocking mode before sharing them
with the child process, so that one could spawn a vim subprocess, or some
other program that depends on blocking IO.
14 years ago
Ryan Dahl
a6bc68a83b
Upgrade V8 to 2.3.4
14 years ago
Ben Noordhuis
4b19bd2896
Client.onend: Anticipate that the HTTP parser object is uninitialized when the client setup failed.
14 years ago
Ryan Dahl
d9fbb8a580
Expose the V8 debug object process.debug
Add one duplicate test from V8, just to make sure it works.
14 years ago
Mikeal Rogers
3214116be6
Implement keep-alive for http.Client
Send the 'Connection: keep-alive' header in your request to enable.
14 years ago
Brian
71009ad3fe
Allow signals to be used with process.on in addition to process.addListener.
14 years ago
isaacs
65037eeb32
Don't let path.normalize get above the root.
Any path.join or path.normalize that starts with a / will not go "above" that after normalization. This is important because /../foo is almost *always* some sort of error, and doesn't match the corollary in sh: `cd $p; pwd`
At the worse, this can be a vector for exploits, since a static file server might do path.join(docroot, path.normalize("/"+req)) to get the file. If the normalized request path could be something like "/../../../etc/passwd" then bad things could happen.
14 years ago
Danny Coates
dc8c079d90
remove node::CheckBreak in favor of using the v8 debugger js object
14 years ago
Ryan Dahl
e59b3f0eb3
Upgrade http-parser for clang compat
14 years ago
Ryan Dahl
b2a2bb736b
[v8] Remove global.print from v8natives.js (fixes issue 791)
Review URL: http://codereview.chromium.org/3045016
14 years ago
Ryan Dahl
c38dd24dc5
Fix style
14 years ago
Ben Noordhuis
f72ac17c89
Buffer: graciously handle padding in base64-encoded input.
14 years ago
Ryan Dahl
cf49fc7bfe
Fix email address in AUTHORS file
14 years ago
Ryan Dahl
f291fbc8a7
Fix ending \0 in base64 decoding
14 years ago
Ben Noordhuis
95638c9b0d
Buffer: adjust buffer size so the base64-decoded input fits snugly.
Stops Valgrind from complaining about uninitialized memory access.
14 years ago
Ryan Dahl
b5b83b210b
Fix --debug-brk; hacky solution
14 years ago
Ryan Dahl
505178d82b
Add todos
14 years ago
Ryan Dahl
8052dd0022
Clarify string encoding docs
14 years ago
Ryan Dahl
5459e5c606
Globalize the Buffer object
14 years ago
Ryan Dahl
b3c0359b56
Only one line break before stacktrace
14 years ago
Ryan Dahl
d489555553
Use kqueue on recent macintosh builds
14 years ago
Matt Ranney
f7c5334195
Check for socket on Unix domain connect.
Change scope to context in REPL docs.
14 years ago
Ryan Dahl
23cf556c6c
Upgrade http-parser
support for
- long messages
- spaces in header fields
14 years ago
Ryan Dahl
552cf28260
Upgrade V8 to 2.3.3
14 years ago
Benjamin Kramer
eeaf1ef970
Constify read-only global data
Also silences a compiler warning about deprecated conversion from const
char* to char*.
14 years ago
Benjamin Kramer
93cb09642d
Add missing parentheses
& has higher precedence than ==, making this a noop. Use the less
error-prone S_IS* macros instead. Found by clang.
14 years ago
Benjamin Kramer
eeb54c63d8
Fix addrlen for unix_dgram sockets
The old definition was off by one byte on BSD. Also simplify
ADDRESS_TO_JS because sun_path is always zero-terminated now.
15 years ago
Ryan Dahl
28db0c2562
Add write() callback TODO item
14 years ago
Chandra Sekar S
66deea10c7
Support for HOME and END in REPL.
14 years ago
Ryan Dahl
6fdb874e2e
Fix DNS example in docs
14 years ago
Ryan Dahl
2a4568c85f
bump version
14 years ago
Ryan Dahl
402bcb83bc
Add reference to base64 encoding
14 years ago
Dmitry Baranovskiy
8ab3c3e7c3
Added ability to pass offset to buffer write and toString methods as a string, i.e. '2' and encoding as anything
14 years ago
Dmitry Baranovskiy
a585c5bbb3
Fixed format, so it wouldn’t blow up if %d argument is null or undefined + ensure that numbers will be numbers
14 years ago
Ryan Dahl
2c1ca4078d
Implement buffer.write for base64
There might be an off-by-one on the returned value.
14 years ago
Ryan Dahl
528015e0d8
Implement buffer.toString('base64')
14 years ago
Ryan Dahl
138593b156
Fix case in docs
14 years ago
isaacs
f0f247d7e5
Fix dirname so that dirname('/a/b/') -> '/a', like sh's does.
Before there was this comment:
Can't strip trailing slashes since module.js incorrectly
thinks dirname('/a/b/') should yield '/a/b' instead of '/a'.
But now, such thinking is corrected.
14 years ago
Andrew Naylor
e0d6f14b22
Buffer for Cipher, Decipher, Hmac, Sign and Verify
14 years ago
Ryan Dahl
cb97cdb256
Remove Werror from SConstruct
14 years ago
Ryan Dahl
e4eeaa7fbc
Upgrade V8 to 2.3.2
14 years ago
Ryan Dahl
07ab34cd58
TODO items
14 years ago
Chandra Sekar S
f5f7cb9264
Support for reading byte ranges from files using fs.createReadStream.
14 years ago
Peter Griess
56f200af5d
Fix Buffer.toString() on 0-length slices.
- Buffer.toString('ascii', 0, 0) incorrectly returns the entire contents
of the buffer. Fix this.
- Provide similar behavior to Buffer.write() and Buffer.copy() when
dealing with 0-length in valid and invalid byte ranges.
14 years ago
Sam Shull
8acea2693d
Add parenthesis to NODE_VERSION_AT_LEAST
14 years ago
Robert Keizer
5ebf6049d0
Added process.binding('stdio').getRows()
14 years ago
isaacs
d75b63bc3c
Support including modules that don't have an extension.
This way, require("/foo") will work if there is a "foo.js", or a file named
simply "foo" with no extension.
14 years ago