How to wrap C ++ classes with Duktape

I am playing with Duktape as a replacement for v8. Went through the docs and was able to call C functions from Javascript and vice versa. However, it is not clear to me how to proceed when you need to access C ++ classes from JavaScript similar to v8. Can anyone put together a very simple example to illustrate this?

Thank!

+3


source to share





All Articles