Bug 1280872 - Fix WasmLoop code to use RootedWasmInstanceObject. r=bbouvier

MozReview-Commit-ID: AX5iOFnG5KX

--HG--
extra : histedit_source : 8556b2b422c8d12143be256e3150aad5017c314a
This commit is contained in:
Christian Holler 2016-06-20 12:18:44 +02:00
Родитель 6e53af5d81
Коммит 2c1b44b88b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -5222,8 +5222,8 @@ WasmLoop(JSContext* cx, unsigned argc, Value* vp)
return false;
Rooted<TypedArrayObject*> typedArray(cx, &ret->as<TypedArrayObject>());
RootedObject exportObj(cx);
if (!wasm::Eval(cx, typedArray, importObj, &exportObj)) {
RootedWasmInstanceObject instanceObj(cx);
if (!wasm::Eval(cx, typedArray, importObj, &instanceObj)) {
// Clear any pending exceptions, we don't care about them
cx->clearPendingException();
}