Skip to main content

instance_method_lists

Function instance_method_lists 

Source
pub fn instance_method_lists(
    tag: &str,
) -> (&'static [&'static str], &'static [&'static str])
Expand description

The method names a native instance tagged tag carries, as (its own list, the EventEmitter surface it also gets or empty).

Split out of instance_has_method so the same table can be enumerated, not only queried: host::ensure_ctor_proto builds a native constructor’s real .prototype object from it. A predicate alone would have forced a second, hand-maintained list of the same names — the drift that put listeners on nine dispatchers and not on the three that run.