Skip to content

Cannot create a sparse array in runes mode #16375

@Zlendy

Description

@Zlendy

Describe the bug

If the delete keyword is used to remove an item from an array (i.e., create a sparse array) in runes mode, every item following the requested one will be removed as well.

This behavior is different from the one in legacy mode, which I consider to be the correct behavior.

Reproduction

Logs

System Info

System:
    OS: Linux 6.14 Fedora Linux Asahi Remix 42 (Forty Two [Adams])
    CPU: (8) arm64 unknown
    Memory: 2.26 GB / 15.27 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.16.0 - /run/user/1000/fnm_multishells/20738_1752596942062/bin/node
    Yarn: 1.22.22 - /run/user/1000/fnm_multishells/20738_1752596942062/bin/yarn
    npm: 11.4.2 - /run/user/1000/fnm_multishells/20738_1752596942062/bin/npm
    pnpm: 10.11.0 - /run/user/1000/fnm_multishells/20738_1752596942062/bin/pnpm

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions