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
74b7fa29a1
Refactor HTTP
Allow throttling from outgoing messages.
15 years ago
Ryan Dahl
ab068db9b1
Improve error reporting
- No more single line "node.js:176:9" errors
- No more strange output when error happens on first line due to
module wrapper function.
- A few tests to check these things
15 years ago
Tim Caswell
c07c601c3b
fs.readFile uses a buffer internally and will return the raw buffer if no encoding is specified.
15 years ago
isaacs
c0d42b0365
Look in /usr/local/lib/node for modules, so that there's a way to install modules globally
15 years ago
isaacs
cfd459abde
Move the module loading framework into lib/module.js. Minimal changes otherwise.
15 years ago
isaacs
e0061a511d
refactor path module to lib/path.js
15 years ago
isaacs
7ff53f4c6a
Refactor events module to lib/events.js
15 years ago
Michaeljohn Clement
ac9d9f4e9f
better function test in addEventListener
15 years ago
Herbert Vojcik
c2a06725d6
Script class with eval-function-family in binding('evals') plus tests.
15 years ago
Ryan Dahl
4e7e2f8724
Change nextTick implementation for the better
Use a prepare and idle watcher to execute the nextTick callback more
quickly. Test provided by Matt Ranney.
15 years ago
Ryan Dahl
b98cd6753b
process.mixin: deprecation -> removed
15 years ago
Tim Caswell
62d9852c3d
Replace slow and broken for..in loops with faster for loops over the keys.
15 years ago
Herbert Vojcik
06b9c8bf1f
Fix of normalizing paths of form ./../the/rest
15 years ago
Ryan Dahl
218d7e9f2d
Clean up NODE_DEBUG detection
It wasn't detecting if NODE_DEBUG=0
15 years ago
Herbert Vojcik
9e8afe9133
DRY loading native module
15 years ago
Carson McDonald
e5cbe73a82
Better EventEmitter modify-in-emit
Changed ReallyEmit so that it clones the Array of listeners before
processing the emit. Added better tests to make sure that modifying
listeners inside event handlers doesn't cause later listeners to be skipped
or added.
15 years ago
Scott Taylor
39f0ef9d4a
Remove duplicate shebang filtering
15 years ago
Ryan Dahl
1332cafb7c
s/Socket/Stream/g
15 years ago
Ryan Dahl
04c06b9149
child process now use net.Socket
15 years ago
Ryan Dahl
fdf46a65c9
Use streams for stdout and stdin
15 years ago
Ryan Dahl
c90546f138
Move native js files into binding object
15 years ago
Ryan Dahl
8492c52e15
Use uniform watcher names
15 years ago
Ryan Dahl
627fb5adbb
Load c++ modules on demand
15 years ago
Ryan Dahl
5c712a7da5
Lazy load fs.readFile
15 years ago
Ryan Dahl
1256df76bc
remove whitespace
15 years ago
Ryan Dahl
1395cba6ce
Remove require.paths from process object
15 years ago
Ryan Dahl
4ccdc501d4
Include lib/ directory in node executable. Compile on demand.
Instead of installing the files in /usr/lib/node/libraries and loading them
from the file system, the files are built-in to the node executable.
However, they are only compiled on demand.
The reasoning is:
1. Allow for more complex internal javascript. In particular,
process.stdout and process.stdin can be js implemented streams.
2. Ease system installs. Loading from disk each time is unnecessary
overhead. Note that there is no "system" path for modules anymore. Only
$HOME/.node_libraries.
15 years ago
Scott González
d2ec5c23cf
Fixed typo in comment for require.registerExtension().
15 years ago
Ryan Dahl
2c7cbbc1b0
Optimize event emitter for single listener
15 years ago
Ryan Dahl
c1613e6ebb
Deprecate process.mixin
15 years ago
Ryan Dahl
c96b7e5ca0
Missing EOL semicolons
15 years ago
Ryan Dahl
dd857f9fdf
.addon -> .node
How'd that get in there?
15 years ago
Tim-Smart
0c17067d87
Add require.registerExtension
15 years ago
Ryan Dahl
93c0c24a4e
process.mixin: Return instead of continue in forEach
15 years ago
Aaron Heckmann
f8eb163728
Add removeAllListeners
15 years ago
isaacs
b90d63b998
Change the include() message so that it doesn't recommend process.mixin.
15 years ago
Ryan Dahl
e72b072d53
Decouple timer from EventEmitter
15 years ago
Jacek Becela
548d59d07e
Fix fs.readFile handling encoding. Should close issue #72
15 years ago
Felix Geisendörfer
55ab9b4541
Bug fix for deep process.mixin array handling
process.mixin was throwing an exception when trying to do a deep copy
of an object that included an array.
This bug was introduced in: 3bb7ad6fea
15 years ago
Ryan Dahl
b021a845f7
Move process.inherits to sys
15 years ago
Ryan Dahl
30b700ee22
Move watchFile into fs module
15 years ago
Ryan Dahl
810882c1ad
Move 'fs' module out of src/node.js into its own file
15 years ago
Karl Guertin
9ad7539cf9
Add (unused) callback parameter to fs.readFile, fs.writeFile
15 years ago
Rasmus Andersson
b57d946184
added fs.link, fs.symlink, fs.readlink
including sync versions and complete tests
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
isaacs
9acc8a686a
Expose fs.lstat
15 years ago
Zoran Tomicic
d98ea70168
Configurable debug ports, and --debug-brk
15 years ago
Ryan Dahl
7a8ede6f80
Add note about Promise removal
15 years ago
Scott González
6eff8937d7
Fixed encoding in fs.writeFile().
15 years ago