You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I've been told, the latter case works because in Js.t, anything goes. But these two cases are functionally equivalent, and in the former case the reserved keyword is quoted, not even able to be used as an identifier. This makes the (non-)mangling rules rather counter-intuitive as well as inconsistent.
The text was updated successfully, but these errors were encountered:
This came up when trying to import an es6 module, where the natural way of doing it breaks due to mangling of the reserved keyword
default
:is compiled into:
This, on the other hand, works:
which compiles into:
As I've been told, the latter case works because in Js.t, anything goes. But these two cases are functionally equivalent, and in the former case the reserved keyword is quoted, not even able to be used as an identifier. This makes the (non-)mangling rules rather counter-intuitive as well as inconsistent.
The text was updated successfully, but these errors were encountered: