Declaring a variable in a loop, appears to now cause issues

This doesn’t work

function test () {
  return Math.random()
}

for(let i =0; i < 5; i++) {
   const val = test()
  console.log(val)
}

This works

function test () {
  return Math.random()
}

for(let i =0; i < 5; i++) {
  console.log(test())
}

Hi @anjorinjnr, Sorry about that! I broke this last night but just pushed the fix and it should be working again now. Sorry for the inconvenience and let me know if anything else acts up!

Thanks,

Francisco

Thanks it’s now resolved.