Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw exception on unsafe closure export by default #6

Open
BenMorel opened this issue Sep 17, 2019 · 0 comments
Open

Throw exception on unsafe closure export by default #6

BenMorel opened this issue Sep 17, 2019 · 0 comments

Comments

@BenMorel
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant