const Matrix = [
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0]
]
I have a function that turns some of them into 1s based on some rulesets. It doesn't run forever, it's observable due to it working flawlessly without web workers. It's also observable that they are really fast, it takes a fraction of a second for them to run without web workers. I'd be glad to share the file if it helps, but there is really nothing more to it.
Could this be some issue with Web Workers?
EDIT: github.com/dupuqub/constructs/blob/master/Web_Worker_Map.c3p here's a simplified version. You can check that while using Web Workers it will fail sometimes, but without it, it always works. You can confirm it further by increasing "Globals.Destroy_Max" ("Globals" is a sprite) to a higher value.