From a5e32dfc7c3cd2899739298d80a2e707cc025bb2 Mon Sep 17 00:00:00 2001 From: "Alon Zakai (kripken)" Date: Sat, 27 May 2017 12:48:34 -0700 Subject: fix call depth detection in wasm-opt interpreting --- src/tools/wasm-opt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/wasm-opt.cpp') diff --git a/src/tools/wasm-opt.cpp b/src/tools/wasm-opt.cpp index 0603ae93c..35d5b6787 100644 --- a/src/tools/wasm-opt.cpp +++ b/src/tools/wasm-opt.cpp @@ -80,7 +80,7 @@ struct ExecutionResults { arguments.push_back(Literal(param)); } try { - return instance.callFunctionInternal(func->name, arguments); + return instance.callFunction(func->name, arguments); } catch (const TrapException&) { return Literal(); } -- cgit v1.2.3