aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domexception.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/domexception.rs')
-rw-r--r--components/script/dom/domexception.rs42
1 files changed, 21 insertions, 21 deletions
diff --git a/components/script/dom/domexception.rs b/components/script/dom/domexception.rs
index f28ea1f9eff..4509c0b5eaf 100644
--- a/components/script/dom/domexception.rs
+++ b/components/script/dom/domexception.rs
@@ -13,30 +13,30 @@ use util::str::DOMString;
use std::borrow::ToOwned;
-#[repr(uint)]
+#[repr(u16)]
#[derive(Copy, Debug)]
#[jstraceable]
pub enum DOMErrorName {
- IndexSizeError = DOMExceptionConstants::INDEX_SIZE_ERR as uint,
- HierarchyRequestError = DOMExceptionConstants::HIERARCHY_REQUEST_ERR as uint,
- WrongDocumentError = DOMExceptionConstants::WRONG_DOCUMENT_ERR as uint,
- InvalidCharacterError = DOMExceptionConstants::INVALID_CHARACTER_ERR as uint,
- NoModificationAllowedError = DOMExceptionConstants::NO_MODIFICATION_ALLOWED_ERR as uint,
- NotFoundError = DOMExceptionConstants::NOT_FOUND_ERR as uint,
- NotSupportedError = DOMExceptionConstants::NOT_SUPPORTED_ERR as uint,
- InvalidStateError = DOMExceptionConstants::INVALID_STATE_ERR as uint,
- SyntaxError = DOMExceptionConstants::SYNTAX_ERR as uint,
- InvalidModificationError = DOMExceptionConstants::INVALID_MODIFICATION_ERR as uint,
- NamespaceError = DOMExceptionConstants::NAMESPACE_ERR as uint,
- InvalidAccessError = DOMExceptionConstants::INVALID_ACCESS_ERR as uint,
- SecurityError = DOMExceptionConstants::SECURITY_ERR as uint,
- NetworkError = DOMExceptionConstants::NETWORK_ERR as uint,
- AbortError = DOMExceptionConstants::ABORT_ERR as uint,
- URLMismatchError = DOMExceptionConstants::URL_MISMATCH_ERR as uint,
- QuotaExceededError = DOMExceptionConstants::QUOTA_EXCEEDED_ERR as uint,
- TimeoutError = DOMExceptionConstants::TIMEOUT_ERR as uint,
- InvalidNodeTypeError = DOMExceptionConstants::INVALID_NODE_TYPE_ERR as uint,
- DataCloneError = DOMExceptionConstants::DATA_CLONE_ERR as uint,
+ IndexSizeError = DOMExceptionConstants::INDEX_SIZE_ERR,
+ HierarchyRequestError = DOMExceptionConstants::HIERARCHY_REQUEST_ERR,
+ WrongDocumentError = DOMExceptionConstants::WRONG_DOCUMENT_ERR,
+ InvalidCharacterError = DOMExceptionConstants::INVALID_CHARACTER_ERR,
+ NoModificationAllowedError = DOMExceptionConstants::NO_MODIFICATION_ALLOWED_ERR,
+ NotFoundError = DOMExceptionConstants::NOT_FOUND_ERR,
+ NotSupportedError = DOMExceptionConstants::NOT_SUPPORTED_ERR,
+ InvalidStateError = DOMExceptionConstants::INVALID_STATE_ERR,
+ SyntaxError = DOMExceptionConstants::SYNTAX_ERR,
+ InvalidModificationError = DOMExceptionConstants::INVALID_MODIFICATION_ERR,
+ NamespaceError = DOMExceptionConstants::NAMESPACE_ERR,
+ InvalidAccessError = DOMExceptionConstants::INVALID_ACCESS_ERR,
+ SecurityError = DOMExceptionConstants::SECURITY_ERR,
+ NetworkError = DOMExceptionConstants::NETWORK_ERR,
+ AbortError = DOMExceptionConstants::ABORT_ERR,
+ URLMismatchError = DOMExceptionConstants::URL_MISMATCH_ERR,
+ QuotaExceededError = DOMExceptionConstants::QUOTA_EXCEEDED_ERR,
+ TimeoutError = DOMExceptionConstants::TIMEOUT_ERR,
+ InvalidNodeTypeError = DOMExceptionConstants::INVALID_NODE_TYPE_ERR,
+ DataCloneError = DOMExceptionConstants::DATA_CLONE_ERR,
EncodingError
}