[Import Maps] Implement scoping
This CL implements scoping of import maps: - Parsing in ImportMap::Parse(), and - Resolving in ImportMap::Resolve(). To use ResolveImportsMatch() and MatchPrefix() for resolving using scopes, this CL makes them take |SpecifierMap| arguments instead of using |imports_|. Sorting order of scope keys is fixed by https://github.com/WICG/import-maps/pull/182 and new tests (which will pass after this CL) are added by https://github.com/WICG/import-maps/pull/183 Bug: 927181 Change-Id: I778a74424ad0eded8af8bfcf8443764b52abfbd2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1838233Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Cr-Commit-Position: refs/heads/master@{#703402}
Showing
Please register or sign in to comment