-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CP] [dart2wasm] Fix bug in setter type checker argument checking implementation #56374
Comments
Summary: In |
/cc @athomas I'd suggest we keep our |
lgtm |
@itsjustkevin any chance we could get this approved & landed to be included in time for upcoming dot release? |
@mkustermann approved. Please write a changelog update pointing back to this issue to satisfy the submit requirements. |
… implementation The CL in [0] introduced a regression: By not performing the type checking code in -O3/-O4 mode it didn't have the side-effect of the type checking code anymore (setting the `argLocal`) which caused the setter to store `null` instead of the actual value. [0] https://dart-review.googlesource.com/c/sdk/+/370280 Fixes flutter/flutter#152029 TEST=web/wasm/flutter_regress_152029_test Bug: flutter/flutter#152029 Change-Id: Icea1ac478ff020e2056c4c7011aaea7a6222ec32 Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/378800 Cherry-pick-request: #56374 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/378860 Reviewed-by: Ömer Ağacan <omersa@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com>
The CL landed |
Commit(s) to merge
2cf3222
Target
stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/378860
Issue Description
Flutter code that uses dynamic calls where the dynamic call targets a setter with a generic argument will (in
-O3
/-O4
mode - the ladder which is flutter builds default) setsnull
instead of the actual value.What is the fix
Make compiler in
-O3
/-O4
mode correctly set the field value in the implicit setter.Why cherry-pick
Flutter users have hit this.
Risk
If tests pass: low
Issue link(s)
flutter/flutter#152029
Extra Info
No response
The text was updated successfully, but these errors were encountered: