Bug 612408: return NS_ERROR_FAILURE instead of NULL in failure case within mozJSComponentLoader::ImportInto. r=gal

This commit is contained in:
Daniel Holbert 2011-01-20 20:19:19 -08:00
parent 9a189908b9
commit 259e3b0a8f

View File

@ -1497,7 +1497,7 @@ mozJSComponentLoader::ImportInto(const nsACString & aLocation,
JSAutoEnterCompartment ac;
if (!ac.enter(mContext, mod->global))
return NULL;
return NS_ERROR_FAILURE;
if (!JS_GetProperty(mContext, mod->global,
"EXPORTED_SYMBOLS", &symbols)) {