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.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/domexception.rs b/components/script/dom/domexception.rs
index 112dcedf4b2..48f8e4b52f6 100644
--- a/components/script/dom/domexception.rs
+++ b/components/script/dom/domexception.rs
@@ -14,7 +14,7 @@ use servo_util::str::DOMString;
use std::borrow::ToOwned;
#[repr(uint)]
-#[deriving(Copy, Show)]
+#[derive(Copy, Show)]
#[jstraceable]
pub enum DOMErrorName {
IndexSizeError = DOMExceptionConstants::INDEX_SIZE_ERR as uint,
@@ -98,7 +98,7 @@ impl<'a> DOMExceptionMethods for JSRef<'a, DOMException> {
// http://dom.spec.whatwg.org/#error-names-0
fn Name(self) -> DOMString {
- self.code.to_string()
+ format!("{:?}", self.code)
}
// http://dom.spec.whatwg.org/#error-names-0