2f117ba43c
It was returning library's index which is an unstable value. This instability could cause `Precompiler::HasApiUse` to stop returning `true` after `Precompiler::DropLibraries` even if library was added to the `api_uses_` set. This in turn could cause `Precompiler::PruneDictionaries` to drop library entries it should not have dropped. TEST=added assertion that verifies stability of the set Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-debug-x64-try Change-Id: I0685bd75562f83e2b9d8b3a03fa410ba218df2ea Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/275241 Reviewed-by: Tess Strickland <sstrickl@google.com> Auto-Submit: Slava Egorov <vegorov@google.com> Commit-Queue: Slava Egorov <vegorov@google.com>