mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
Apply tryCatch change to wpt runner
This commit is contained in:
@@ -125,13 +125,15 @@ fn run(
|
|||||||
|
|
||||||
// Check the final test status.
|
// Check the final test status.
|
||||||
js_context.eval("report.status", "teststatus") catch |err| {
|
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 err;
|
||||||
};
|
};
|
||||||
|
|
||||||
// return the detailed result.
|
// return the detailed result.
|
||||||
const value = js_context.exec("report.log", "report") catch |err| {
|
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;
|
return err;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user