- 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
-
Xavier Shay authored
-
Ryan Dahl authored
-
Felix Geisendörfer authored
This is not a bug in process.mixin, but I think it is undesirable behavior. Right now process.mixin will not copy over keys with undefined values. To me that is an unexpected filtering that should not happen unless specifically called for.
-
Felix Geisendörfer authored
Bug #1 occurred when trying to use process.mixin on a function and produced a fatal exception. Bug #2 occurred when trying to do a deep merge with an object containing one or more objects with a nodeType property. In those cases the deep copy for this part of the object was not performed and a shallow one was performed instead. Both of these bugs were artifacts of the jQuery.extend port.
-
Christopher Lenz authored
Change the http.Client API so that it provides a single request() method taking an optional parameter to specify the HTTP method (defaulting to "GET"), instead of the five methods get(), head(), post(), del() and put().
-
Ryan Dahl authored
-
- Dec 06, 2009
-
-
Xavier Shay authored
- No longer relies on JSON.stringify, so it can output nulls and functions - Handles circular references better - Has tests
-
Ryan Dahl authored
-
Ryan Dahl authored
At the same time implement synchronous wrappers of the POSIX functions. These will be undocumented until we settle on an API. Works like this // returns promise as before posix.mkdir("test").addCallback(function () { sys.puts("done"); }); // returns undefined, executed synchronously. posix.mkdirSync("test"); sys.puts("done"); This refactoring is a step towards allowing promises to be implemented purely in javascript. -
Ryan Dahl authored
-
Ryan Dahl authored
Some people were reporting waf erroring with thread.error: can't start new thread this seems to fix that problem.
-
Ryan Dahl authored
-
- Dec 05, 2009
-
-
Ryan Dahl authored
-
Ryan Dahl authored
-
Karl Guertin authored
-
Felix Geisendörfer authored
Refactored test suite to use the assert module for testing rather than mjsunit.
-
Michaeljohn Clement authored
added test case for HTTP duplicated header bug on keepalive
-
- Nov 30, 2009
-
-
Rhys Jones authored
-
jed authored
-
- Nov 29, 2009
-
-
Friedemann Altrock authored
-
Ryan Dahl authored
-
- Nov 28, 2009