Ryan Dahl
0b925d075d
bump version
2010-08-04 12:04:12 -07:00
Ryan Dahl
7db5c8a10d
Fix toString('base64') bug
...
Thanks to Stepan Stolyarov for the test case.
2010-08-04 11:38:48 -07:00
Ryan Dahl
adec544fdd
Revert "Expose the V8 debug object process.debug"
...
This reverts commit d9fbb8a580 .
2010-08-04 10:38:19 -07:00
Ryan Dahl
31b59400f8
Allow null context in Script
2010-08-04 10:20:40 -07:00
isaacs
1a1214866f
SetBlocking should set blocking, not toggle it
2010-08-04 09:58:56 -07:00
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.
2010-08-03 18:11:43 -07:00
Ryan Dahl
d9fbb8a580
Expose the V8 debug object process.debug
...
Add one duplicate test from V8, just to make sure it works.
2010-08-02 00:46:09 -07:00
Brian
71009ad3fe
Allow signals to be used with process.on in addition to process.addListener.
2010-08-01 20:23:03 -07:00
Danny Coates
dc8c079d90
remove node::CheckBreak in favor of using the v8 debugger js object
2010-08-01 20:04:31 -07:00
Ryan Dahl
c38dd24dc5
Fix style
2010-07-30 10:54:43 -07:00
Ben Noordhuis
f72ac17c89
Buffer: graciously handle padding in base64-encoded input.
2010-07-30 10:49:00 -07:00
Ryan Dahl
f291fbc8a7
Fix ending \0 in base64 decoding
2010-07-29 14:52:40 -07:00
Ben Noordhuis
95638c9b0d
Buffer: adjust buffer size so the base64-decoded input fits snugly.
...
Stops Valgrind from complaining about uninitialized memory access.
2010-07-28 11:37:23 -07:00
Ryan Dahl
5459e5c606
Globalize the Buffer object
2010-07-27 10:58:45 -07:00
Ryan Dahl
b3c0359b56
Only one line break before stacktrace
2010-07-26 19:08:21 -07:00
Ryan Dahl
d489555553
Use kqueue on recent macintosh builds
2010-07-26 19:07:31 -07:00
Benjamin Kramer
eeaf1ef970
Constify read-only global data
...
Also silences a compiler warning about deprecated conversion from const
char* to char*.
2010-07-26 22:14:39 +02:00
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.
2010-07-26 22:14:10 +02:00
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.
2010-07-26 22:13:49 +02:00
Ryan Dahl
2a4568c85f
bump version
2010-07-25 23:39:58 -07:00
Dmitry Baranovskiy
a585c5bbb3
Fixed format, so it wouldn’t blow up if %d argument is null or undefined + ensure that numbers will be numbers
2010-07-25 20:14:12 -07:00
Ryan Dahl
2c1ca4078d
Implement buffer.write for base64
...
There might be an off-by-one on the returned value.
2010-07-23 16:36:52 -07:00
Ryan Dahl
528015e0d8
Implement buffer.toString('base64')
2010-07-23 13:52:44 -07:00
Andrew Naylor
e0d6f14b22
Buffer for Cipher, Decipher, Hmac, Sign and Verify
2010-07-23 09:08:30 -07:00
Sam Shull
8acea2693d
Add parenthesis to NODE_VERSION_AT_LEAST
2010-07-20 12:41:39 -07:00
Robert Keizer
5ebf6049d0
Added process.binding('stdio').getRows()
2010-07-20 12:38:03 -07:00
Ryan Dahl
9a26946aaa
Fix for issue #214
2010-07-19 10:32:56 -07:00
Ryan Dahl
02746eddd6
Apple's SUN_LEN is broken, override
2010-07-17 23:26:58 -07:00
Ryan Dahl
341e41726f
Set SO_REUSEADDR on all sockets
2010-07-17 23:10:38 -07:00
Ryan Dahl
fa344d8514
Fix solaris build
2010-07-16 23:24:08 -07:00
Ryan Dahl
0174ceb6b2
bump version
2010-07-16 21:50:26 -07:00
Marco Rogers
1662c37c40
Fix console formatter to recognize json properly
2010-07-15 23:36:35 -07:00
Matt Ranney
98341daee2
Fix unix dgram socket address resolution on Linux.
2010-07-15 16:46:46 -07:00
Ryan Dahl
5f30377bbc
Load modules in individual contexts
...
Add NODE_MODULE_CONTEXTS env var
Only one test was modified to check that this works. NEED to go through all
tests and modify them so that
NODE_MODULE_CONTEXTS=1 make test
passes.
2010-07-15 10:34:39 -07:00
Matt Ranney
4e50197e53
Datagram socket refactor. Add tests and documentation.
...
Support setTTL() and setBroadcast() socket options.
2010-07-15 10:27:44 -07:00
Peter Griess
e7c4f8cdaa
Buffer.copy() should liberally allow empty copies.
2010-07-15 10:20:42 -07:00
Peter Griess
b64a521d66
Buffer('') should create a 0-length buffer
2010-07-15 09:54:53 -07:00
Paul Querna
870aa3d97f
Move evals to extension module.
2010-07-14 10:55:07 -07:00
Paul Querna
ace2be8aa6
Move the Stat structure functions to node_file.cc
...
from node.cc, so we can convert fs to a module.
2010-07-14 10:42:32 -07:00
Paul Querna
82daa46e26
Move Buffer to extension model.
2010-07-14 10:37:24 -07:00
Paul Querna
4f7f43762d
Move child process to extension model.
2010-07-14 10:36:52 -07:00
Paul Querna
e65c27062f
Move http parser to extension model.
2010-07-14 10:36:24 -07:00
Paul Querna
e51aef7f3c
Move signal_watcher to extension model.
2010-07-14 10:31:45 -07:00
Paul Querna
208290b524
Move cares to extension model
2010-07-14 10:31:20 -07:00
Paul Querna
e5bb8abc9d
Move stdio to extension model.
2010-07-14 10:29:56 -07:00
Paul Querna
8dbfe5ea8f
Use the top level check for the bindings cache
...
(rather than each potential module having its own if check)
2010-07-14 10:23:24 -07:00
Paul Querna
30dadfc033
Register builtin extensions via a macro, rather than a manual strcmp
...
Set the stage for making the builtin modules more dynamic.
Note: this only converts crypto and net, I will add more extensions in a
later commit.
* node.h: Add utility macro for converting macro values to strings.
* node.h: Include the actual module name inside the module structure, not
just the file it was built from.
* node.h: New Macro, NODE_MODULE_DECL, for declaring an external reference
to a module structure.
* node_extensions.cc: New File, implements get_builtin_module, which
iterates over the module structures that are compiled into node.
* node.cc(node::Binding): Use the new module lookup function to find
modules.
* node_{net,crypto}.c: Add NODE_MODULEs to generate the module structure.
2010-07-14 10:17:25 -07:00
Ryan Dahl
6bf294d71a
JSON is %j not %f
2010-07-13 10:16:33 -07:00
Paul Querna
367b87d26d
Add support for the module structure to process.dlopen.
2010-07-13 07:08:08 -07:00
Paul Querna
49066042a2
Add basic structure and macros for node modules.
2010-07-13 06:59:53 -07:00