How to use the event-target-shim.EventTarget.call function in event-target-shim

To help you get started, we’ve selected a few event-target-shim examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mysticatea / abort-controller / src / abort-signal.ts View on Github external
export function createAbortSignal(): AbortSignal {
    const signal = Object.create(AbortSignal.prototype)
    EventTarget.call(signal)
    abortedFlags.set(signal, false)
    return signal
}

event-target-shim

An implementation of WHATWG EventTarget interface.

MIT
Latest version published 4 years ago

Package Health Score

67 / 100
Full package analysis