mirror of
https://github.com/lexmount/moli.git
synced 2026-11-23 16:02:35 +00:00
fix(events): preserve listener mutations during dispatch
Track the exact registration represented by each dispatch snapshot and refresh active handlers before invoking them. Removing and re-adding the same callback no longer revives an entry from the current snapshot, while handler replacements use their current value and callback contexts. Share invocation preparation across simple event targets, worker threads, and Worker/SharedWorker host error dispatch. Remove once listeners before calling author code so a reentrant registration remains active. Cover listener replacement, abort, object callbacks, nested dispatch, realm retirement, and actual worker message and error delivery.
This commit is contained in:
@@ -85,6 +85,7 @@ mod service_worker_drain;
|
||||
mod session_description;
|
||||
mod shadow_root_init;
|
||||
mod simple_event_dispatch;
|
||||
mod simple_event_dispatch;
|
||||
mod simple_event_target_handlers;
|
||||
mod simple_handler_object;
|
||||
mod speech_synthesis;
|
||||
|
||||
Reference in New Issue
Block a user