Skip to content

bug(semantic): params in export default (function() {}) flagged as SymbolFlags::Export #4475

@DonIsaac

Description

@DonIsaac

Found in #4445

Parameters in parenthesis-wrapped function expressions in ExportDefaultDeclarations are being incorrectly flagged as exports.

// correct: `a` is not flagged as exported
export default function (a) { }
// incorrect: `a` is flagged as exported
export default (function(a) {});

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions