mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 496891. Handle NSGetModule returning null. r=bzbarsky
This commit is contained in:
parent
dbd6d652d5
commit
2a67ad008c
@ -777,7 +777,8 @@ mozJSComponentLoader::LoadModule(nsILocalFile* aComponentFile,
|
||||
#endif
|
||||
|
||||
JSObject *jsModuleObj;
|
||||
if (!JS_ValueToObject(cx, retval, &jsModuleObj)) {
|
||||
if (!JS_ValueToObject(cx, retval, &jsModuleObj) ||
|
||||
!jsModuleObj) {
|
||||
/* XXX report error properly */
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user