Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more JS subtyping semantics to CFE constant evaluator.
If we're targeting a JS backend, `isSubtype` considers every int to be a double. We need to additionally allow any integer-valued double to be an int. This mainly allows us to handle signed zeroes correctly. Fixes #36562. Change-Id: I00d1e693bb3f1268ac100a76c9bec8fcc612b182 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99101 Commit-Queue: Mayank Patke <fishythefish@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>
- Loading branch information