You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should evaluate whether it makes sense for dart2wasm recognize <constant-or-literal>.toJS expressions and canonicalize & move those objects at compile-time to JS (by emitting them into the ...mjs file and importing those external references) instead of lazily at runtime.
We should evaluate whether it makes sense for dart2wasm recognize
<constant-or-literal>.toJS
expressions and canonicalize & move those objects at compile-time to JS (by emitting them into the...mjs
file and importing those external references) instead of lazily at runtime.It may be very common to have code such as
Currently one may be tempted to cache such manually at the top-level via
but this compiles to worse code in dart2js (see #56045)
/cc @srujzs
The text was updated successfully, but these errors were encountered: