Ah, gotcha. It doesn't work well with inheritance, unfortunately. You
should create GPIO instance explicitly and use it inside your js
class.

On Sat, Nov 16, 2013 at 7:39 PM,  <[email protected]> wrote:
> Hi,
>
> aren't the links in the first post working?
>
> Test:
> https://github.com/bodokaiser/node-native-gpio/blob/master/test/src/gpio/inheritance.js
>
> GPIOWrap
> https://github.com/bodokaiser/node-native-gpio/blob/master/src/gpio_wrap.cc
>
> Best,
> Bo
>
> Am Samstag, 16. November 2013 16:25:51 UTC+1 schrieb Fedor Indutny:
>>
>> Heya!
>>
>> May I ask you put links to your code here?
>>
>> On Sat, Nov 16, 2013 at 7:14 PM,  <[email protected]> wrote:
>> > Hello,
>> >
>> > I want to inherit from a C++ add-on prototype but get:
>> >
>> > Assertion failed: (handle->InternalFieldCount() > 0), function Unwrap,
>> > file
>> > /Users/bodokaiser/.node-gyp/0.10.22/src/node_object_wrap.h, line 61.
>> >
>> > when I access a inherited method.
>> >
>> > Test where error occurs
>> >
>> > Source file of the ObjectWrap prototype
>> >
>> > Best,
>> > Bo
>> >
>> > --
>> > --
>> > Job Board: http://jobs.nodejs.org/
>> > Posting guidelines:
>> > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> > You received this message because you are subscribed to the Google
>> > Groups "nodejs" group.
>> > To post to this group, send email to [email protected]
>> > To unsubscribe from this group, send email to
>> > [email protected]
>> > For more options, visit this group at
>> > http://groups.google.com/group/nodejs?hl=en?hl=en
>> >
>> > ---
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "nodejs" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to [email protected].
>> > For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to