Skip to content

fix(unbound-method): treat Intl.Collator compare as bound - #1224

Merged
graphite-app[bot] merged 1 commit into
mainfrom
codex/unbound-method-intl-collator
Sep 23, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
codex/unbound-method-intl-collator

Conversation

@camc314

@camc314 camc314 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Port typescript-eslint/typescript-eslint#12845. Allow passing collator.compare as a callback or extracting it through destructuring: ECMA-402 binds this function to its instance, although TypeScript declares it as an ordinary method.

Require the resolved method to come from the default-library Collator declaration, including inherited getters but excluding subclass overrides. Apply the same check to typed and defaulted destructuring bindings. Include all five upstream regression cases and additional coverage for those binding and inheritance forms, while preserving diagnostics for resolvedOptions and user-defined methods.

Copilot AI lite review requested due to automatic review settings September 23, 2026 09:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-23T09:44:10.007668Z b500b8c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3794b15973

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d146d566e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b500b8c82e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@camc314 camc314 self-assigned this Sep 23, 2026

camc314 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Merge activity

Port typescript-eslint/typescript-eslint#12845. Allow passing `collator.compare` as a callback or extracting it through destructuring: ECMA-402 binds this function to its instance, although TypeScript declares it as an ordinary method.

Require the resolved method to come from the default-library `Collator` declaration, including inherited getters but excluding subclass overrides. Apply the same check to typed and defaulted destructuring bindings. Include all five upstream regression cases and additional coverage for those binding and inheritance forms, while preserving diagnostics for `resolvedOptions` and user-defined methods.
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.

2 participants