The code is causing a maximum call stack size exceeded error.
How to reproduce
Load the code that contains the execute function.
Call the execute function passing an array of SnippetArrayItem and thisArg as parameters.
The code will get stuck in an infinite loop, eventually throwing the RangeError: Maximum call stack size exceeded error.
Related sub-libraries
[ ] All of them
[x] posthog-web
[ ] posthog-node
[ ] posthog-react-native
Additional context
The error is occurring in the execute function, which contains a loop that calls itself recursively. This is causing the stack to fill up until it reaches the maximum size allowed by the browser, resulting in the error.
Thank you for your bug report – we love squashing them!
Bug description
The code is causing a maximum call stack size exceeded error.
How to reproduce
Related sub-libraries
Additional context
The error is occurring in the execute function, which contains a loop that calls itself recursively. This is causing the stack to fill up until it reaches the maximum size allowed by the browser, resulting in the error.
Thank you for your bug report – we love squashing them!