diff options
Diffstat (limited to 'components/script/dom/bindings/error.rs')
-rw-r--r-- | components/script/dom/bindings/error.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/bindings/error.rs b/components/script/dom/bindings/error.rs index 9c0567067db..373c6c7cbe0 100644 --- a/components/script/dom/bindings/error.rs +++ b/components/script/dom/bindings/error.rs @@ -62,6 +62,10 @@ pub enum Error { DataClone, /// NoModificationAllowedError DOMException NoModificationAllowed, + /// QuotaExceededError DOMException + QuotaExceeded, + /// TypeMismatchError DOMException + TypeMismatch, /// TypeError JavaScript Error Type(DOMString), @@ -101,6 +105,8 @@ pub fn throw_dom_exception(cx: *mut JSContext, global: GlobalRef, Error::InvalidNodeType => DOMErrorName::InvalidNodeTypeError, Error::DataClone => DOMErrorName::DataCloneError, Error::NoModificationAllowed => DOMErrorName::NoModificationAllowedError, + Error::QuotaExceeded => DOMErrorName::QuotaExceededError, + Error::TypeMismatch => DOMErrorName::TypeMismatchError, Error::Type(message) => { assert!(unsafe { JS_IsExceptionPending(cx) } == 0); throw_type_error(cx, &message); |