We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8d7eb0 commit 1328ea7Copy full SHA for 1328ea7
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