[INFER] Fix NULL deref in testSingletonPropertyTypes.

This commit is contained in:
Brian Hackett 2011-03-22 12:37:01 -07:00
parent 49c9ac30f6
commit bad0d7d4a8

View File

@ -3873,6 +3873,9 @@ mjit::Compiler::testSingletonProperty(JSObject *obj, jsid id)
bool
mjit::Compiler::testSingletonPropertyTypes(types::TypeSet *types, jsid id)
{
if (!types)
return false;
JSObject *singleton = types->getSingleton(cx, script);
if (singleton)
return testSingletonProperty(singleton, id);