script::dom::bindings::import::module

Constant DOM_WEAK_SLOT

Source
pub(crate) const DOM_WEAK_SLOT: u32 = 1; // 1u32
Expand description

The index of the slot wherein a pointer to the weak holder cell is stored for weak-referenceable bindings. We use slot 1 for holding it, this is unsafe for globals, we disallow weak-referenceable globals directly in codegen.