-
Daniel Clark authored
Hosts are not supposed to rely on the ordering of import assertions list received from V8. Thus, as a simplification, remove the sorting of the import assertions passed to the HostImportModuleDynamically callback. Update the corresponding test so that it doesn't require any particular ordering of assertions. Import asssertions for static imports will continue to be sorted. These need to have a consistent ordering for purposes of deduplication in SourceTextModuleDescriptor::module_requests_, so removing sorting of these wouldn't simplify much. Bug: v8:10958 Change-Id: I2cb07c4e68f24fa45152bf3f4321938bf94d84ba Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2653170Reviewed-by: Camillo Bruni <cbruni@chromium.org> Reviewed-by: Marja Hölttä <marja@chromium.org> Reviewed-by: Mythri Alle <mythria@chromium.org> Commit-Queue: Dan Clark <daniec@microsoft.com> Cr-Commit-Position: refs/heads/master@{#72445}
dae07e7a