Throw exception on unsafe closure export by default
BenMorel opened this issue · comments
Benjamin Morel commented
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
.