17ed3cb5b3
Passed library name instead of URI to "checkDeferredLoad" in the generated JS. The URI was only used to report errors on library load at runtime - the user should be able to to find the URI in the dart import statemement instead. Closes https://github.com/dart-lang/sdk/issues/37623 Notes: - The URI is also stored in the deferred library's source map. If finding this information on load failure is too inconvenient, we might consider storing the URI in the main source map as well, and making sure that the URI is loaded from the source map on load failure at runtime, for better error reporting for users who have access to the source maps. - Not sure how much work is needed for this to be done, so leaving this until the need arises. Change-Id: I90caa560e7c57c61e810b9ca4cfc648cddba5905 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122200 Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Anna Gringauze <annagrin@google.com>