Closed ghost closed 8 years ago
I think you can use jsapi::JSObject
in that specific use case (or HandleObject
directly).
Note that all public symbols from the platform-specific jsapi
module are re-exported here: https://github.com/servo/rust-mozjs/blob/master/src/lib.rs#L41
Well that's my mistake sorry.
Heh, no problem, I had a similar mistake not so long ago... https://github.com/servo/rust-mozjs/pull/216 :P
Close this if you can please :-)
This works fine.
If you try to wrap the
<js::jsapi::Handle<T>>
class. You can't actually do this because the T type is platform specific, AND private.The example use case can be seen here: https://github.com/valarauca/lib_js/blob/feda0234c91901a606fcbccdef6b386374955a21/src/lib.rs#L21-L28