mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use JSTraceable everywhere
This commit is contained in:
parent
85f79290a6
commit
cc44a3b064
133 changed files with 325 additions and 278 deletions
|
@ -13,7 +13,8 @@ use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
|||
use servo_util::str::DOMString;
|
||||
|
||||
#[repr(uint)]
|
||||
#[deriving(Show, Encodable)]
|
||||
#[deriving(Show)]
|
||||
#[jstraceable]
|
||||
pub enum DOMErrorName {
|
||||
IndexSizeError = DOMExceptionConstants::INDEX_SIZE_ERR as uint,
|
||||
HierarchyRequestError = DOMExceptionConstants::HIERARCHY_REQUEST_ERR as uint,
|
||||
|
@ -59,7 +60,7 @@ impl DOMErrorName {
|
|||
}
|
||||
}
|
||||
|
||||
#[deriving(Encodable)]
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
pub struct DOMException {
|
||||
pub code: DOMErrorName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue