See https://tc39.github.io/ecma262/#sec-hasproperty vs. https://tc39.github.io/ecma262/#sec-hasownproperty.
On Wed, Dec 7, 2016 at 2:48 PM, kent williams <[email protected]> wrote: > If this is documented anywhere, I haven't found it. > > What is difference between v8::Object::Has() and > v8::Object::HasOwnProperty()? > > for example: > > var x = { HasThisProperty : true }; > > Both functions return true. > > What would be a case where one was true and the other false? > > -- > -- > 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. > -- -- 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.
