From e7c2e0a88a273ecdaf6538fad6e83eff07b5cf3a Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Wed, 19 Mar 2025 10:19:40 +0100 Subject: [PATCH] fix test_utils --- src/tests/test_utils.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/test_utils.zig b/src/tests/test_utils.zig index 73e8358..375def4 100644 --- a/src/tests/test_utils.zig +++ b/src/tests/test_utils.zig @@ -170,16 +170,16 @@ pub fn runScript( // local try catch var try_catch: public.TryCatch = undefined; - try_catch.init(js_env.*); + try_catch.init(js_env); defer try_catch.deinit(); // check result _ = js_env.execWait(script, name) catch |err| { - if (try try_catch.exception(alloc, js_env.*)) |msg| { + if (try try_catch.exception(alloc, js_env)) |msg| { defer alloc.free(msg); std.log.err("script {s} error: {s}\n", .{ name, msg }); } - if (try try_catch.stack(alloc, js_env.*)) |msg| { + if (try try_catch.stack(alloc, js_env)) |msg| { defer alloc.free(msg); std.log.err("script {s} stack: {s}\n", .{ name, msg }); }