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
When using both, it seemed that the async methods in _createClass output lose the origin names, compared to the other non-async functions:
I found this was troublesome in some cases. Take runtime stack parsing as an example, now function was replaced by another function which name is not the same as original, hence we cannot figure out what function is really running at runtime(Because the error stack now shows at SomeClass.callee$ instead of at SomeClass.yourActualMethod )
I'm not quite sure about this transforming procedure machanism is done by babel itself or regenerator transform. An 'option' to preserve the function name, or providing enough infomation at execution will be really really helpful, thanks!
The text was updated successfully, but these errors were encountered:
When using both, it seemed that the
async methods
in _createClass output lose the origin names, compared to the other non-async functions:I found this was troublesome in some cases. Take
runtime stack parsing
as an example, now function was replaced by another function which name is not the same as original, hence we cannot figure out what function is really running at runtime(Because the error stack now showsat SomeClass.callee$
instead ofat SomeClass.yourActualMethod
)I'm not quite sure about this transforming procedure machanism is done by babel itself or regenerator transform. An 'option' to preserve the function name, or providing enough infomation at execution will be really really helpful, thanks!
The text was updated successfully, but these errors were encountered: