Not sure what IsConstructCall check is, but when I do this, I just set the 
prototype of the newly created JS object to the prototype of the JS object 
with the C++ object in its internal field.   

Not sure how useful this code is for someone else to look at (it's pretty 
ugly), but here's where I set the 
prototypes:  
https://github.com/xaxxon/v8toolkit/blob/master/include/v8toolkit/bidirectional.h#L428-L431

On Tuesday, February 6, 2018 at 5:27:01 AM UTC-8, Cvetan Stefanovski wrote:
>
> I've tried that already and it's same result. I cannot get past that 
> IsConstructCall check no matter what I do. So clearly I miss something when 
> building the templates.
>
> V8 documentation is vague, almost non-existent for complex cases like 
> this, so not helpful at all...
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" 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/d/optout.

Reply via email to