Re: Array property of custom object

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.jseng
Message-ID <[email protected]>
On 5/7/16 3:04 AM, Mihai Dobrescu wrote:
> What is js::Wrapper?

Not something you should have to deal with.  It's for a special type of 
js::Proxy that wraps another JS object and forwards some (but not all; 
it's configurable) things to it.

> I've read its comments, but still I am having a hard time to understand what are these, as no public documentation is available or I couldn't find it.

It's not public API.

> Basically, I need to handle objects with custom data (read having not always javascript datatypes). What is the best approach in this case?

You use a js::Proxy.

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.