Skip to content

[CS2] Docs: Need to add breaking changes info about => differences in CS2 #4593

@boris-petrov

Description

@boris-petrov
foo = bar =>
  console.log arguments

Is compile to:

foo = bar(() => {
  return console.log(arguments);
});

But according to this, arrow functions do not have their own arguments. I think this is a bug in CoffeeScript 2. Whenever arguments are used, that function should not compile to an arrow function. Or do you have some... um... arguments against that? :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions