saurabh sharma and Claude Fable 5.1
090b454350
fix(javascript-semantics): keep emitted data out of dispatch listener fields ( #2952 )
...
* fix(javascript-semantics): keep emitted data out of dispatch listener fields
The EventEmitter operation collector read argument position 1 as the
listener for every event method, so a dispatch such as
bus.emit("ready", data) reported the data binding and its range as the
listener. Only registration and removal name a listener there; emit
passes its remaining arguments to listeners that already exist. Read the
listener argument only for register and remove operations.
Fixes #2574
Co-Authored-By: Claude Fable 5.1 <[email protected] >
* fix(javascript-semantics): read listener arguments only for listener-taking methods
removeAllListeners accepts only an optional event name, so gating the
listener argument on operation kind still reported an ignored second
argument as a listener. Gate on the methods whose argument position 1
names a listener instead: the registration methods, off, and
removeListener.
Co-Authored-By: Claude Fable 5.1 <[email protected] >
---------
Co-authored-by: Claude Fable 5.1 <[email protected] >
2026-10-14 02:48:54 +08:00
..
2026-10-13 21:46:27 +08:00
2026-10-09 20:18:52 +08:00
2026-10-10 01:54:42 +08:00
2026-10-12 01:22:26 +08:00
2026-10-07 17:16:58 +08:00
2026-10-12 12:37:00 +08:00
2026-10-07 17:16:58 +08:00
2026-10-13 03:47:45 +08:00
2026-10-12 16:17:29 +08:00
2026-10-12 09:28:59 +08:00
2026-10-11 00:03:20 +08:00
2026-10-11 08:27:46 +08:00
2026-10-13 22:16:44 +08:00
2026-10-13 22:16:44 +08:00
2026-10-13 22:16:44 +08:00
2026-10-13 22:16:44 +08:00
2026-10-08 13:24:24 +08:00
2026-10-08 13:24:24 +08:00
2026-10-12 09:28:59 +08:00
2026-10-12 09:28:59 +08:00
2026-10-12 04:07:14 +08:00
2026-10-10 03:14:37 -07:00
2026-10-10 14:02:02 +08:00
2026-10-10 13:21:13 +08:00
2026-10-10 03:52:13 +08:00
2026-10-13 13:48:24 +08:00
2026-10-13 13:48:24 +08:00
2026-10-12 12:37:00 +08:00
2026-10-12 09:28:59 +08:00
2026-10-12 09:28:59 +08:00
2026-10-11 04:43:02 +08:00
2026-10-10 06:34:21 +08:00
2026-10-10 06:34:21 +08:00
2026-10-11 04:43:02 +08:00
2026-10-11 00:03:20 +08:00
2026-10-10 02:07:30 +08:00
2026-10-12 04:07:14 +08:00
2026-10-07 17:16:58 +08:00
2026-10-13 04:12:14 +08:00
2026-10-12 01:06:33 +08:00
2026-10-12 10:03:17 +08:00
2026-10-13 17:42:41 +08:00
2026-10-13 03:47:45 +08:00
2026-10-13 07:24:45 +09:00
2026-10-09 18:30:31 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 18:30:31 +08:00
2026-10-09 20:18:52 +08:00
2026-10-10 05:11:38 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 23:35:19 +08:00
2026-10-13 22:16:44 +08:00
2026-10-07 17:16:58 +08:00
2026-10-13 22:16:44 +08:00
2026-10-13 22:16:44 +08:00
2026-10-13 22:16:44 +08:00
2026-10-09 23:35:19 +08:00
2026-10-13 07:24:45 +09:00
2026-10-13 14:39:06 +08:00
2026-10-12 01:06:33 +08:00
2026-10-13 07:24:45 +09:00
2026-10-13 15:58:25 +08:00
2026-10-11 07:22:50 +08:00
2026-10-13 14:39:06 +08:00
2026-10-10 21:04:05 -07:00
2026-10-12 01:17:58 +08:00
2026-10-12 01:17:58 +08:00
2026-10-11 18:39:49 +08:00
2026-10-12 01:06:33 +08:00
2026-10-11 10:28:52 +08:00
2026-10-11 02:21:35 +08:00
2026-10-12 12:37:00 +08:00
2026-10-10 03:52:35 +08:00
2026-10-10 03:52:35 +08:00
2026-10-14 00:36:37 +08:00
2026-10-11 01:54:36 +08:00
2026-10-10 03:52:35 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 03:52:35 +08:00
2026-10-10 21:04:05 -07:00
2026-10-10 03:52:35 +08:00
2026-10-13 06:05:29 +09:00
2026-10-13 14:46:28 +08:00
2026-10-13 07:24:45 +09:00
2026-10-13 07:24:45 +09:00
2026-10-08 04:03:23 +08:00
2026-10-12 01:10:31 +08:00
2026-10-09 22:46:08 +08:00
2026-10-11 19:16:32 +08:00
2026-10-09 23:35:19 +08:00
2026-10-07 17:16:58 +08:00
2026-10-13 21:26:13 +08:00
2026-10-13 20:10:39 +08:00
2026-10-14 00:06:45 +08:00
2026-10-11 19:16:32 +08:00
2026-10-11 08:20:39 +08:00
2026-10-07 17:16:58 +08:00
2026-10-07 23:53:41 +08:00
2026-10-07 19:08:45 +08:00
2026-10-12 09:28:59 +08:00
2026-10-09 22:46:09 +08:00
2026-10-13 14:39:06 +08:00
2026-10-14 02:48:54 +08:00
2026-10-13 06:04:58 +09:00
2026-10-10 01:45:00 +08:00
2026-10-13 17:23:36 +08:00
2026-10-14 00:06:45 +08:00
2026-10-10 01:45:01 +08:00
2026-10-12 01:10:31 +08:00
2026-10-14 02:48:54 +08:00
2026-10-10 15:46:24 +08:00
2026-10-10 05:56:01 +08:00
2026-10-11 03:20:05 +08:00
2026-10-13 23:36:35 +08:00
2026-10-09 23:35:19 +08:00
2026-10-13 23:59:49 +08:00
2026-10-13 23:59:49 +08:00
2026-10-13 07:24:45 +09:00
2026-10-10 20:27:41 +08:00
2026-10-11 07:22:50 +08:00
2026-10-12 01:10:31 +08:00
2026-10-11 07:22:50 +08:00
2026-10-11 04:05:35 +08:00
2026-10-10 00:13:34 -07:00
2026-10-07 17:16:58 +08:00
2026-10-11 04:05:35 +08:00
2026-10-13 16:08:41 +08:00
2026-10-10 13:47:15 +08:00
2026-10-13 21:26:13 +08:00
2026-10-13 07:24:45 +09:00
2026-10-13 21:26:13 +08:00
2026-10-10 14:04:31 +08:00
2026-10-13 21:26:13 +08:00
2026-10-11 03:20:05 +08:00
2026-10-10 01:45:00 +08:00
2026-10-13 15:58:25 +08:00
2026-10-10 01:45:01 +08:00
2026-10-11 09:25:32 +08:00
2026-10-13 16:08:41 +08:00
2026-10-13 06:04:21 +09:00
2026-10-11 03:36:35 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 03:53:50 +08:00
2026-10-09 22:46:09 +08:00
2026-10-10 03:52:35 +08:00
2026-10-13 21:26:13 +08:00
2026-10-13 06:04:21 +09:00
2026-10-09 20:18:52 +08:00
2026-10-09 22:46:09 +08:00
2026-10-10 20:53:47 +08:00
2026-10-13 15:58:25 +08:00
2026-10-09 23:35:19 +08:00
2026-10-13 15:58:25 +08:00
2026-10-07 17:16:58 +08:00
2026-10-12 01:10:31 +08:00
2026-10-13 07:24:45 +09:00
2026-10-13 16:08:41 +08:00
2026-10-09 20:18:52 +08:00
2026-10-11 07:22:50 +08:00
2026-10-13 13:48:24 +08:00
2026-10-13 14:51:23 +08:00
2026-10-12 04:07:14 +08:00
2026-10-11 07:59:47 +08:00
2026-10-11 08:27:46 +08:00
2026-10-13 14:39:06 +08:00
2026-10-13 04:12:14 +08:00
2026-10-13 23:47:03 +08:00
2026-10-11 01:36:12 +08:00
2026-10-13 21:45:07 +08:00
2026-10-07 17:16:58 +08:00
2026-10-13 04:12:14 +08:00
2026-10-13 23:47:03 +08:00
2026-10-13 21:45:07 +08:00
2026-10-11 01:36:12 +08:00
2026-10-13 20:10:10 +08:00
2026-10-12 10:03:17 +08:00
2026-10-13 22:16:44 +08:00
2026-10-12 09:28:59 +08:00
2026-10-12 10:03:17 +08:00
2026-10-13 13:48:24 +08:00
2026-10-13 13:48:24 +08:00
2026-10-13 13:48:24 +08:00
2026-10-13 13:48:24 +08:00