To my knowledge, inheritance in JavaScript should be written:

function Base () {
  // Initialize Base
}

function Derived () {
  Base.call(this); // call Base constructor and initialize Base
"parts"
  // Initialize Derived
}
Derived.prototype = new Base;
Derived.prototype.constructor = Derived;


How do I allow for this to work if Base is a wrapped native instance
with an internal field, and Derived is a script only object?

When using Signature, args.Holder() seems to contain the prototype
instance of Base, not the inherited script Derived instance.

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to