Skip to content

Make JsProxy of object with asyncDispose into async context manager#6014

Merged
hoodmane merged 3 commits intopyodide:mainfrom
hoodmane:js-async-context-manager
Dec 1, 2025
Merged

Make JsProxy of object with asyncDispose into async context manager#6014
hoodmane merged 3 commits intopyodide:mainfrom
hoodmane:js-async-context-manager

Conversation

@hoodmane
Copy link
Copy Markdown
Member

@hoodmane hoodmane commented Nov 28, 2025

  • Add a CHANGELOG entry
  • Add / update tests
  • Add new / update outdated documentation

@hoodmane hoodmane force-pushed the js-async-context-manager branch from 1de914f to e1c1051 Compare November 28, 2025 22:46
Copy link
Copy Markdown
Member

@ryanking13 ryanking13 left a comment

Choose a reason for hiding this comment

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

Thanks! I left some minor comments, otherwise looks good to me

assert o.closed


@pytest.mark.xfail_browsers(safari="Symbol.dispose not supported in Safari")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
@pytest.mark.xfail_browsers(safari="Symbol.dispose not supported in Safari")
@pytest.mark.xfail_browsers(safari="Symbol.asyncDispose not supported in Safari")

@hoodmane hoodmane merged commit 58e67d4 into pyodide:main Dec 1, 2025
36 of 38 checks passed
@hoodmane hoodmane deleted the js-async-context-manager branch December 1, 2025 19:11
Drranny pushed a commit to Drranny/pyodide that referenced this pull request Feb 15, 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.

2 participants