Skip to content

Exotic identifiers as field names broken on master #6882

Closed

Description

@cknitt
type test = {\"TEST": int}

let test = {\"TEST": 42}

now compiles to

let test = {
  "\\\"TEST\"": 42
};

instead of

let test = {
  TEST: 42
};

@cometkim Could this be a side effect of #6777/#6779?

Activity

  1. cometkim commented on Jul 16, 2024

    @cometkim
    Member

    Hmmm, would they be represented as Lident in the AST?

  2. cometkim commented on Jul 16, 2024

    @cometkim
    Member

    Ok let me check it. I think we need to modify the parser then It's the backend (Js_dump)

  3. added a commit that references this issue on Jul 20, 2024
    e5ebb62
  4. added a commit that references this issue on Jul 21, 2024
    4934f3b
  5. added theissue type on Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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