Skip to content

Commit d73a204

Browse files
committed
@errSetCast is now @errorcast
see ziglang/zig#17343
1 parent 4f86b6e commit d73a204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dom/exceptions.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub const DOMException = struct {
4545

4646
// TODO: deinit
4747
pub fn init(alloc: std.mem.Allocator, err: anyerror, callerName: []const u8) anyerror!DOMException {
48-
const errCast = @as(parser.DOMError, @errSetCast(err));
48+
const errCast = @as(parser.DOMError, @errorCast(err));
4949
const errName = DOMException.name(errCast);
5050
const str = switch (errCast) {
5151
error.HierarchyRequest => try allocPrint(

0 commit comments

Comments
 (0)