script/home/runner/work/servo/servo/target/debug/build/script-0d808a8fdcf4bfaf/out/ConcreteBindings/
DOMExceptionBinding.rs1#![allow(non_camel_case_types,non_upper_case_globals,unsafe_op_in_unsafe_fn,unused_imports,unused_variables,unused_assignments,unused_mut,clippy::approx_constant,clippy::enum_variant_names,clippy::let_unit_value,clippy::needless_return,clippy::too_many_arguments,clippy::unnecessary_cast,clippy::upper_case_acronyms)]
4
5use crate::dom::bindings::import::module::*;
6use crate::dom::types::*;
7
8pub(crate) use crate::dom::bindings::codegen::GenericBindings::DOMExceptionBinding as GenericBindings;
9
10pub(crate) use crate::dom::bindings::codegen::GenericBindings::DOMExceptionBinding::DOMException_Binding as DOMException_Binding;
11
12
13impl script_bindings::structuredclone::MarkedAsSerializableInIdl for DOMException {
14 #[allow(path_statements)]
15 fn assert_serializable() {
16 crate::dom::bindings::serializable::assert_serializable::<Self>;
17 }
18}
19
20
21
22impl DOMException {
23 fn __assert_parent_type(&self) {
24 use crate::dom::bindings::inheritance::HasParent;
25 let _: &Reflector = self.as_parent();
28 }
29}
30
31
32
33impl IDLInterface for DOMException {
34 #[inline]
35 fn derives(class: &'static DOMClass) -> bool {
36 class.interface_chain[0] == PrototypeList::ID::DOMException
37 }
38}
39
40
41
42impl DomObjectWrap<crate::DomTypeHolder> for DOMException {
43 const WRAP: unsafe fn(
44 SafeJSContext,
45 &GlobalScope,
46 Option<HandleObject>,
47 Box<Self>,
48 CanGc,
49 ) -> Root<Dom<Self>> = crate::dom::bindings::codegen::GenericBindings::DOMExceptionBinding::DOMException_Binding::Wrap::<crate::DomTypeHolder>;
50}
51
52
53
54impl Drop for DOMException {
55 fn drop(&mut self) { }
56}
57
58
59pub(crate) use self::DOMException_Binding::DOMExceptionMethods as DOMExceptionMethods;
60
61pub(crate) use self::DOMException_Binding::Wrap;
62
63
64pub(crate) fn GetConstructorObject(
65 cx: SafeJSContext, global: HandleObject, rval: MutableHandleObject
66) {
67 self::DOMException_Binding::GetConstructorObject::<crate::DomTypeHolder>(cx, global, rval)
68}
69
70
71pub(crate) use crate::dom::bindings::codegen::GenericBindings::DOMExceptionBinding::DOMExceptionConstants as DOMExceptionConstants;
72