My startup developed an application with more than 50,000 lines in Dart, and so far has imposed very few restrictions on compiling Dart to JavaScript. Dart was designed from the very beginning to convert it to JavaScript, so it does not suffer from compilation problems that suffer from GWT (Java class allocation cannot be serialized in JWascript GWT, as a result of which people wrap the material for no other reason than how to make the GWT compiler happy).
Having said that, there are many limitations when compiling Dart to JavaScript, but most of them are related to server-side technology, which cannot work in the browser, for example, sockets and access to IO and, therefore, is very reasonable. There are also a few restrictions regarding the transfer of objects in isolation, but I believe that they will be sorted in future releases of dart2js .
Lars tackmann
source share