-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Crashing bug with pkg/js and dart2js #24974
Comments
See this branch: https://github.com/google/chartjs.dart/tree/cl276070043 |
|
Here is a small repro of the issue:
I'll be adding this regression test to our repo shortly. I believe Jacob's workaround helps because the |
Just sent out a possible fix: https://codereview.chromium.org/1458313002/ |
FYI - I just validated and the chart example works with the patch |
The intent of the dart2js implementation of JS interop is any time you get On Thu, Nov 19, 2015 at 4:41 PM, sigmundch notifications@github.com wrote:
|
Interesting - so cross-cast would work as long as the two JS types were included independently, but the cast on itself will not be enough to include the casted type. I just created a CL with the alternative approach where we include all JS types as soon as you make any call through JS-interop. It can't treeshake any interop type, but side-casts would work. |
Closing this issue now that it made it to the dev-channel version 1.14.0-dev.3.0. |
The chartjs.dart project with some recent changes from @jacob314 crashes without the work-around items commented out by this commit
google/chartjs.dart@d38ec4b
The text was updated successfully, but these errors were encountered: