aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/error.rs
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2019-07-17 18:09:15 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2019-07-18 14:24:50 -0500
commitaa0a72df0f5017c71572af38ec912e8b011bb34d (patch)
treed024924e0a08a30cdc871cd2dd49ca566df2bd0a /components/script/dom/bindings/error.rs
parentdc1da02aa427d91da4946cef2296b18f893a525f (diff)
downloadservo-aa0a72df0f5017c71572af38ec912e8b011bb34d.tar.gz
servo-aa0a72df0f5017c71572af38ec912e8b011bb34d.zip
Added framebuffer and related attributes to XRWebGLLayer
Diffstat (limited to 'components/script/dom/bindings/error.rs')
-rw-r--r--components/script/dom/bindings/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/bindings/error.rs b/components/script/dom/bindings/error.rs
index 5953a013d6d..40d690ff8d0 100644
--- a/components/script/dom/bindings/error.rs
+++ b/components/script/dom/bindings/error.rs
@@ -84,6 +84,8 @@ pub enum Error {
InvalidModification,
/// NotReadableError DOMException
NotReadable,
+ /// OperationError DOMException
+ Operation,
/// TypeError JavaScript Error
Type(String),
@@ -136,6 +138,7 @@ pub unsafe fn throw_dom_exception(cx: *mut JSContext, global: &GlobalScope, resu
Error::TypeMismatch => DOMErrorName::TypeMismatchError,
Error::InvalidModification => DOMErrorName::InvalidModificationError,
Error::NotReadable => DOMErrorName::NotReadableError,
+ Error::Operation => DOMErrorName::OperationError,
Error::Type(message) => {
assert!(!JS_IsExceptionPending(cx));
throw_type_error(cx, &message);