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
Tim Caswell
68af59ef6b
Fix typo in fs.writeFile
15 years ago
Ryan Dahl
0485cc41d5
Remove promises
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
375131376f
Module loading no longer depends on Promise
The module loading code is looking extremely messy. It needs a refactor.
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
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
5468173ce9
[debug] Give debug_watcher maximum priority
15 years ago
Ryan Dahl
1bf46d1536
Revert "Add process.startTime"
Unnecessary
This reverts commit 896cef23c4
.
15 years ago
Felix Geisendörfer
490cac0d7e
Fix Promise.wait() for fired promises
Failure introduced in 80ace36e4c
15 years ago
Yuichiro MASUI
1793ee1c80
Fixed: promise late chain
15 years ago
Ryan Dahl
b82ef28d9d
Rename 'posix' module to 'fs'
15 years ago
Ryan Dahl
896cef23c4
Add process.startTime
15 years ago
Felix Geisendörfer
6c94b8e4e4
Implemented posix.catSync()
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
Ryan Dahl
76c1805c67
Add posix.truncate()
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
f3ad635576
Downcase process.ARGV/ENV to process.argv/env
15 years ago
Ryan Dahl
987441283b
Callbacks from process.fs always start with error object
15 years ago
Ryan Dahl
fc025f878a
Remove __wrap__s
15 years ago
Ryan Dahl
9f5643f427
Reorganize the start-up process
- assign 'GLOBAL' (and now 'global') inside src/node.js
- position for eventually allowing replacements to src/node.js for people
like Kris Kowal who want the nice libev and libeio bindings but not
necessarily node's choices of modules or promises.
15 years ago
Felix Geisendörfer
c86c614cac
Bug Fix: Late promise promise callbacks firing
Late promise bindings would fire regardless of the outcome of the
promise.
Test case by: Jonas "zimbatm" Pfenniger <jonas@pfenniger.name>
15 years ago
Felix Geisendörfer
a76c7a89ce
Implemented __dirname
It seems that the current __filename module global is mainly used to
determine the directory the current module is in. To make that
easier, this patch adds support for a __dirname module global
directly.
15 years ago
Jonas Pfenniger
971f43d63b
FIX: Promise timeout should not addErrback
Because now, we expect the exception to be thrown if no errback
is given, we can't let timeout() add an errback silently.
15 years ago
Jonas Pfenniger
87d92f619a
FIX: EventEmitter call in Promise
15 years ago