Skip to content

[wasm][debugger] Indexing with expression does not work #67029

Closed

Description

@ilonatommy

Indexing arrays with mathematical expressions e.g.

int [] arr = new int[]{ 1, 2, 3 };
arr[1 + 1]; //error

error:
Cannot evaluate '(arr[1 + 1]\n)

Activity

  1. self-assigned this
    on Mar 23, 2022
  2. ghost added
    untriaged
    on Mar 23, 2022
  3. teo-tsirpanis commented on Mar 23, 2022

    @teo-tsirpanis
    Contributor

    I presume you mean in the WASM debugger?

  4. added
    arch-wasm
    on Mar 23, 2022
  5. changed the title [-]Indexing with expression does not work[/-] [+][wasm][debugger] Indexing with expression does not work[/+] on Mar 23, 2022
  6. teo-tsirpanis commented on Mar 23, 2022

    @teo-tsirpanis
    Contributor

    new arr[]

    Did you mean new int[]?

  7. added this to the 7.0.0 milestone on Mar 30, 2022
  8. removed
    untriaged
    on Mar 30, 2022
  9. modified the milestones: 7.0.0, 8.0.0 on Jul 27, 2022
  10. ghost added
    in-pr
    on Sep 13, 2022
  11. radical commented on Sep 14, 2022

    @radical
    Member

    Additional case to fix - indexing with non-number types. I added a test for this in #75524 .

  12. ghost removed
    in-pr
    on Sep 14, 2022
  13. ghost locked as resolved and limited conversation to collaborators on Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Debugger-mono

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions