kolodny / es-lab

Automatically exported from code.google.com/p/es-lab
0 stars 0 forks source link

small error in traits.js #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
in line 82 of traits.js :
http://code.google.com/p/es-lab/source/browse/trunk/src/traits/traits.js#82

it seems the getPrototypeOf fallback implementation is wrong and should really 
be:

 return obj.prototype;

instead of 

 return Object.prototype;

Since I didn't try to use the lib yet, I don't know if this cause any problem 
though, but I bet it could.

Original issue reported on code.google.com by fel...@gmail.com on 30 May 2011 at 7:11