Change 'fireDocumentEvent'

In my development environment, if it has "setTimeout", when "suspending" event fired, "pause" event is not called, and when "processed" event fired, "pause" and "resume" will be called at the same time.