mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-06 00:10:25 +00:00
Bustage fix for bug 465141
This commit is contained in:
parent
a09cdbf60b
commit
d5c82f9a61
@ -126,15 +126,15 @@ nsDOMWorkerTimeout::FunctionCallback::Run(nsDOMWorkerTimeout* aTimeout,
|
||||
JSObject* global = JS_GetGlobalObject(aCx);
|
||||
NS_ENSURE_TRUE(global, NS_ERROR_FAILURE);
|
||||
|
||||
jsval argv[mCallbackArgsLength];
|
||||
nsTArray<jsval> argv(mCallbackArgsLength);
|
||||
for (PRUint32 index = 0; index < mCallbackArgsLength; index++) {
|
||||
argv[index] = mCallbackArgs[index];
|
||||
argv.AppendElement(mCallbackArgs[index]);
|
||||
}
|
||||
|
||||
jsval rval;
|
||||
JSBool ok =
|
||||
JS_CallFunctionValue(aCx, global, mCallback, mCallbackArgsLength,
|
||||
argv, &rval);
|
||||
argv.Elements(), &rval);
|
||||
NS_ENSURE_TRUE(ok, NS_ERROR_FAILURE);
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user