Rangeerror: Maximum Call Stack Size Exceeded Caused By Array.splice.apply?
I'm running a cheerio task and it throws an exception that prints this (Note that I added the log statements that print the size of spliceArgs and array: [14:17:08] Starting 't
Solution 1:
I think you are hitting the maximum argument size allowed by apply. If you reference https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply
The consequences of applying a function with too many arguments (think more than tens of thousands of arguments) vary across engines (JavaScriptCore has hard-coded argument limit of 65536), because the limit (indeed even the nature of any excessively-large-stack behavior) is unspecified.
Post a Comment for "Rangeerror: Maximum Call Stack Size Exceeded Caused By Array.splice.apply?"