mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 861419 - Add comment, r=dvander.
This commit is contained in:
parent
bb6c18c326
commit
5a2f96632a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user