Marten de Vries
Marten de Vries
Nice find, thanks for reporting. There is the edge case of what to do with functions thrown before an await statement to take into account. It's some time ago I...
That's right. If you encounter the issue, you can just work around it by assigning to a variable, then returning that variable after the block. That's pretty much what Kneden...
@nolanlawson The newly opened #21 makes me less confident about my previous post. Consider Kneden an alpha-quality tool that will likely require workarounds, for now. So pretty much what the...
@raphaelokon Yes, development pretty much stalled. I would be open for PRs and the like, but currently I don't have the time to work on it myself. That might still...
@timdp Don't forget that returns also change the control flow. Still, something like that might work, and if it works I'd be fine merging something like that. @ljharb Quite possible...
Nice find, returns are tricky... If statements in particular are rewritten in all kinds of ways to try to prevent this kind of situation. Remove 1 or 2, and other...
`.then(function () {})` is for the following scenario: ``` js async function test() { await a(); } ``` -> ``` js function test() { return Promise.resolve().then(function () { return a();...
Added failing test in 89f3a91.
#43 contains a fix. Needs more testing, though.
@developit 's solution looks great, would be nice to add a note on it to the README.