Skip to content

fix(no-array-prototype-extensions): handle Promise.withResolvers - #2837

Open
Guflly wants to merge 1 commit into
ember-cli:masterfrom
Guflly:fix/promise-with-resolvers-reject
Open

fix(no-array-prototype-extensions): handle Promise.withResolvers#2837
Guflly wants to merge 1 commit into
ember-cli:masterfrom
Guflly:fix/promise-with-resolvers-reject

Conversation

@Guflly

@Guflly Guflly commented Aug 3, 2026

Copy link
Copy Markdown

Fixes #2360.

Recognizes values initialized by Promise.withResolvers() (including window.Promise) so reject() is not reported as an Ember Array extension. Includes regression cases for both forms.

Tests:

  • pnpm test:coverage
  • pnpm lint

@NullVoxPopuli

Copy link
Copy Markdown
Contributor

Does this test fail without the change?

@Guflly

Guflly commented Aug 3, 2026

Copy link
Copy Markdown
Author

Yes — I verified both new cases against the base rule, and each fails with one no-array-prototype-extensions error while both pass with the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants