<!--- Provide a summary in the title above. Be concise and specific! --> React class component arrow function cannot be recognized. Example Content: import React from 'react' class test extends React.Component{ constructor(props) { super(props); this.state = { } } initData = (item) =>{ } render() { return ( <div></div> ) } } export default connect(mapStateToProps)(LinkageSwitchItem) <!-- If you are here for reasons other than reporting a defect or suggesting an improvement, please post to the mailing-list instead: http://groups.google.com/group/esprima. Do not forget to explore the extensive documentation: http://esprima.org/doc/. Please report one problem at a time! Refrain from filing a bulk report at once since it will make it difficult to follow-up and we may have to close the issue. --> ### Steps to reproduce <!--- When reporting a defect, specify the scenario that reproduces the problem --> ```js esprima.parse('some code') ``` ### Expected output <!--- When reporting a defect, write what should happen, e.g. a particular AST output --> <!--- When suggesting an improvement, describe how it should work --> ### Actual output <!--- When reporting a defect, write what actually happens instead of the expected behavior --> <!--- When suggesting an improvement, explain the difference from current behavior --> ### Relevant references <!--- Optionally, include as many relevant references, e.g. the ECMAScript specification. -->
Activity
jogibear9988 commentedon Jan 1, 2022
maybe try my fork, esprima-next
enjoy-wind commentedon Jan 1, 2022
I have fixed this issue myself, what attempts to support VUE.
jogibear9988 commentedon Jan 1, 2022
I've seen your commit, but it could happen again, and I don't see much development here...