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
dart2js: Uncaught TypeError #9481
Comments
Can you please provide exact reproduction steps for this? Added NeedsInfo label. |
We don't have enough info in this bug to take action. Can you please provide exact reproduction steps? Added NeedsInfo label. |
Having trouble getting this to happen in a small sample for you to test. It only seems to occur in quite a big app I am working on. I will keep trying but have had to go back to the previous editor version for now. |
A bit more info: The Javascript, generated by Dart2js, that causes the error is of the following form: var t1, t2, screenpoint; If I manually change the t2.get$xposition() and t2.get$yposition() to t2.xposition and t2.yposition, the error is eliminated. |
This issue could be caused by our new type inferrer. One thing we may be able to do is to provide a flag for turning off certain optimizations. However, a reproduction would really be helpful. |
Added Area-Dart2JS label. |
Added this to the Later milestone. |
This comment was originally written by ngeoffray@google.com Mark, do you have any update for this bug? |
Sorry, no. I've tried but I can't seem to reproduce it in a small example project. For now, I have just added getters and setters for xposition and yposition, even though all they do is retrieve/set private data members _xposition and _yposition. This seems to work around the problem. |
Added TriageForM5 label. |
Removed TriageForM5 label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
With the latest Editor update (v0.4.3_r20602) I now get the following error when using the dart2js output:
Uncaught TypeError: Object #<Point2DObject> has no method 'get$xposition'
The line in the dart code that causes this is:
Point screenpoint = new Point(drawpoint.xposition, drawpoint.yposition);
where drawpoint is type Point2DObject and has members xposition and yposition.
This worked fine in v0.4.2_r20259.
The text was updated successfully, but these errors were encountered: