Fix RangeError: Maximum call stack size exceeded (#479)
Saw this line cause issues in production, causing the following error: ``` RangeError Maximum call stack size exceeded ``` I believe this is caused by javascript engine max argument length - see note from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply#using_apply_and_built-in_functions > The consequences of applying a function with too many arguments (that is, more than tens of thousands of arguments) varies across engines. (The JavaScriptCore engine has hard-coded argument limit of 65536.
This commit is contained in:
committed by
GitHub
parent
b98f054eaa
commit
b99e843e2a
@@ -30,7 +30,7 @@ export class Timer {
|
||||
* @param actions
|
||||
*/
|
||||
public addActions(actions: actionWithDelay[]) {
|
||||
this.actions.push(...actions);
|
||||
this.actions = this.actions.concat(actions);
|
||||
}
|
||||
|
||||
public start() {
|
||||
|
||||
Reference in New Issue
Block a user