Skip to content

Commit 4f67135

Browse files
Merge pull request #289 from lightpanda-io/fix-test
fix test_utils
2 parents 1bcd6aa + e7c2e0a commit 4f67135

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tests/test_utils.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,16 @@ pub fn runScript(
170170

171171
// local try catch
172172
var try_catch: public.TryCatch = undefined;
173-
try_catch.init(js_env.*);
173+
try_catch.init(js_env);
174174
defer try_catch.deinit();
175175

176176
// check result
177177
_ = js_env.execWait(script, name) catch |err| {
178-
if (try try_catch.exception(alloc, js_env.*)) |msg| {
178+
if (try try_catch.exception(alloc, js_env)) |msg| {
179179
defer alloc.free(msg);
180180
std.log.err("script {s} error: {s}\n", .{ name, msg });
181181
}
182-
if (try try_catch.stack(alloc, js_env.*)) |msg| {
182+
if (try try_catch.stack(alloc, js_env)) |msg| {
183183
defer alloc.free(msg);
184184
std.log.err("script {s} stack: {s}\n", .{ name, msg });
185185
}

0 commit comments

Comments
 (0)