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'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
you might want to try building your objects not from the InstanceTemplate,
but from the Interface template itself in Wrap as:
functionTemplate->GetFunction()->NewInstance()
El viernes, 2 de febrero de 2018, 12:32:21 (UTC+1), Cvetan Stefanovski
escribió:
>
> Hello,
>
> I am using V8 to expose