Skip to content
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 'reportError' of null due to VariableBinder #2081

Open
guybedford opened this issue Feb 15, 2016 · 1 comment
Open

Cannot read property 'reportError' of null due to VariableBinder #2081

guybedford opened this issue Feb 15, 2016 · 1 comment

Comments

@guybedford
Copy link
Contributor

This is a bit of an obscure error, but in the name of debugging experience worth mentioning.

Instead of getting a code error, the error thrown is Cannot read property 'reportError' of null on this line - https://github.com/google/traceur-compiler/blob/master/src/semantics/Scope.js#L24

I'm not sure what the underlying error was for this, but it is because a null argument is passed in https://github.com/google/traceur-compiler/blob/master/src/semantics/VariableBinder.js#L45 instead of a valid reporter.

@arv
Copy link
Collaborator

arv commented Feb 16, 2016

Did you try with --validate? When turned on it validated the parse tree after each transformation. It seems likely that one of the transformations generates an invalid tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants