You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
results in Uncaught RangeError: Maximum call stack size exceeded
The problem is that array -> List conversion internally ends up using Function.prototype.apply to forward the operation to Array.prototype.push. Just like call, the apply method can only handle so many arguments and going over the limit results in the call stack size being exceeded because of all the arguments being pushed onto the call stack.
This could be resolved by internally splitting the operation into smaller, more managable chunks.
All the List methods that borrow from Array.prototype have this problem, actually.
@rjgotten commented on Fri Jan 13 2017
results in
Uncaught RangeError: Maximum call stack size exceeded
The problem is that array -> List conversion internally ends up using
Function.prototype.apply
to forward the operation toArray.prototype.push
. Just likecall
, theapply
method can only handle so many arguments and going over the limit results in the call stack size being exceeded because of all the arguments being pushed onto the call stack.This could be resolved by internally splitting the operation into smaller, more managable chunks.
All the List methods that borrow from
Array.prototype
have this problem, actually.@matthewp commented on Fri Jan 13 2017
Going to move this to canjs/can-list.
The text was updated successfully, but these errors were encountered: