mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 866826 - Add missing IdToTypeId check, r=dvander.
This commit is contained in:
parent
31aa390320
commit
37496e10ab
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user