Skip to main content

resolve_events

Function resolve_events 

Source
pub fn resolve_events<'js>(
    ctx: &Ctx<'js>,
    obj: &Object<'js>,
) -> Result<Events<'js>>
Expand description

Resolve the event list from a JS object. For native Emitter classes, reads from the native struct. For plain JS objects (e.g. stream.js Readable), lazily creates and stores a native EventEmitter as a hidden property.