Closes https://github.com/dart-lang/sdk/issues/55429 Closes https://github.com/dart-lang/sdk/issues/55508 Objects like TrustedScriptURLs can be passed to the dynamic import function, and therefore importModule should accept any JS value. Change-Id: I43ce9aeb1e8fbd628bc768a16b246ba19470b1dc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/363504 Reviewed-by: Lasse Nielsen <lrn@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>