footprintjs - v11.2.0
    Preparing search index...

    Function hasRecorderMethods

    • True iff the recorder implements at least one data-flow event method. Used by executor.attachCombinedRecorder to decide whether to hook into the scope data-flow channel.

      Accepts both object-literal recorders (own-property handlers) AND class instances (handlers declared on the class prototype). Rejects handlers inherited from Object.prototype — that's always accidental or malicious pollution, never a legitimate recorder.

      clear and toSnapshot are NOT counted as event methods — a recorder that only implements those has nothing to observe and would be a no-op on either channel.

      Returns plain boolean (not a type predicate). The full ScopeRecorder interface has payload types that diverge from CombinedRecorder's union variants for shared methods, so a narrowing predicate would be unsound. Callers that need to treat the recorder as a ScopeRecorder do so explicitly at the attach site — the cast is the contract that each channel passes its own payload variant.

      Parameters

      Returns boolean