Describe the bug
DeviceScript panics, saying Exception: InfiniteLoop wrongly
To Reproduce
create two random buffers, one of the size of 4500-5000 and the other with the size of 4
loop over the big buffer, running bigBuffer[i] ^= smallBuffer[i % 4] in it
see error
Expected behavior
The loop runs and finishes successfully.
Screenshots
Additional context
I'm running through the devicescript simulator, experienced while creating a websocket library for devicescript. The loop is needed for masking the message.
Describe the bug DeviceScript panics, saying
Exception: InfiniteLoop
wronglyTo Reproduce
bigBuffer[i] ^= smallBuffer[i % 4]
in itExpected behavior The loop runs and finishes successfully.
Screenshots![image](https://github.com/microsoft/devicescript/assets/38988733/bddadc71-8738-47c1-b706-c8f91e1479fd)
Additional context I'm running through the devicescript simulator, experienced while creating a websocket library for devicescript. The loop is needed for masking the message.