We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f86b6e commit d73a204Copy full SHA for d73a204
src/dom/exceptions.zig
@@ -45,7 +45,7 @@ pub const DOMException = struct {
45
46
// TODO: deinit
47
pub fn init(alloc: std.mem.Allocator, err: anyerror, callerName: []const u8) anyerror!DOMException {
48
- const errCast = @as(parser.DOMError, @errSetCast(err));
+ const errCast = @as(parser.DOMError, @errorCast(err));
49
const errName = DOMException.name(errCast);
50
const str = switch (errCast) {
51
error.HierarchyRequest => try allocPrint(
0 commit comments