On Tuesday, February 10, 2015 at 7:41:07 PM UTC+1, Nick Fitzgerald wrote:
> On Tue, Feb 10, 2015 at 9:14 AM, Jason Orendorff 
> wrote:
> 
> > On Tue, Feb 10, 2015 at 10:27 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...)
> >
> 
> 
> You can also get a list of every reachable object with
> `Debugger.prototype.findObjects` >:)
> 
> https://developer.mozilla.org/en-US/docs/Tools/Debugger-API/Debugger#Function_Properties_of_the_Debugger_Prototype_Object

I don't know if it helps but;
In terms of tracking the GC for a particular JS side object, you may create a 
new JSObject on the native side with the features you desire. Then add this new 
object (SetProperty) into the one you received from JS land. Whenever the one 
from JS side is GC'ed, you should have your callback for the native one.
_______________________________________________
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

Reply via email to