Skip to content

Fix listener array copy in emit#5

Open
Constantiner wants to merge 1 commit into
mainfrom
codex/modify-emit-to-copy-listeners-before-iteration
Open

Fix listener array copy in emit#5
Constantiner wants to merge 1 commit into
mainfrom
codex/modify-emit-to-copy-listeners-before-iteration

Conversation

@Constantiner

Copy link
Copy Markdown
Owner

Summary

  • ensure emit iterates over a snapshot of listeners
  • test unsubscribing during emit does not skip callbacks

Testing

  • npm test

https://chatgpt.com/codex/tasks/task_e_683f48053af08327bb6e0a762a3d72d9

@codecov

codecov Bot commented Jun 3, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (5efd1d4) to head (5574a9e).

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #5   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           95        96    +1     
  Branches        15        15           
=========================================
+ Hits            95        96    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant