If you are fine with using an unstable interface, you can use js::SetObjectMetadataCallback and pin any properties you need to the pmetadata object. Note that this does disable some optimizations however, so may not be appropriate for your usage.
There is certainly no way to change the class or add a finalizer after the fact. On Tue, Feb 10, 2015 at 9:23 AM, Jason Hill <jamesjasonh...@gmail.com> wrote: > > > 1 - Is it possible to update an object properties created on the JS > land ? > > > What I need to do is that setting private data / data slot into any > Object > > > created on the JS land. > > > > > > > It is possible to store per-object information (in a WeakMap), but it's > not > > possible to get a list of every object created by JS code, or get a > > callback every time an object is created. (If I'm wrong about this > someone > > will correct me...) > > > > > Thanks for the answer. Perhaps there is no way to alter JSClass details > for an Object initialized on the JS land ? > _______________________________________________ > dev-tech-js-engine-internals mailing list > dev-tech-js-engine-internals@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals > _______________________________________________ dev-tech-js-engine-internals mailing list dev-tech-js-engine-internals@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals