Skip to content

[CS2] Docs: Erroneous statement in "unsupported named functions" section #4642

@connec

Description

@connec

I would push a PR for this but I'm not setup to build the docs etc. so I'm making an issue so I don't forget!


The "unsupported named functions" section of the docs currently says:

given that not all functions in function expressions can be named (for example, the functions in first.fn = ->; second.fn = -> can’t both be named fn)

This isn't true, as the following is perfectly valid JS:

var first = {}, second = {}
first.fn = function fn () {}
second.fn = function fn () {}

Afaik, any function expression can be named in this way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions