On 26 June 2014 18:48, Jane Chen <[email protected]> wrote: > I have an object instantiated from a template, which has a class name set. > When I do instanceof on it in JavaScript, it only shows it's an object, but > not of my class. My class seems unknown. Does v8 provide a callback API > for instanceof? Or object is the best you can get?
If I understand your problem correctly then this is working as intended. JavaScript has no notion of class, and the semantics of instanceof in JavaScript does not care about class names. The only relevance of the so-called class name that you can set through the API is for the result of toString. /Andreas -- -- 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.
