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:
Karl-Aksel Puulmann
2021-02-08 15:37:35 +02:00
committed by GitHub
parent cc15be1e88
commit 5021c7a606

View File

@@ -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() {