mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 496891. Handle NSGetModule returning null. r=bzbarsky
This commit is contained in:
parent
ecd783a395
commit
7ba51c715c
@ -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