Skip to content

Commit b09f6ab

Browse files
mkustermannCommit Queue
authored andcommitted
[vm] Fix snapshot analyzer test in product mode
Closes #60680 Change-Id: I99ce3606edb748470ab94bbbe0d84a3a5c270768 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/427540 Commit-Queue: Martin Kustermann <[email protected]> Reviewed-by: Slava Egorov <[email protected]>
1 parent 036b599 commit b09f6ab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runtime/tests/vm/dart/analyze_snapshot_binary_test.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ Future<void> testAOT(
213213
.key];
214214
final baseFieldIds = baseClass['fields'];
215215
final baseFields = [for (final int id in baseFieldIds) objects[id]];
216-
final baseSlots = baseClass['instance_slots'];
216+
final baseSlots = baseClass['instance_slots']
217+
.map<Map>((e) => e as Map)
218+
.toList();
217219
final subFieldIds = subClass['fields'];
218220
final subFields = [for (final int id in subFieldIds) objects[id]];
219221
final subSlots = subClass['instance_slots'];
@@ -246,7 +248,7 @@ Future<void> testAOT(
246248
offsetBytes: 8,
247249
);
248250
slotOffset += expectUnknownReference(
249-
baseSlots.skip(slotOffset),
251+
baseSlots[slotOffset],
250252
offsetReferences: 0,
251253
offsetBytes: 16,
252254
);

0 commit comments

Comments
 (0)