@@ -213,7 +213,7 @@ TEST(execute_call_depth, call_host_function_calling_wasm_function_inclusive)
213213 constexpr auto host_f = [](std::any&, Instance& instance, const Value*,
214214 ExecutionContext& ctx) noexcept {
215215 recorded_depth = ctx.depth ;
216- const auto local_ctx = ctx.increment_call_depth ();
216+ const auto local_ctx = ctx.create_local_context ();
217217 return fizzy::execute (instance, 2 /* $leaf */ , {}, ctx);
218218 };
219219
@@ -304,7 +304,7 @@ TEST(execute_call_depth, call_host_function_calling_another_wasm_module)
304304 ExecutionContext& ctx) noexcept {
305305 recorded_depth = ctx.depth ;
306306 auto instance = *std::any_cast<Instance*>(&host_context);
307- const auto local_ctx = ctx.increment_call_depth ();
307+ const auto local_ctx = ctx.create_local_context ();
308308 return fizzy::execute (*instance, 0 , {}, ctx);
309309 };
310310
@@ -466,7 +466,7 @@ TEST(execute_call_depth, execute_host_function_within_wasm_recursion_limit)
466466 constexpr auto host_f = [](std::any&, Instance& instance, const Value*,
467467 ExecutionContext& ctx) noexcept {
468468 max_recorded_wasm_recursion_depth = std::max (max_recorded_wasm_recursion_depth, ctx.depth );
469- const auto local_ctx = ctx.increment_call_depth ();
469+ const auto local_ctx = ctx.create_local_context ();
470470 return fizzy::execute (instance, 0 , {}, ctx);
471471 };
472472
@@ -537,7 +537,7 @@ TEST(execute_call, call_host_function_calling_wasm_interleaved_infinite_recursio
537537 ExecutionContext& ctx) noexcept {
538538 EXPECT_LT (ctx.depth , DepthLimit);
539539 ++counter;
540- const auto local_ctx = ctx.increment_call_depth ();
540+ const auto local_ctx = ctx.create_local_context ();
541541 return fizzy::execute (instance, 1 , {}, ctx);
542542 };
543543
0 commit comments