mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 537630 - crash [@ nsJSScriptTimeoutHandler::SetLateness(unsigned int)], r=smaug
This commit is contained in:
parent
1f7521c464
commit
cdae723183
@ -323,8 +323,8 @@ void nsJSScriptTimeoutHandler::SetLateness(PRIntervalTime aHowLate)
|
||||
if (jsarray) {
|
||||
PRUint32 argc;
|
||||
jsval *jsargv;
|
||||
jsarray->GetArgs(&argc, reinterpret_cast<void **>(&jsargv));
|
||||
if (jsargv && argc)
|
||||
nsresult rv = jsarray->GetArgs(&argc, reinterpret_cast<void **>(&jsargv));
|
||||
if (NS_SUCCEEDED(rv) && jsargv && argc)
|
||||
jsargv[argc-1] = INT_TO_JSVAL((jsint) aHowLate);
|
||||
} else {
|
||||
NS_ERROR("How can our argv not handle this?");
|
||||
|
Loading…
Reference in New Issue
Block a user