From 56a39e2cc75d8c1c92d57446e642dbd60cc66c15 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Wed, 14 Jan 2026 15:46:47 +0800 Subject: [PATCH] Apply tryCatch change to wpt runner --- src/main_wpt.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main_wpt.zig b/src/main_wpt.zig index 27df82c1..55159ff9 100644 --- a/src/main_wpt.zig +++ b/src/main_wpt.zig @@ -125,13 +125,15 @@ fn run( // Check the final test status. js_context.eval("report.status", "teststatus") catch |err| { - err_out.* = try_catch.err(arena) catch @errorName(err) orelse "unknown"; + const caught = try_catch.caughtOrError(arena, err); + err_out.* = caught.exception; return err; }; // return the detailed result. const value = js_context.exec("report.log", "report") catch |err| { - err_out.* = try_catch.err(arena) catch @errorName(err) orelse "unknown"; + const caught = try_catch.caughtOrError(arena, err); + err_out.* = caught.exception; return err; };