Fedor Indutny
49888a01c3
Cygwin: process.execPath fix
15 years ago
Ryan Dahl
f4f05a8851
Unset CLOEXEC on spawn's customFds
15 years ago
Bert Belder
94914135df
New api for child_process.spawn; ability to set cwd for spawn()ed process
Tests for child_process.spawn() use new API
Test for deprecated child_process.spawn() API
15 years ago
Ryan Dahl
d408de87fc
Remove module.js - put code into src/node.js
15 years ago
Tj Holowaychuk
e8795cea30
Added console.trace()
15 years ago
Tj Holowaychuk
a8e1e8d057
Added console.{time,timeEnd}()
15 years ago
Tj Holowaychuk
e15221a8de
console formatter appends extra arguments
This makes the console methods more "browser-like",
for example:
console.log("foo", "bar", "baz");
// foo bar baz
but still works with formatting
console.log("hey %s", "tj", "whats up");
// hey tj whats up
15 years ago
Felix Geisendörfer
ffbbc465d3
Support inspecting objects with console.log
If the first parameter passed into console.log() is not a string, all
parameters will be printed as formated by sys.inspect. This change
also affects console.info and console.warn.
15 years ago
Ryan Dahl
0b925d075d
bump version
15 years ago
Ryan Dahl
7db5c8a10d
Fix toString('base64') bug
Thanks to Stepan Stolyarov for the test case.
15 years ago
Ryan Dahl
adec544fdd
Revert "Expose the V8 debug object process.debug"
This reverts commit d9fbb8a580
.
15 years ago
Ryan Dahl
31b59400f8
Allow null context in Script
15 years ago
isaacs
1a1214866f
SetBlocking should set blocking, not toggle it
15 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.
15 years ago
Ryan Dahl
d9fbb8a580
Expose the V8 debug object process.debug
Add one duplicate test from V8, just to make sure it works.
15 years ago
Brian
71009ad3fe
Allow signals to be used with process.on in addition to process.addListener.
15 years ago
Danny Coates
dc8c079d90
remove node::CheckBreak in favor of using the v8 debugger js object
15 years ago
Ryan Dahl
c38dd24dc5
Fix style
15 years ago
Ben Noordhuis
f72ac17c89
Buffer: graciously handle padding in base64-encoded input.
15 years ago
Ryan Dahl
f291fbc8a7
Fix ending \0 in base64 decoding
15 years ago
Ben Noordhuis
95638c9b0d
Buffer: adjust buffer size so the base64-decoded input fits snugly.
Stops Valgrind from complaining about uninitialized memory access.
15 years ago
Ryan Dahl
5459e5c606
Globalize the Buffer object
15 years ago
Ryan Dahl
b3c0359b56
Only one line break before stacktrace
15 years ago
Ryan Dahl
d489555553
Use kqueue on recent macintosh builds
15 years ago
Benjamin Kramer
eeaf1ef970
Constify read-only global data
Also silences a compiler warning about deprecated conversion from const
char* to char*.
15 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.
15 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
2a4568c85f
bump version
15 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
15 years ago
Ryan Dahl
2c1ca4078d
Implement buffer.write for base64
There might be an off-by-one on the returned value.
15 years ago
Ryan Dahl
528015e0d8
Implement buffer.toString('base64')
15 years ago
Andrew Naylor
e0d6f14b22
Buffer for Cipher, Decipher, Hmac, Sign and Verify
15 years ago
Sam Shull
8acea2693d
Add parenthesis to NODE_VERSION_AT_LEAST
15 years ago
Robert Keizer
5ebf6049d0
Added process.binding('stdio').getRows()
15 years ago
Ryan Dahl
9a26946aaa
Fix for issue #214
15 years ago
Ryan Dahl
02746eddd6
Apple's SUN_LEN is broken, override
15 years ago
Ryan Dahl
341e41726f
Set SO_REUSEADDR on all sockets
15 years ago
Ryan Dahl
fa344d8514
Fix solaris build
15 years ago
Ryan Dahl
0174ceb6b2
bump version
15 years ago
Marco Rogers
1662c37c40
Fix console formatter to recognize json properly
15 years ago
Matt Ranney
98341daee2
Fix unix dgram socket address resolution on Linux.
15 years ago
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.
15 years ago
Matt Ranney
4e50197e53
Datagram socket refactor. Add tests and documentation.
Support setTTL() and setBroadcast() socket options.
15 years ago
Peter Griess
e7c4f8cdaa
Buffer.copy() should liberally allow empty copies.
15 years ago
Peter Griess
b64a521d66
Buffer('') should create a 0-length buffer
15 years ago
Paul Querna
870aa3d97f
Move evals to extension module.
15 years ago
Paul Querna
ace2be8aa6
Move the Stat structure functions to node_file.cc
from node.cc, so we can convert fs to a module.
15 years ago
Paul Querna
82daa46e26
Move Buffer to extension model.
15 years ago
Paul Querna
4f7f43762d
Move child process to extension model.
15 years ago
Paul Querna
e65c27062f
Move http parser to extension model.
15 years ago