Skip to content

Throw exception on unsafe closure export by default #6

@BenMorel

Description

@BenMorel

Currently we export non-namespaced functions/constants as is. The exporter closure is not guaranteed to work everywhere. We should instead throw an exception in this case, and make the current behaviour optional by providing a flag, such as ALLOW_UNSAFE_CLOSURE_EXPORT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions