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

dart:mirrors - is it really needed? #36

Open
aikar opened this issue Dec 22, 2015 · 1 comment
Open

dart:mirrors - is it really needed? #36

aikar opened this issue Dec 22, 2015 · 1 comment

Comments

@aikar
Copy link

aikar commented Dec 22, 2015

****************************************************************
* WARNING: dart:mirrors support in dart2js is experimental,
*          and not recommended.
*          This implementation of mirrors is incomplete,
*          and often greatly increases the size of the generated
*          JavaScript code.
*
* Your app imports dart:mirrors via:
*   ef-client.dart => package:play_phaser => dart:mirrors
*
* You can disable this message by using the --enable-experimental-mirrors
* command-line flag.
*
* To learn what to do next, please visit:
*    http://dartlang.org/dart2js-reflection
****************************************************************

[Warning from Dart2JS]:
2530 methods retained for use by dart:mirrors out of 4921 total methods (51%)

is this really needed? Could it potentially be removed?

@aikar
Copy link
Author

aikar commented Dec 22, 2015

Is it used to keep the objects named respectively? If so, can you use the new JS Interop instead?
https://pub.dartlang.org/packages/js

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

1 participant