New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support optional chaining operator #311
Comments
Good suggestion, however, even tho the proposal is already on Stage 4(finished), we would still need to wait around July where the schedule(if schedules are followed) of the new standard by the ECMA General Assembly will get approved. |
@uniibu thats not correct you can assume every stage 3 feature will get implemented even browsers have implemented it already stage 3 is save to impl |
@frank-dspeed thanks for clarifying, although I never said that a stage 3 proposals have a chance to not be implemented. In fact, I don't think there has ever been a stage 3 proposal that was eventually withdrawn/rejected. You are also correct that browsers indeed are implementing most of the stage 3 proposals, however, Lebab does not rely on browsers as its parser. It uses Espree and during the time i wrote that comment, Going back, I would say this is now possible to do since Espree have already implemented it on their latest release v7.2.0 which includes PR #446 and was only released 6 days ago. |
@uniibu espree now uses acron anyway now under the hood so it supports everything |
@uniibu even top level await |
For me, I have nothing against adding new features and supporting latest proposals. But we have to keep in mind that Lebab wasn't made only for codes that runs on browsers in general. For example, implementing a Fwiw, I do not decide which new feature to add or edit for this library. @nene would be the right person for that. |
@uniibu we have TOP LEVEL AWAIT inside nodejs :) |
TLA on nodejs is still under On another point, I think the project is dead or is dying/forgotten. @nene has been inactive for a long time now and I don't think owner really cares much at this point. My PR which updates the dependencies including |
@uniibu i will fork lebab now and turn it into codemods |
Optional chaining works in Node 14+, would be a great addition to lebab |
Great job here.
I want to suggest adding support for the optional chaining operator e.g
Code:
Current Output:
Expected Output:
The text was updated successfully, but these errors were encountered: