Ryan Dahl
515dc2161b
Experimental: 'on' as alias to 'addListener'
15 years ago
Ryan Dahl
82ce3481fe
Fix undefined_reference_in_new_context test
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
Blake Mizerany
8c8534046c
fix whitespace errors
15 years ago
Dmitry Baranovskiy
f8ca6b383c
Rewrote QueryString.parse to make it smaller and more effective.
Also added ability to parse foo.bar=4 equal to foo[bar]=4
Added tests for this as well
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
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
Mikeal Rogers
f62979da6b
Add sys.pump
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
Peter Griess
51bd1b4483
Only concatenate some incoming HTTP headers.
- Concatenate 'accept', 'accept-charset', 'accept-encoding',
'accept-language', 'connection', 'cookie', and 'x-*' headers.
- For all others, drop duplicates.
15 years ago
Ryan Dahl
cb79614f73
Don't encourage strange ideas about req race conditions
15 years ago
Ryan Dahl
eda21cccb4
Fix race condition in test-http-exceptions.js
15 years ago
Ryan Dahl
b93faf9afa
Comment out lines with full paths in message test.
Note that * in the .out files is a special wildcard.
15 years ago
Ryan Dahl
f1a4f17897
script.runIn*Context not throwing errors properly.
15 years ago
Ryan Dahl
7d0252eae2
Fix message tests
15 years ago
Ryan Dahl
125b868e06
Add message tests
15 years ago
Micheil Smith
70c3e661b8
test-child-process-custom-fds to cleanup after running
15 years ago
Micheil Smith
e0d30b545a
Renaming tcp tests to net tests
15 years ago
Micheil Smith
3f48276bf9
Coding style changes, added tests in for the md5, sha256, etc methods
15 years ago
Peter Griess
187f191558
Support 'upgrade' event in HTTP client.
- Add a unit test for client HTTP upgrade.
- Move around unit tests for server HTTP upgrade.
15 years ago
Ryan Dahl
cbf2a2233e
Add callback to dgramSocket.send()
15 years ago
Ryan Dahl
cf86527a28
Fix writeFile(buffer) test
15 years ago
Micheil Smith
b05daaaf69
Adding path.existsSync (with tests.)
15 years ago
Aaron Heckmann
1d088fb906
fs.writeFile accepts Buffers
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
14414f81f3
Soft deprecation of 'listening' event.
Add callback param to listen() instead
15 years ago
Peter Griess
c9dde726c6
Test case for net.Server.listenFD()
15 years ago
Ryan Dahl
009b4569b3
Merge Hash.init() function into JS constructor
15 years ago
Felix Geisendörfer
5f3906b65e
Fix: fs.writeFile could not handle utf8
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
Ryan Dahl
fe89caba2e
Improve fs.write tests
15 years ago
Ryan Dahl
a6942b345d
Fix test-repl
15 years ago
Peter Griess
8f0b4e9111
Send and receive file descriptors through net.Stream.
a) create a layer of indirection in net.Stream to allow swapping in
different read/write implementations and
b) emit an 'fd' event when file descriptors are received over a UNIX pipe,
as finally as a tangential benefit
c) remove a bunch of conditionals from the primary codepaths for
ease-of-reading.
15 years ago
Ryan Dahl
55a6f01732
Server responses should have a body if HEAD request
15 years ago
Orlando Vazquez
92da636b97
Add a parameter to spawn() that sets the child's stdio file descriptors.
After the child is forked, these file descriptors will get dup2()'d to STDIN,
STDIO, and STDERR.
(API may be changed.)
15 years ago
Ryan Dahl
1a5acd9850
API: readFileSync without encoding argument now returns a Buffer
Correctly load utf8 data; add a test test-fs-read-file-sync.js
15 years ago
Ryan Dahl
80a8e71fe0
Insert some hot paths into HTTP
15 years ago
Ryan Dahl
74b7fa29a1
Refactor HTTP
Allow throttling from outgoing messages.
15 years ago
Ryan Dahl
0e713e7482
:%s/8000/PORT/g for a few tests
15 years ago
Ryan Dahl
8840ce340d
Bugfix: fs.ReadStream.setEncoding
Improve test-fs-read-stream test.
15 years ago
Sam Hughes
895f89d62a
Avoided sending empty chunkedEncoding chunks in the middle of http responses
15 years ago
Ryan Dahl
15ec99ec59
Fix issue 89, parsing responses to HEAD requests
Test from Mark Hansen (mark at markhansen.co.nz)
15 years ago
Ryan Dahl
19f475c573
fs.ReadStream should emit Buffers
And do proper utf8 encoding.
15 years ago
Aapo Laitinen
c4876d01a1
Change the behavior of path.extname
Make path.extname return an empty string also if:
- The last dot is not in the last path component
- The last dot starts the last path component
15 years ago
Mikeal Rogers
fe3d8f2411
Add assert.ifError
15 years ago