jackxiao / jslibs

Automatically exported from code.google.com/p/jslibs
0 stars 0 forks source link

NativeInterface inheritance #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
support NativeInterface inheritance.
eg:
 var f = { __proto__: new File('test.txt') };
 f.Open('r');
 var b = new Buffer(f);
 Print( b.Read(1) );

or:
 var f = { __proto__: Stream('1234') };
 var b = new Buffer(f);
 Print( b.Read(1) );

Original issue reported on code.google.com by sou...@gmail.com on 21 Jul 2008 at 9:42

GoogleCodeExporter commented 9 years ago

Original comment by sou...@gmail.com on 27 Feb 2009 at 4:04