Bug 1280872 - Fix WasmLoop code to use RootedWasmInstanceObject. r=bbouvier draft
authorChristian Holler <choller@mozilla.com>
Mon, 20 Jun 2016 12:03:39 +0200
changeset 379989 41dd4b3d411bfb6e110ee782cc047b2b6aafd27b
parent 379988 e9723c6c6136e2311374e5e6d4ea9cdc9f42b6b3
child 523617 af743a7451b165e0cf85afda33613fad2325d098
push id21106
push usercholler@mozilla.com
push dateMon, 20 Jun 2016 10:04:47 +0000
reviewersbbouvier
bugs1280872
milestone50.0a1
Bug 1280872 - Fix WasmLoop code to use RootedWasmInstanceObject. r=bbouvier MozReview-Commit-ID: 1mrfGVSMsuR
js/src/shell/js.cpp
--- 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;
 }