Comments (2)
@chocolateboy Thank you so much for detailed bug report.
The problem is in findTailCalls.js. We need to add an additional check for expressions that could lead to TC. Probably it's good idea to rewrite ternary operator to if statement after detecting TC.
I can provide some more details/ideas if you want to work on the patch :)
from babel-plugin-tailcall-optimization.
I probably don't have time at the moment, but feel free in case I do or someone else wants to have a go :-)
from babel-plugin-tailcall-optimization.
Related Issues (15)
- Plugin breaks on `export default function` due to null pointer HOT 4
- Didn't ES2015 introduce tail call optimization? HOT 3
- conditional operator not supported HOT 6
- Support babel 7 HOT 9
- does not work with concise body syntax (implied return) in arrow function
- Can a Babel 7 release be awaited? HOT 4
- Discussion of adding TCO when closure is detected HOT 8
- How the conversion is helping in TCO ? HOT 1
- -
- -
- -
- dependencies that should be dev HOT 1
- Discussion about mutual recursion
- invalid code generated due to missing semicolons HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-plugin-tailcall-optimization.