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
Cannot read property 'superCalled' of undefined #8848
Comments
I haven't been able to reproduce, but whoever is looking into this should start with the |
Please note that the error goes away when the class Extender {}
class BugProof extends Extender {
constructor(props) {
super(props);
try {
for (let i = 0; i < 1; i++) {
}
} catch (err) {
}
}
} If we keep the
|
I can recreate this with the latest version of ESLint with the above code and this minimal config: {
"env": {
"es6": true
},
"rules": {
"no-this-before-super": "error"
}
} |
@kaicataldo I find function isCalledInSomePath(segment) {
return segment.reachable && segInfoMap[segment.id].calledInSomePaths;
}
|
It's possible that this is a bug in the core code path analysis logic. |
@mysticatea Any insight on this? |
Oh, I'm sorry, I had overlooked this issue. |
It looks a bug in code path analysis. If |
Tell us about your environment
^3.8.1
7.6.0
4.1.2
What parser (default, Babel-ESLint, etc.) are you using?
"babel-eslint": "^7.0.0",
"eslint": "^3.8.1",
"eslint-config-react-app": "^0.6.2",
"eslint-plugin-flowtype": "^2.21.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.10.0"
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
It shouldn't give any error
What actually happened? Please include the actual, raw output from ESLint.
The location of the "Parsing error: Unexpected token" will change depending on the last line edited.
The text was updated successfully, but these errors were encountered: