Bug 866826 - Add missing IdToTypeId check, r=dvander.

This commit is contained in:
Brian Hackett 2013-05-01 15:45:40 -06:00
parent 31aa390320
commit 37496e10ab

View File

@ -5589,6 +5589,9 @@ TestSingletonPropertyTypes(JSContext *cx, MDefinition *obj, JSObject *singleton,
if (types && types->unknownObject())
return true;
if (id != types::IdToTypeId(id))
return true;
RootedObject objectSingleton(cx, types ? types->getSingleton() : NULL);
if (objectSingleton)
return TestSingletonProperty(cx, objectSingleton, singleton, id, isKnownConstant);