mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Upgrade to SM 39
This commit is contained in:
parent
a256f39796
commit
675267b782
205 changed files with 6546 additions and 5340 deletions
|
@ -6,7 +6,7 @@ use dom::bindings::codegen::Bindings::DOMExceptionBinding;
|
|||
use dom::bindings::codegen::Bindings::DOMExceptionBinding::DOMExceptionConstants;
|
||||
use dom::bindings::codegen::Bindings::DOMExceptionBinding::DOMExceptionMethods;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::{JSRef, Temporary};
|
||||
use dom::bindings::js::Root;
|
||||
use dom::bindings::utils::{Reflector, reflect_dom_object};
|
||||
use util::str::DOMString;
|
||||
|
||||
|
@ -54,12 +54,12 @@ impl DOMException {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(global: GlobalRef, code: DOMErrorName) -> Temporary<DOMException> {
|
||||
pub fn new(global: GlobalRef, code: DOMErrorName) -> Root<DOMException> {
|
||||
reflect_dom_object(box DOMException::new_inherited(code), global, DOMExceptionBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> DOMExceptionMethods for JSRef<'a, DOMException> {
|
||||
impl<'a> DOMExceptionMethods for &'a DOMException {
|
||||
// https://heycam.github.io/webidl/#dfn-DOMException
|
||||
fn Code(self) -> u16 {
|
||||
match self.code {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue