Closed motiz88 closed 9 years ago
oh dear that's horribly nasty, thanks for the report, let me know if you struggle with the PR and I'll take a look
My results so far: createReferenceTo()
creates the "missing" assignment expression seemingly correctly, but for some reason (which I haven't pinned down) it gets lost inside Babel, in the call to traverser.insertBefore()
.
This is as far as I am able to debug this issue right now. Hope it helps.
@motiz88 thanks that's a big help, I'll take a look tonight.
With 1.3.0 and the latest Babel, I encountered this severely broken behavior where some of my functions were returning
undefined
instead of the expected value, but only withtypecheck
enabled. I've tracked it down to the following minimal case.The source
is transpiled to
I'm working on a PR with at least a test, and at best a fix if I can manage it.