Johan Dahlberg 9599d2d0e9 Added superCtor to ctor.super_ instead superCtor.prototype.
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.
2009-12-08 06:19:12 +01:00
2009-12-06 18:36:32 +01:00
2009-12-08 05:35:56 +01:00
2009-12-06 17:59:37 +01:00
2009-12-06 07:35:26 +01:00
2009-11-21 16:27:02 +01:00
2009-12-06 07:35:26 +01:00
2009-10-09 14:55:29 +02:00
2009-12-06 17:59:37 +01:00

Evented I/O for V8 javascript.

To build:

  ./configure
  make 
  make install

To run the tests:
  
  make test

To build the documentation and install it, you will need asciidoc and
xsltproc:

  make doc install
 
To read the documentation:

  man doc/node.1

See http://nodejs.org/ for more information. For help and discussion
subscribe to the mailing list by visiting
http://groups.google.com/group/nodejs or by sending an email to
nodejs+subscribe@googlegroups.com.
Languages
JavaScript 65.4%
C++ 22.6%
Python 8.4%
C 2.1%
HTML 0.5%
Other 0.8%