40aacb3482
Bools from environment such as `dart.library.js_util` are represented as unknown bools. They currently produce a `NON_BOOL_CONDITION` error when used in if statements in const lists, which is not the behaviour we want. This CL marks iterables with these unknown bools in if statements as unknown and avoids other calculations like `==` upstream. Bug: https://github.com/dart-lang/sdk/issues/53363, https://github.com/dart-lang/sdk/issues/51607 Change-Id: Ibd3e6dbc6a507c93516bc2782d59d0e1e452f17d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326261 Commit-Queue: Kallen Tu <kallentu@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>