DescriptionFix canonicalization of --url_mapping URIs in gen_snapshot
When gen_snapshot encounters a url that has been remapped with the --url_mapping command line argument it rewrites the library's url to be the mapped url before canonicalization. The new C++ API only does canonicalization with respect to the library's url (as returned by Dart_LibraryUrl) which is insufficient for gen_snapshot. The correct long-term fix is to alter the new C++ API to allow for the base url to be passed in directly rather than indirectly via Dart_LibraryUrl.
This CL just restores some deleted code and has gen_snapshot work like it did before. The standalone embedder still uses the C++ API during loading.
Dartium build failures: https://build.chromium.org/p/client.dart/builders/dartium-mac-inc-be/builds/12488/steps/compile/logs/stdio
Committed: https://github.com/dart-lang/sdk/commit/d47866964cc6e3a6c00f50ab539f383408c78bf2
Patch Set 1 #
Messages
Total messages: 7 (5 generated)
|