dart2js: crash when using spread in top-level fields #36864
Labels
dart2js-crash
P1
A high priority bug; for example, a single project is unusable or has many test failures
web-dart2js
Milestone
We have an issue in our handling of block expressions in top-level fields. Sample repro:
The static type visitor doesn't have a scope yet since we only create it for procedures and function expressions. However, we expect to have one so we can track all the temporary variables added by block expressions.
Also, what's the reason we don't track the variable declaration of Let expressions? Shouldn't we handle it exactly as we would handle the variables in block expressions as well?
The text was updated successfully, but these errors were encountered: