Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ VM / CLI ] Fix issue where trying to snapshot a non-existent script…
… would cause an assertion failure Passing --snapshot should result in the CLI being bypassed (`dart compile` should be used otherwise). Check to see if this option is provided when attempting to parse the script name and always populate script_name in that case. Fixes #43785 TEST=Added regression test to the CLI package to exercise this path. Fixed: 43785 Change-Id: Ifb67a5880f6b83c54e6deb6b0785b61fdcfc0ada Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/172820 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
- Loading branch information