mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-17 17:38:10 +00:00
Convert more DOM_NO_ERR cases to assertions
There is some risk to this change. The first is that I made a mistake. The other is that one of the APIs that doesn't currently return an error changes in the future.
This commit is contained in:
@@ -2841,7 +2841,7 @@ pub fn Env(comptime State: type, comptime WebApis: type) type {
|
||||
}
|
||||
return v8.initNull(isolate).toValue();
|
||||
},
|
||||
.error_union => return zigValueToJs(templates, isolate, v8_context, value catch |err| return err),
|
||||
.error_union => return zigValueToJs(templates, isolate, v8_context, try value),
|
||||
else => {},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user