I agree with
JohnnySheffield , it is a feature,not a bug.
Actually. wait action is not perfect enough. For example, wait action under a function call. The parameters of this function call will all missed after wait action.
Moreover, javascript does not support coroutine, coroutine will cause more memory usage to keep the context of each pending task, they said.