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

Boolean procedure argument reporters from a different procedure with the same name as a number or string arugment act differently to Scratch #222

Closed Tacodiva closed 1 month ago

Tacodiva commented 1 month ago

TurboWarp seems to assume boolean input blocks always have a boolean value. This is not true in the case that the boolean procedure argument comes from a different procedure, but has the same name as a number or string argument in the current procedure. The following code behaves differently on Scratch and TurboWarp. In Scratch the boolean foo reporter reports the string "Haiii!", in Turbowarp it reports "true".

image

Demo Projects: https://scratch.mit.edu/projects/1064784564/ https://turbowarp.org/1064784564/

CubesterYT commented 1 month ago

That's a weird compiler bug