mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 612408: return NS_ERROR_FAILURE instead of NULL in failure case within mozJSComponentLoader::ImportInto. r=gal
This commit is contained in:
parent
9a189908b9
commit
259e3b0a8f
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user