Modify process for defining `queueTaskToEventLoop` function for old IEs