Benjamin Thomas
b1b84960ce
Rename writeHeader to writeHead
15 years ago
Ryan Dahl
b08f2af344
Update common.js path for new test layout
15 years ago
arlolra
04fac19822
Split tests.
15 years ago
Rasmus Andersson
b57d946184
added fs.link, fs.symlink, fs.readlink
including sync versions and complete tests
15 years ago
Ryan Dahl
05ae932a0e
Implement fs.readdirSync()
15 years ago
Benjamin Thomas
49cd1bbf84
Fix bug in process.mixin where deep copies would not work at all.
Before, doing this:
var sys = require("sys");
var obj = {
one: 1,
two: 2,
three: {
value: 3
}
};
sys.p(process.mixin(true, {}, obj));
Would output this:
{
"two": 2,
"three": {
"one": 1,
"two": 2,
"three": {
"value": 3
},
"value": 3
},
"one": 1
}
When it should have outputed this:
{
"one": 1,
"two": 2,
"three": {
"value": 3
}
}
15 years ago
Ryan Dahl
4c8889bba2
Revert "Add fs.readdirSync()"
Doesn't work on Linux.
This reverts commit 05d6da6c4a
.
15 years ago
isaacs
9acc8a686a
Expose fs.lstat
15 years ago
Ryan Dahl
12d78cd1df
Rename sendHeader to writeHeader; allow reasonPhrase
15 years ago
Micheil Smith
05d6da6c4a
Add fs.readdirSync()
15 years ago
Ryan Dahl
a0c48eecab
Rename readPause and readResume to pause/resume
15 years ago
Ryan Dahl
0485cc41d5
Remove promises
15 years ago
Ryan Dahl
7a51184420
Multipart test no longer depend on Promise
15 years ago
Ryan Dahl
fcda5e8dfa
If ab isn't installed skip keep-alive test
15 years ago
Rasmus Andersson
860fcf23f4
skipping TLS test if node was not compiled with TLS
15 years ago
Ryan Dahl
de7016eac5
sys.exec() no longer uses Promise
15 years ago
Ryan Dahl
d0f2d465aa
http.cat no longer uses Promise
15 years ago
Ryan Dahl
ef55324f1a
Do not use Promise in 'fs' module
15 years ago
Ryan Dahl
764783560e
Remove Promise.prototype.wait()
I don't want users to have to think about coroutine safety.
http://thread.gmane.org/gmane.comp.lang.javascript.nodejs/2468/focus=2603
15 years ago
Ryan Dahl
860d008d54
Truly synchronous require()
This is to reduce our dependency on wait(). For some reason this patch
affects the timer test:
% ./node test/mjsunit/test-timers.js
diff: 989
diff: 989
diff: 1989
diff: 2989
Previously it showed:
% ./node test/mjsunit/test-timers.js
diff: 1000
diff: 1000
diff: 2000
diff: 3000
I'm not sure what caused this change, and it's rather disturbing. However I
want to remove wait() as soon as possible and so am pushing this patch
through.
The module loading code is becoming increasingly ugly - this patch has not
helped. A refactor needs to be done soon.
15 years ago
Rasmus Andersson
3bb7ad6fea
fixed process.mixin to properly copy getters/setters
15 years ago
Micheil Smith
bcc032e43a
Adding interface between node and libeio for Chmod.
15 years ago
Ryan Dahl
c2e58c9dee
Remove a few wait() calls in the tests
15 years ago
Ryan Dahl
0314a10e10
Clean up and rename test-stat-handler
15 years ago
Ryan Dahl
92292c8394
Rename a few remaining fs.cat calls.
15 years ago
Ryan Dahl
5013bf1781
API: OutgoingMessage.prototype.finish() renamed to close()
15 years ago
Tim Caswell
6115df6338
File API tweaks
- Rename fs.cat to fs.readFile
- Move file.write to fs.writeFile
- Allow strings for the flag argument to fs.open
("r", "r+", "w", "w+", "a", "a+")
- Remove the unused 'File' module / class
15 years ago
Ryan Dahl
ae85d9af97
API: Make request/response object closer to stream interface
- sendBody() renamed to write()
- 'body' event renamed to 'data'
- 'complete' event renamed to 'end'
15 years ago
isaacs
46a47d2799
Add some puts() to test-multipart.js to show what it's doing.
15 years ago
Ryan Dahl
23cf502db7
API: connection.send() renamed to connection.write()
15 years ago
Jonas Pfenniger
80ace36e4c
Added failing test: promise.wait() after promise.emitXXX()
15 years ago
Yuichiro MASUI
1793ee1c80
Fixed: promise late chain
15 years ago
Mark Hansen
98e61db216
sys.inspect(Date) now shows the date value
15 years ago
Ryan Dahl
b82ef28d9d
Rename 'posix' module to 'fs'
15 years ago
Ryan Dahl
bc17d94a0a
API: tcp events 'receive' to 'data', 'eof' to 'end'
No deprecation messages. Not sure how...
15 years ago
Felix Geisendörfer
211e82e8d9
Simple test case for require.async()
This is to make sure this doesn't break after implementing the new
truly sync require() function.
15 years ago
Felix Geisendörfer
6c94b8e4e4
Implemented posix.catSync()
15 years ago
Ryan Dahl
1b42276851
Small clean up to test-timers.js
15 years ago
Felix Geisendörfer
b02b54e003
Fix: Module cache did not propagate
This patch makes sure nested modules are available in their parents
cache. The module simplification broke this behavior.
See:
http://groups.google.com/group/nodejs/browse_thread/thread/e875132469547d2
b73f61a137
15 years ago
Michael Stillwell
9f6f19df1b
Add test: modifying event listeners during callback.
15 years ago
Tim Caswell
e33c66654a
Rewrite sys.inspect to be more reliable and handle crazy edge cases.
15 years ago
isaacs
3adcdfc2e1
A rewrite of multipart library.
1. Support streaming in the simple case. Put huge warnings around the
buffering API.
2. Support nested multipart messages.
3. Support various kinds of multipart messages, including all the various
absurdities of multipart email messages.
4. Error out on various invalid types of data that might come through.
5. Gracefully several edge cases that occur when the chunk size is smaller
than the boundary length, or cuts into the \r\n, etc.
6. Provide both positive and negative tests.
15 years ago
Ryan Dahl
ae1fc497bb
Fix stdout flush issue
http://github.com/ry/node/issues#issue/53
15 years ago
Ryan Dahl
a695065305
Add failing test for stdout flush on exit
15 years ago
Ryan Dahl
fe85062046
Bugfix: blocked pumping in stdio coupling
This should fix the test in c05b5d8
by Mikeal Rogers.
15 years ago
Mikeal Rogers
c05b5d8b59
Adding test for bug in stdio.
http://groups.google.com/group/nodejs/browse_thread/thread/10fda8eaf7276642/e5d5147f2b666abd
15 years ago
Felix Geisendörfer
b73f61a137
Simplified module system
createModule got removed as it was unnecessary and caused issues by
doing its own cache checks independent of loadModule. Internal modules
are now the only globally cached modules, all other modules are only
cached by inheriting their parent modules cache.
Credits: Module specific cache and a few other diffs by Blaine Cook
431662d25c
http://romeda.org/blog/2010/01/hot-code-loading-in-nodejs.html
http://thread.gmane.org/gmane.comp.lang.javascript.nodejs/1994
15 years ago
Ryan Dahl
173a8c9842
Disable dns and fs-sendfile tests.
15 years ago
Ryan Dahl
33509bdbe5
eof -> end
15 years ago
Felix Geisendörfer
ac2abe5b1e
Bugfix: Handle Content-Type headers with charset
Some HTTP clients include a charset parameter in the Content-Type, e.g:
multipart/form-data; charset=utf-8; boundary=0xKhTmLbOuNdArY
This patch makes the multipart parser more forgiving towards unexpected
information included in the Content-Type header.
15 years ago