-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
In an event-driven language like JavaScript, we can distinguish callback functions into
0) simple continuations that are executed by callees,
- handlers that we only register in the current event-handling and could be executed in the next event-handling
- handlers that are registered by possibly next event-handlers
and so on.
Such information can be useful for
- understanding control-flow of the program
- identifying unnecessary serialization of events
- finding bugs related to the event-order
The analysis result should assign a number which represent the event timing to each callback function.
We could also analyze the order dependency between callbacks.