2017 m. kovas 21 d., antradienis 20:15:22 UTC+2, Hanyun Tao rašė: > > Hi all, > > I'm new to v8 and I want to know more about the equality check (==) > between two v8::Local<v8::Object>. > > Currently I'm using instrumenting chromium browser. In chromium, > registered event listeners are stored inside a map like data structure, and > I can use the getListenerObject() method to get the v8::Local<v8::Object> > correspond to each event listener, which could be a function reference, or > reference to an object with handleEvent property. > > My goal is to tell if two different event listener will invoke the same > javascript or not. Someone told me that I can do this by comparing two > v8::Local<v8::Object> by value. I followed the suggestion and implements a > function that returns unique integer ID for unique v8::Local<v8::Object> > value. However when I test it on real webpage, I found that almost every > event listeners are mapped to the same ID. > > I'm not confident with this result so I want to ask a question here. What > does the equality check (==) between two v8::Local<v8::Object> check? Does > it implies that the two object are structurally equal (contains the same > function/object reference), or it means something else? > > Best regards, > >
-- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
