Skip to content

fix: improve DraftMap.{entries,values}() compatibility#1228

Open
mrcljx wants to merge 1 commit intoimmerjs:mainfrom
mrcljx:iterator-fixes
Open

fix: improve DraftMap.{entries,values}() compatibility#1228
mrcljx wants to merge 1 commit intoimmerjs:mainfrom
mrcljx:iterator-fixes

Conversation

@mrcljx
Copy link
Copy Markdown

@mrcljx mrcljx commented Apr 7, 2026

I noticed two issues with draftMap.entries() (and values()):

  • It doesn't support ES2025 features.
  • It doesn't respect the contract that it should return itself for [Symbol.iterator]() but instead returns a new iterator instance (starting from the beginning again).

This PR addresses them both while not adding a hard dependency on ES2025 features.

@mrcljx mrcljx marked this pull request as ready for review April 7, 2026 12:04
@mrcljx mrcljx changed the title Increase entries/values compatibility fix: improve DraftMap.{entries,values}() compatibility Apr 7, 2026
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.

1 participant