зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1280872 - Fix WasmLoop code to use RootedWasmInstanceObject. r=bbouvier
MozReview-Commit-ID: AX5iOFnG5KX --HG-- extra : histedit_source : 8556b2b422c8d12143be256e3150aad5017c314a
This commit is contained in:
Родитель
6e53af5d81
Коммит
2c1b44b88b
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче