mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add dom::bindings::error::Error::InUseAttribute
This commit is contained in:
parent
c070ad6196
commit
fbe2e4b626
2 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,8 @@ pub enum Error {
|
|||
InvalidCharacter,
|
||||
/// NotSupportedError DOMException
|
||||
NotSupported,
|
||||
/// InUseAttributeError DOMException
|
||||
InUseAttribute,
|
||||
/// InvalidStateError DOMException
|
||||
InvalidState,
|
||||
/// SyntaxError DOMException
|
||||
|
@ -79,6 +81,7 @@ pub fn throw_dom_exception(cx: *mut JSContext, global: GlobalRef,
|
|||
Error::HierarchyRequest => DOMErrorName::HierarchyRequestError,
|
||||
Error::InvalidCharacter => DOMErrorName::InvalidCharacterError,
|
||||
Error::NotSupported => DOMErrorName::NotSupportedError,
|
||||
Error::InUseAttribute => DOMErrorName::InUseAttributeError,
|
||||
Error::InvalidState => DOMErrorName::InvalidStateError,
|
||||
Error::Syntax => DOMErrorName::SyntaxError,
|
||||
Error::NamespaceError => DOMErrorName::NamespaceError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue