devicescript icon indicating copy to clipboard operation
devicescript copied to clipboard

DeviceScript wrongly considers a loop as an infinite one.

Open xiboon opened this issue 7 months ago • 0 comments

Describe the bug DeviceScript panics, saying Exception: InfiniteLoop wrongly

To Reproduce

  1. create two random buffers, one of the size of 4500-5000 and the other with the size of 4
  2. loop over the big buffer, running bigBuffer[i] ^= smallBuffer[i % 4] in it
  3. see error

Expected behavior The loop runs and finishes successfully.

Screenshots image

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.

xiboon avatar Jul 01 '24 14:07 xiboon