don't expose DOMErr function

This commit is contained in:
nikneym
2025-09-12 10:18:50 +03:00
parent 8f31fd778b
commit 8d67502997

View File

@@ -388,7 +388,7 @@ pub const DOMError = error{
const DOMException = c.dom_exception; const DOMException = c.dom_exception;
pub fn DOMErr(except: DOMException) DOMError!void { fn DOMErr(except: DOMException) DOMError!void {
return switch (except) { return switch (except) {
c.DOM_NO_ERR => return, c.DOM_NO_ERR => return,
c.DOM_INDEX_SIZE_ERR => DOMError.IndexSize, c.DOM_INDEX_SIZE_ERR => DOMError.IndexSize,