>From the right address this time.

yours,
anton.

On Tue, Mar 16, 2010 at 7:07 AM, Anton Muhin <[email protected]> wrote:
> That's expected behaviour.  Roughly: for native methods to operate
> properly they assume holder naturally holds native data.  But you
> always have This() at your disposal to either find Derived or just
> read properties in normal JS way.
>
> hth and yours,
> anton.
>
> On Tue, Mar 16, 2010 at 1:35 AM, Henrik Lindqvist
> <[email protected]> wrote:
>> 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
>>
>

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

Reply via email to