Closed jcmonnin closed 7 years ago
Hi,
Well, I've never used class in this way, and may only suggest now to try `v8pp::class
Maybe you also have to set manually the class name: v8pp::class_<T>::.class_function_template()->SetClassName(...)
Thanks. I could make it work that way.
Hi,
I need do a binding on an existing codebase. The resulting JavaScript interface needs to be compatible to what we had before (it was using QtScript).
Some classes are added directly in the global scope of JavaScript (ie.
var x = X()
instead ofvar x = module.X()
)A module is added that way:
I have not found a way to achieve the same using a
v8pp::class_
. There is nonew_instance
method in it.Is there a way to achieve what I want?