Re: How to check if a custom class has a private object set?

Mihai Dobrescu <[email protected]> Fri, 16 Dec 2016 05:22:06 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.jseng
Message-ID <[email protected]>
I thonk the question could be rephrased like this:

When a function is executed, being static, what is the meaning of the code below?

JS::CallArgs args = CallArgsFromVp(argc, vp);

JSObject* obj = &args.thisv().toObject();

What is the content of obj?

What is the outcome of JS_GetPrivate(obj)?

That obj won't have the required flag, but how could I tell that before?