I'm having a case where I have a FunctionTemplate and I need it to
inherit from the built in Array. It seems like FunctionTemplate can
only inherit from another FunctionTemplate and not from an Object.
In JS code I could simply do this by setting the prototype of a
function object to an array
function MyConstructor() {}
MyConstructor.prototype = Object.create(Array.prototype);
But doing so in C++ code would be bad because we create the instances
directly from the FunctionTemplate and adding an extra step there
would most likely be too slow.
erik
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users