mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bustage fix for bug 465141
This commit is contained in:
parent
0afc050e8b
commit
2aaecea6a5
@ -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