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
dart2js: Almost all throws are expressions #10633
Comments
Added this to the Later milestone. |
Added TriageForM5 label. |
Removed TriageForM5 label. |
Correction. We should have generated: if ($length !== this.get$length(this)) Set owner to @mkustermann. |
Kasper, I don't think your correction is correct. You must call wrapException. |
Good point, Peter! ... but clearly we don't have to call throwExpression. |
cc @floitschG. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
A large app has 1395 calls to I actually think we should use |
We know that some JS engines have a hard time optimizing the output from dart2js if we don't explicitly throw. However, it looks like after throw as an expression was implemented, that we always generate an expression without throw.
That is, we generate:
if ($length !== this.get$length(this))$.ConcurrentModificationError$ (this));
$.throwExpression(
But should have generated:
if ($length !== this.get$length(this))$.throwExpression($ .ConcurrentModificationError$(this));
throw
The text was updated successfully, but these errors were encountered: