Skip to content

Request for @functionExpression attribute to opt-out from arrow functions #7061

Open
@DZakh

Description

@DZakh

After the PR #6945 function expressions were changed to arrow functions to improve readability and bundle-size. But it also broke this and arguments binding to the function context, which could be accessed via %raw("this") when needed for some advanced logic.

I need it for rescript-schema, so I think introducing an attribute @functionExpression to opt-out from arrow functions would be a good solution.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Ready

Relationships

None yet

Development

No branches or pull requests

Issue actions