Skip to content

Is it expected a "+" sign in an object's key field to be translated into a function? #1120

@ceremcem

Description

@ceremcem

Is this behavior expected:

a = 
  +: "x"
  -: "y"
a = [
  +(function(){
    _: return "x";
  }()), -(function(){
    _: return "y";
  }())
];

I would definitely expect the following output:

a = {
  "+": "x",
  "-": "y"
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions