Bug 861419 - Add comment, r=dvander.

This commit is contained in:
Brian Hackett 2013-04-18 15:18:42 -06:00
parent bb6c18c326
commit 5a2f96632a

View File

@ -2311,6 +2311,10 @@ ion::PropertyReadNeedsTypeBarrier(JSContext *cx, types::TypeObject *object, Prop
if (!property)
return true;
// We need to consider possible types for the property both as an 'own'
// property on the object and as inherited from any prototype. Type sets
// for a property do not, however, reflect inherited types until a
// getFromPrototypes() call has been performed.
if (!property->hasPropagatedProperty())
object->getFromPrototypes(cx, id, property);