Hi, Im trying create a new class in Javascript and pass it to a function that receive a shared-ptr, but im getting this error:
*BindingError {name: 'BindingError', message: 'Cannot pass "[object Object]" as a PlatformProxy'}* The line with problem is here: https://github.com/xplpc/xplpc/blob/wasm-mapping/wasm/sample/src/plugin/wasm-module.ts#L18 CODE: *"wm.module.PlatformProxy.create(new XWebPlatformClient());"* That is a bind from here: https://github.com/xplpc/xplpc/blob/wasm-mapping/wasm/lib/src/bind.cpp#L41-L51 CODE: *EMSCRIPTEN_BINDINGS(xplpc_proxy_platform_proxy){ em::class_<xplpc::proxy::PlatformProxy>("PlatformProxy") .smart_ptr<std::shared_ptr<xplpc::proxy::PlatformProxy>>("PlatformProxy") .class_function("shared", &xplpc::proxy::PlatformProxy::shared) .class_function("createDefault", &xplpc::proxy::PlatformProxy::createDefault) .class_function("create", &xplpc::proxy::PlatformProxy::create) .class_function("hasProxy", &xplpc::proxy::PlatformProxy::hasProxy) .function("initialize", &xplpc::proxy::PlatformProxy::initialize) .function("call", &xplpc::proxy::PlatformProxy::call);}* After search a lot, i don't know understand what is wrong and what i need pass to "create" function that receive a shared-ptr. Thanks for any help. -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/2e124f95-7884-4d4b-8a31-e854d4a3399an%40googlegroups.com.