netsurf: add missing netsurf DOM errors

This commit is contained in:
Pierre Tachoire
2024-04-29 17:42:38 +02:00
parent 9f2bad7498
commit d155421a40
2 changed files with 25 additions and 0 deletions

View File

@@ -91,6 +91,12 @@ pub const DOMException = struct {
error.InvalidNodeType => "InvalidNodeTypeError",
error.DataClone => "DataCloneError",
error.NoError => unreachable,
// custom netsurf error
error.UnspecifiedEventType => "UnspecifiedEventTypeError",
error.DispatchRequest => "DispatchRequestError",
error.NoMemory => "NoMemoryError",
error.AttributeWrongType => "AttributeWrongTypeError",
};
}
@@ -124,6 +130,12 @@ pub const DOMException = struct {
error.InvalidNodeType => 24,
error.DataClone => 25,
error.NoError => unreachable,
// custom netsurf error
error.UnspecifiedEventType => 128,
error.DispatchRequest => 129,
error.NoMemory => 130,
error.AttributeWrongType => 131,
};
}