- Dec 23, 2009
-
-
Ryan Dahl authored
-
Felix Geisendörfer authored
This is actually undesireable as it takes away control from the user who may want to pause/resume to throttle the upload stream, or synchronize it with disk flushing. I actually ran into memory issues when trying to stream huge files to disc as the file module was building up a huge action buffer. This can now easily be avoided like this: part.addListener('body', function(chunk) { req.pause(); file.write(chunk).addCallback(function() { req.resume(); }); } -
Jonas Pfenniger authored
'this' will point to "arguments" and the arguments of the callback itself will not be set.
-
Ryan Dahl authored
-
isaacs authored
Added some more tests, and refactored the uri and path modules to use the same normalization logic, so that nothing is relying on flaky regexps. http://groups.google.com/group/nodejs/browse_thread/thread/34779f8c10098c5e http://groups.google.com/group/nodejs/browse_thread/thread/1aa0146b92582679#msg_9822c03998cb4064
-
- Dec 19, 2009
-
-
Ryan Dahl authored
-
isaacs authored
-
isaacs authored
Fix for bug brought up by nua in irc, where child modules get the wrong id when loaded from a parent module with an id of index.js or index.addon.
-
isaacs authored
-
isaacs authored
If you have a circular require chain in which one or more of the modules are referenced with a ".." relative path, like require("../foo"), node blows up. This patch un-blows-up that case. There still seem to be issues with circularity, but this solves one of the more obnoxious ones. -
Ryan Dahl authored
Reported by Kris Zyp http://groups.google.com/group/nodejs/browse_thread/thread/1feab0309bd5402b
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
Pull in the uri.js from Narwhal and create tests, stripping out the cruft from a previous code-surgery.
-
visionmedia authored
Acts in pretty much the same manor just a bit more elegant
-
- Dec 18, 2009
-
-
Joshaven Potter authored
-
Micheil Smith authored
-
Ryan Dahl authored
-
Rasmus Andersson authored
-
Ryan Dahl authored
-
Rasmus Andersson authored
-
Rasmus Andersson authored
-
Ryan Dahl authored
-
Ryan McGrath authored
Added in API documentation concerning the (seemingly undocumented) process.chdir() method, complementary to process.cwd()
-
- Dec 09, 2009
- Dec 08, 2009
-
-
Ryan Dahl authored
-
Ryan Dahl authored
-
Johan Dahlberg authored
This way let's us do deep comparison between object instances. I have a suggestion for the sys.inherits function. Today it's impossible to deep comparison between instance and class. Take this snippet for example: function ClassA() {} function ClassB() {} sys.inherits(ClassB, ClassA); var instance = new ClassB(); The instance variable inherits from ClassA but we can't check it (which is useful sometimes). You can compare the instance against ClassB (instance.constructor == ClassB) but we can't compare it deeper (instance.constructor.super == ClassA). The committed change simply assign super to the super constructor instead of the super prototype. I can't see any problem with this fix. You can still get the super constructor by calling super_.prototype. -
visionmedia authored
Express (my framework) uses them as a default response body when non is present. Others might use them for something as well. Beats duplicating the list :D
-
Ryan Dahl authored
-
Ryan Dahl authored
-
- Dec 07, 2009
-
-
Ryan Dahl authored
-