TurboWarp / scratch-vm

Scratch VM with a JIT compiler and more features
https://turbowarp.org/
Mozilla Public License 2.0
75 stars 72 forks source link

Random block not marked NaN-able even though it returns NaN with inputs -Infinity and Infinity #103

Closed Tacodiva closed 1 year ago

Tacodiva commented 1 year ago

This block: image

returns NaN in TurboWarp but 0 in Scratch, because random can return NaN when it's inputs are -Infinity and Infinity, but is not marked as able to be NaN.

See demo project 773386490 on Scratch and TurboWarp.