MCPcopy Create free account
hub / github.com/nodejs/node / onceWithInvalidEventEmmiter

Function onceWithInvalidEventEmmiter

test/parallel/test-events-once.js:144–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142}
143
144async function onceWithInvalidEventEmmiter() {
145 const ac = new AbortController();
146 return assert.rejects(once(ac, 'myevent'), {
147 code: 'ERR_INVALID_ARG_TYPE',
148 });
149}
150
151async function prioritizesEventEmitter() {
152 const ee = new EventEmitter();

Callers 1

Calls 1

onceFunction · 0.70

Tested by

no test coverage detected