You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested in this as well.
When you pass the foo_wrapper directly to output however it's toJS function is never called so you get the wrapper object in js.
I found that when you write something like output(std::vector<foo_wrapper>{ foo_wrapper(val.child) }) then it will transform the array element with toJS so you'd get an array of classFoo objects in javascript.
node version: 8.9.3
nbind version: 0.3.14
OS: Ubuntu 17.10
I can't seem to pass an object from C++ to JavaScript when that object has object members.
Here's a minimal reproducible example:
hello.cc:
index.js:
Output I expect from
node ./index.js
:What I see instead:
Am I doing something wrong? Any help would be appreciated.
The text was updated successfully, but these errors were encountered: