eslint-plugin-ember icon indicating copy to clipboard operation
eslint-plugin-ember copied to clipboard

no-array-prototype-extensions false positive Promsie.withResolvers

Open sukima opened this issue 4 weeks ago • 1 comments

Reproduction

const resolvers = Promise.withResolvers();
resolvers.reject();

I don't know how to check for that though.

sukima avatar Dec 11 '25 00:12 sukima

A workaround I know is this:

const resolvers = Promise.withResolvers();
resolvers.resolve(Promise.reject());

sukima avatar Dec 11 '25 00:12 sukima