Call dispatch on Dispatcher with _isSealed = true;, result an unended loops call.
Uncaught RangeError: Maximum call stack size exceeded
As we can see, if _isSealed == true when dispatch is called, we add call to this._cachedMethodCallsDispatcher.hx#L86
And later, when _isSealed change to false, we check if some calls are saved in this._cachedMethodCalls. Dispatcher.hx#L326
The problem is this._cachedMethodCalls couldn't be reset Dispatcher.hx#L333, because each time this._isSealed is switched from true to false at the end of the call Dispatcher.hx#L82 and re-run the dispatch();
Call
dispatch
on Dispatcher with_isSealed = true;
, result an unended loops call.As we can see, if _isSealed == true when
dispatch
is called, we add call tothis._cachedMethodCalls
Dispatcher.hx#L86 And later, when _isSealed change to false, we check if some calls are saved inthis._cachedMethodCalls
. Dispatcher.hx#L326The problem is
this._cachedMethodCalls
couldn't be reset Dispatcher.hx#L333, because each timethis._isSealed
is switched fromtrue
tofalse
at the end of the call Dispatcher.hx#L82 and re-run the dispatch();