Skip to content

Commit ac18236

Browse files
srawlinsCommit Queue
authored andcommitted
dartdev: avoid mutating an immutable list
Not sure how I missed this error before. I may have not been manually testing the right thing earlier. Change-Id: I4516e646cd0b0ada9590c53ad39c0dc2cc60c6c7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426700 Auto-Submit: Samuel Rawlins <[email protected]> Reviewed-by: Siva Annamalai <[email protected]> Commit-Queue: Siva Annamalai <[email protected]>
1 parent 31583a6 commit ac18236

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/dartdev/lib/src/commands/language_server.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ For more information about the server's capabilities and configuration, see:
5353
if (!Sdk.checkArtifactExists(sdk.dartAotRuntime)) {
5454
return _genericErrorExitCode;
5555
}
56+
args = [...args];
5657
args.remove('--$useAotSnapshotFlag');
5758
VmInteropHandler.run(
5859
sdk.dartAotRuntime,

0 commit comments

Comments
 (0)