Bug 896280 - Pass MutableHandleValue to JS::Call(); r=terrence

This commit is contained in:
Ms2ger
2013-07-24 09:40:01 +02:00
parent f0b15e224e
commit 0f5ec02bbb
6 changed files with 24 additions and 19 deletions

View File

@@ -494,7 +494,7 @@ JavaScriptChild::AnswerCall(const ObjectId &objId, const nsTArray<JSParam> &argv
uint32_t oldOpts =
JS_SetOptions(cx, JS_GetOptions(cx) | JSOPTION_DONT_REPORT_UNCAUGHT);
jsval rval;
RootedValue rval(cx);
bool success = JS::Call(cx, vals[1], vals[0], vals.length() - 2, vals.begin() + 2, &rval);
JS_SetOptions(cx, oldOpts);