@errSetCast is now @errorCast

see https://github.com/ziglang/zig/issues/17343
This commit is contained in:
Pierre Tachoire
2023-12-04 15:29:07 +01:00
parent 4f86b6e519
commit d73a204d8b

View File

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