mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
Bug 531364 - Add a function call here. r=peterv sr=bzbarsky
This commit is contained in:
parent
c2a40a4d41
commit
a2b551c9ae
@ -2808,8 +2808,13 @@ nsXPCComponents_Utils::LookupMethod()
|
||||
return NS_ERROR_XPC_BAD_CONVERT_JS;
|
||||
|
||||
JSObject* obj = JSVAL_TO_OBJECT(argv[0]);
|
||||
rv = nsXPConnect::GetXPConnect()->GetJSObjectOfWrapper(cx, obj, &obj);
|
||||
if(NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
OBJ_TO_INNER_OBJECT(cx, obj);
|
||||
if(!obj)
|
||||
return NS_ERROR_XPC_BAD_CONVERT_JS;
|
||||
|
||||
// second param must be a string
|
||||
if(!JSVAL_IS_STRING(argv[1]))
|
||||
|
Loading…
Reference in New Issue
Block a user