Skip to content

Blocks with literal null as id in VARIABLE or LIST field behave incorrectly #239

@Minater247

Description

@Minater247

Expected Behavior

The minimal example I created should increment the value of currListNotes[1] every iteration. However, it seems to add random values - in turn, breaking the output. This only occurs when the compiler is enabled, when disabled or running on regular Scratch, the issue does not occur.

For example, here is a screenshot of a regular number, as it should be:

Image

Actual Behavior

Here is a screenshot of what happens when the error occurs:

Image

This has something to do with the double-manipulations, as when I change the value of the above block to not be divided by 19.5 or the like, it does not encounter the same issue, but instead gives random whole numbers.

Steps to reproduce

Open the attached file, and click on the script. When run, the displayed list will show erratic numbers if and only if the compiler is enabled.

Minimal Example.zip

Operating system and Browser

Windows 11 22H2 build 22621.4317, Firefox 134.0.1 (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions