Jens Johansen
b32e313620
[vm] Introduce --script_uri_override to support Platform.script in dart run -r
...
If a script uses `Platform.script` running it with as `dart
<script.dart>` and `dart run <script.dart>` would give the correct
script ("<script.dart>"), but running it with `dart run -r
<script.dart>` would report a dill file in the temp directory which is
not only surprising, but also breaking and for instance running the CFEs
strong_suite.dart via `dart run -r` didn't work.
This CL introduces --script_uri_override to the VM and makes the
resident compiler setup pass it so that when running `dart run -r
<script.dart>`, even though the vm is actually launched from a dill file
that resides in temp, `Platform.script` will actually return
`<script.dart>` - and running the CFEs strong_suite.dart via `dart run
-r` now actually works.
Tested: Added pkg/dartdev/test/commands/run_test.dart and manual testing.
Change-Id: Ia65c01834485fe06af63584baf0448dd5b9ffdb4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/510343
Reviewed-by: Slava Egorov <vegorov@google.com >
Commit-Queue: Jens Johansen <jensj@google.com >
2026-06-11 06:34:20 -07:00
..
2026-02-05 01:29:23 -08:00
2026-05-18 11:35:03 -07:00
2026-06-02 16:47:34 -07:00
2025-10-01 11:28:05 -07:00
2025-04-15 09:07:59 -07:00
2025-10-01 11:28:05 -07:00
2025-10-14 13:15:21 -07:00
2025-11-13 09:50:34 -08:00
2025-09-15 01:41:38 -07:00
2024-04-17 19:14:41 +00:00
2025-11-25 11:59:21 -08:00
2025-10-08 08:16:42 -07:00
2025-10-08 08:16:42 -07:00
2026-06-02 10:28:10 -07:00
2025-10-14 13:15:21 -07:00
2026-04-08 14:31:16 -07:00
2024-11-08 04:36:23 +00:00
2026-04-30 17:04:19 -07:00
2026-04-30 17:04:19 -07:00
2026-06-11 06:34:20 -07:00
2026-03-16 11:14:52 -07:00
2026-03-26 19:52:00 -07:00
2026-04-14 12:22:48 -07:00
2025-06-24 05:59:21 -07:00
2025-02-03 12:55:53 -08:00
2025-09-02 14:27:50 -07:00
2026-04-06 12:54:15 -07:00
2024-08-15 17:51:10 +00:00
2024-03-12 08:29:36 +00:00
2026-06-02 10:28:10 -07:00
2026-06-02 10:28:10 -07:00
2026-02-18 09:18:10 -08:00
2026-01-20 09:49:35 -08:00
2026-05-13 12:47:06 -07:00
2026-05-13 12:47:06 -07:00
2025-05-05 13:07:38 -07:00
2024-08-06 12:26:19 +00:00
2024-09-24 22:41:40 +00:00
2024-08-06 12:26:19 +00:00
2026-01-07 12:38:27 -08:00
2025-10-29 05:25:24 -07:00
2025-10-01 11:28:05 -07:00
2024-08-06 12:26:19 +00:00
2024-06-06 19:10:19 +00:00
2024-06-06 19:10:19 +00:00
2025-05-05 13:07:38 -07:00
2025-04-01 09:50:12 -07:00
2025-07-10 18:28:01 -07:00
2025-07-10 18:28:01 -07:00
2025-10-01 11:28:05 -07:00
2025-10-01 11:28:05 -07:00
2026-01-12 09:41:47 -08:00
2026-01-12 09:41:47 -08:00
2025-10-01 11:28:05 -07:00
2026-01-12 09:41:47 -08:00
2024-04-17 19:14:41 +00:00
2025-12-16 09:22:52 -08:00
2024-08-15 17:51:10 +00:00
2024-07-30 18:08:46 +00:00
2025-04-01 09:50:12 -07:00
2026-05-07 04:18:06 -07:00
2024-08-20 18:13:33 +00:00
2026-06-02 10:28:10 -07:00
2024-09-30 10:23:45 +00:00
2024-07-17 16:47:50 +00:00
2024-07-17 16:47:50 +00:00
2026-05-05 01:15:37 -07:00
2026-05-26 07:49:52 -07:00
2026-05-12 06:11:15 -07:00
2025-10-01 11:28:05 -07:00
2025-07-07 09:34:35 -07:00
2025-07-07 09:34:35 -07:00
2025-06-30 14:23:13 -07:00
2025-06-30 14:23:13 -07:00
2025-11-21 06:42:16 -08:00
2025-11-21 06:42:16 -08:00
2025-04-15 09:07:59 -07:00
2026-05-18 11:35:03 -07:00
2025-01-23 04:19:48 -08:00
2026-06-02 10:28:10 -07:00
2026-06-02 10:28:10 -07:00
2026-06-11 06:34:20 -07:00
2026-04-08 10:05:40 -07:00
2026-06-11 06:34:20 -07:00
2025-06-03 05:56:59 -07:00
2025-06-03 05:56:59 -07:00
2024-04-17 19:14:41 +00:00
2024-03-12 08:29:36 +00:00
2026-01-20 09:49:35 -08:00
2026-06-10 09:49:30 -07:00
2024-06-12 16:45:19 +00:00
2026-05-05 14:18:04 -07:00
2026-05-05 10:03:41 -07:00
2026-05-05 10:03:41 -07:00
2026-05-05 10:03:41 -07:00
2026-05-05 10:03:41 -07:00
2025-09-02 14:27:50 -07:00
2025-07-24 14:48:03 -07:00
2025-07-24 14:48:03 -07:00
2026-04-08 08:33:32 -07:00
2025-11-25 11:59:21 -08:00
2025-01-16 09:15:01 -08:00
2025-10-01 09:41:26 -07:00
2026-05-26 07:49:52 -07:00
2026-04-14 12:22:48 -07:00
2026-05-18 11:35:03 -07:00
2025-10-14 13:15:21 -07:00
2026-05-26 07:49:52 -07:00
2024-07-01 21:00:00 +00:00
2026-06-01 08:32:26 -07:00
2026-06-01 08:32:26 -07:00
2026-01-05 13:06:49 -08:00
2026-06-01 08:32:26 -07:00
2026-05-26 07:49:52 -07:00
2026-05-26 07:49:52 -07:00
2026-05-18 11:35:03 -07:00
2025-05-27 06:30:20 -07:00
2026-06-02 10:28:10 -07:00
2026-05-18 11:35:03 -07:00
2026-05-05 09:53:54 -07:00
2025-10-29 05:25:24 -07:00
2025-10-29 05:25:24 -07:00
2026-05-05 01:15:37 -07:00
2026-05-05 01:15:37 -07:00
2025-10-29 07:25:33 -07:00
2026-05-05 01:15:37 -07:00
2025-10-29 05:25:24 -07:00
2025-10-29 05:25:24 -07:00
2025-10-29 05:25:24 -07:00
2025-10-29 05:25:24 -07:00
2026-05-13 03:40:04 -07:00
2025-10-29 05:25:24 -07:00
2025-03-31 14:31:47 -07:00
2025-03-31 14:31:47 -07:00
2025-10-14 13:15:21 -07:00
2025-10-29 05:25:24 -07:00
2025-10-29 05:25:24 -07:00
2025-10-29 05:25:24 -07:00
2025-10-29 05:25:24 -07:00
2026-05-12 00:32:52 -07:00
2024-09-24 22:41:40 +00:00
2024-09-24 22:41:40 +00:00
2024-09-24 22:41:40 +00:00
2024-09-24 22:41:40 +00:00
2024-09-24 22:41:40 +00:00
2024-09-24 22:41:40 +00:00
2024-09-24 22:41:40 +00:00
2024-06-26 11:10:06 +00:00
2025-06-26 07:47:32 -07:00
2025-06-26 07:47:32 -07:00
2024-04-17 19:14:41 +00:00
2025-11-25 11:59:21 -08:00
2025-07-24 14:48:03 -07:00
2025-02-28 02:24:38 -08:00
2025-12-15 15:45:21 -08:00
2026-04-10 12:04:28 -07:00
2026-03-10 13:27:01 -07:00