Skip to main content

constant

Function constant 

Source
pub fn constant(name: &str) -> Option<Value>
Expand description

Non-function members of the diagnostics_channel namespace, exposed as constructor values for instanceof/typeof checks. Reachable via namespace_property IF the parent routes "diagnostics_channel" into stdlib::constant. The channel objects themselves come from channel() / tracingChannel(); these bare constructors are not directly instantiable (Node’s Channel constructor also throws) — they exist so the names resolve.