Ryan Dahl
192234c689
Remove unnecessary defines in node_events.cc
15 years ago
Ryan Dahl
8a52fb7aeb
Revert "Fix 'uncaughtException' for top level exceptions"
This reverts commit 8f8dcf8ed6
.
15 years ago
Ryan Dahl
8f8dcf8ed6
Fix 'uncaughtException' for top level exceptions
Done by not evaluating the code in the first tick.
This breaks one test in test-error-reporting.js but I believe this to be a
V8 error and I have reported it in
http://code.google.com/p/v8/issues/detail?id=764
15 years ago
Ryan Dahl
d49d53fd49
Expose new HTTP methods
15 years ago
Blake Mizerany
8c8534046c
fix whitespace errors
15 years ago
Ryan Dahl
0a8bd34b69
Resolve .local domains with getaddrinfo()
C-Ares doesn't go through the Name Service Switch (NSS) and thus can't
resolve certain classes of names. Generally this doesn't matter and the
whole idea of NSS is rather annoying. Nevertheless until C-Ares gets better
support, adding this hack to go through getaddrinfo() for .local domain look
up.
This reverts commit 9926dacd14
.
15 years ago
Matt Ranney
02ed0ec93b
On overlapping buffers use memmove
15 years ago
Ryan Dahl
5e86d01385
Revert "Buffer.copy should copy through sourceEnd, as specified."
This reverts commit a2f70da4c9
.
Keep tests modifies a few edge checks on Copy()
15 years ago
Ryan Dahl
6b430a95c9
console.log: if not string, coerce into one
15 years ago
Ryan Dahl
5aadeae888
Simply C++ event emitter
15 years ago
Ryan Dahl
b69c6a03b1
If not string, console.log should just print it without trying to format
15 years ago
Ryan Dahl
c9e12204a2
Stub out console.log format strings, info, warn, error
15 years ago
Ryan Dahl
23172c5d85
Lint node_script.cc
15 years ago
Ryan Dahl
e2db605308
Use EVBACKEND_POLL on Solaris; select() is just a wrapper anyway
15 years ago
Ruben Rodriguez
242161bef2
Added new API to Script, and implemented it in the REPL
15 years ago
Matt Ranney
a2f70da4c9
Buffer.copy should copy through sourceEnd, as specified.
Improve test-buffer.js to cover all copy error cases.
Fix off by one error in string_decoder.
15 years ago
Ryan Dahl
ba792ea202
:%s/sys.puts/console.log/g
and there was much rejoicing
15 years ago
Ryan Dahl
f541043618
Remove ini.js
15 years ago
Ryan Dahl
fc175a089d
Remove mjsunit from repo
15 years ago
Ryan Dahl
1b5ec7017d
Don't use NULL in realpath() on darwin, doesn't work in older versions
Thanks to Peter Griess <pg@std.in> for the bug report.
15 years ago
Marshall Culpepper
ca35ba640a
Initial implementation of process.execPath
Darwin, Linux, Solaris. FreeBSD still needs testing.
TODO: Amend the tests where we use spawn with argv[0].
15 years ago
Ryan Dahl
f1a4f17897
script.runIn*Context not throwing errors properly.
15 years ago
Ryan Dahl
9bd3942f70
Add platform_none for cygwin build
15 years ago
Ryan Dahl
84c10265db
Fix platform_linux.cc, missing include
15 years ago
Ryan Dahl
01a8d270cf
Add platform files, move getmem to node::OS class.
15 years ago
David Siegel
81ad8106dc
Add UDP broadcast support
15 years ago
isaacs
73f207fe59
Throw exceptions, not strings
15 years ago
Ryan Dahl
c2e2479cc5
Fix Linux build
15 years ago
Peter Dekkers
e48f0d1dd9
Fixed incorrect mask for determining fs.Stats types
15 years ago
isaacs
4ce100fa62
A replacement for decodeURIComponent that doesn't throw.
And add a few more tests.
15 years ago
Ryan Dahl
6bed15e074
Refactor: Utf8Decoder -> StringDecoder
Instead of just decoding Utf8, this will proxy requests to buffer.toString()
for other encodings. This makes for a simpler interface.
15 years ago
Ryan Dahl
459440842f
More lint on node_crypto
15 years ago
Ryan Dahl
9854216d36
Fix a bunch of memory leaks in node_crypto
15 years ago
Ryan Dahl
5bc00abed7
Lint node_crypto.cc
15 years ago
Ryan Dahl
5f88097eb4
Remove unused code from node_crypto
15 years ago
isaacs
1ffdad010b
Expose the FD numbers for stdin and stderr on process.binding("stdio")
15 years ago
Ryan Dahl
d6072766ed
Fix memory leak in hash.update()
15 years ago
Ryan Dahl
009b4569b3
Merge Hash.init() function into JS constructor
15 years ago
Paul Querna
02da5ed4a1
Implement datagram sockets
- Adds new dgram module, for all data-gram type transports
- Supports both UDP client and servers
- Supports Unix Daemon sockets in DGRAM mode too (think syslog)
- Uses a shared Buffer and slices that as needed to be reasonably
performant.
- One supplied test program so far, test-dgram-pingpong
- Passes test cases on osx 10.6 and ubuntu 9.10u
15 years ago
isaacs
94be898fbc
Remove "uri" module.
The deprecation warning was broken, so clearly no one is using this thing.
15 years ago
Ryan Dahl
0e390d69a8
Don't use bzero
15 years ago
Raffaele Sena
b3b81d67ff
Port to cygwin
15 years ago
Ryan Dahl
bca16a0581
Handle ctrl+z from readline
15 years ago
Ryan Dahl
0c3b6aba7a
Do not output \n on stderr on output, breaks tests
15 years ago
Ryan Dahl
6056d2ea2c
node without arguments starts the REPL
15 years ago
Ryan Dahl
41f213be18
Add binding to termios, implement readline for repl
15 years ago
Ryan Dahl
9be6c501ec
Upgrade http-parser
15 years ago
Ryan Dahl
935f8437fd
Allow ObjectWrap destructors before Wrap()
15 years ago
Ryan Dahl
9e8df0e836
More dynamic linking options (again)
Original commit: 75f0cf471a
15 years ago
Peter Griess
78d33f4fd5
Fix options parsing
The current node has a bug where it will fail to pass the option argument
immediately preceding the first non-option argument to V8. That is the
--perf flag will be ignored by V8 when running 'node --perf script.js'.
15 years ago