aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings
diff options
context:
space:
mode:
authorzakorgy <zakorgy@inf.u-szeged.hu>2016-07-05 12:39:51 +0200
committerzakorgyula <gyula.zakor@gmail.com>2016-07-06 09:31:52 +0200
commit52e1d8325f15498f16bc79d8e396ad4d377a6be9 (patch)
tree0da1350584dae6137f18dfcbd1ed4ae11b78096c /components/script/dom/bindings
parent0ae07e07e6c75e630ba0a5eaf95fa1046c6737c2 (diff)
downloadservo-52e1d8325f15498f16bc79d8e396ad4d377a6be9.tar.gz
servo-52e1d8325f15498f16bc79d8e396ad4d377a6be9.zip
Missing steps of Characteristic's readValue, writeValue functions
Diffstat (limited to 'components/script/dom/bindings')
-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 ed0b81c4d64..7ee24eaa14a 100644
--- a/components/script/dom/bindings/error.rs
+++ b/components/script/dom/bindings/error.rs
@@ -57,6 +57,8 @@ pub enum Error {
QuotaExceeded,
/// TypeMismatchError DOMException
TypeMismatch,
+ /// InvalidModificationError DOMException
+ InvalidModification,
/// TypeError JavaScript Error
Type(String),
@@ -97,6 +99,7 @@ pub unsafe fn throw_dom_exception(cx: *mut JSContext, global: GlobalRef, result:
Error::NoModificationAllowed => DOMErrorName::NoModificationAllowedError,
Error::QuotaExceeded => DOMErrorName::QuotaExceededError,
Error::TypeMismatch => DOMErrorName::TypeMismatchError,
+ Error::InvalidModification => DOMErrorName::InvalidModificationError,
Error::Type(message) => {
assert!(!JS_IsExceptionPending(cx));
throw_type_error(cx, &message);