You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Request}from'undici'import{ok,strictEqual}from'node:assert'constcontroller=newAbortController();constsignal=controller.signal;constrequest=newRequest('http://a',{ signal });constclonedRequest=request.clone();constlog=[];request.signal.addEventListener('abort',()=>log.push('original-aborted'));clonedRequest.signal.addEventListener('abort',()=>log.push('clone-aborted'));controller.abort();strictEqual(log,['original-aborted','clone-aborted'],"Abort events fired in correct order");ok(request.signal.aborted,'Signal aborted');ok(clonedRequest.signal.aborted,'Signal aborted');
cc @atlowChemi since you recently made a PR regarding abortcontroller, hopefully you can help. I don't know enough about EventTarget and order of events to fix this
The text was updated successfully, but these errors were encountered:
cc @atlowChemi since you recently made a PR regarding abortcontroller, hopefully you can help. I don't know enough about EventTarget and order of events to fix this
The text was updated successfully, but these errors were encountered: