Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix paths when run from same directory as manifest
Towards #37610 When the `script_uri` argument to the VM has no path separators the value returned from `DirName` is identical to the input, and it is not safe to use it as a prefix for concatenating relative paths. - Compare the dirname against the script URI and use an empty prefix when they match, indicating we were unable to find a directory. - Rename `absolute_filename` to `resolved_filename` since it is not absolute in all cases. Change-Id: I62e5b06d240b55b3aa9d97d61c003adb812485e0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110137 Reviewed-by: Alexander Aprelev <[email protected]> Commit-Queue: Nate Bosch <[email protected]>
- Loading branch information