Bug 1280872 - Fix WasmLoop code to use RootedWasmInstanceObject. r=bbouvier
MozReview-Commit-ID: 1mrfGVSMsuR
--- a/js/src/shell/js.cpp
+++ b/js/src/shell/js.cpp
@@ -5217,17 +5217,17 @@ WasmLoop(JSContext* cx, unsigned argc, V
return false;
while (__AFL_LOOP(1000)) {
Rooted<JSObject*> ret(cx, FileAsTypedArray(cx, filename.ptr()));
if (!ret)
return false;
Rooted<TypedArrayObject*> typedArray(cx, &ret->as<TypedArrayObject>());
- RootedObject exportObj(cx);
+ RootedWasmInstanceObject exportObj(cx);
if (!wasm::Eval(cx, typedArray, importObj, &exportObj)) {
// Clear any pending exceptions, we don't care about them
cx->clearPendingException();
}
}
return true;
}