Skip to content

Commit 65b9109

Browse files
aartbikcommit-bot@chromium.org
authored andcommitted
[vm/fuzzer] avoid codedup in fuzzer
Change-Id: Ie49819b0d7b83c1050be61c385b4668141d099a4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120300 Reviewed-by: Felicitas Hetzelt <felih@google.com> Commit-Queue: Aart Bik <ajcbik@google.com>
1 parent a8cce35 commit 65b9109

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

runtime/tools/dartfuzz/dartfuzz.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,13 +1085,7 @@ class DartFuzz {
10851085
if (DartType.isMapType(tp)) {
10861086
// Emit construct for the map key type.
10871087
final indexType = dartType.indexType(tp);
1088-
// This check determines whether we are emitting a global variable.
1089-
// I.e. whenever we are not currently emitting part of a class.
1090-
if (currentMethod != null) {
1091-
emitExpr(depth, indexType, rhsFilter: rhsFilter);
1092-
} else {
1093-
emitLiteral(depth, indexType, rhsFilter: rhsFilter);
1094-
}
1088+
emitElementExpr(depth, indexType, rhsFilter: rhsFilter);
10951089
emit(' : ');
10961090
// Emit construct for the map value type.
10971091
emitElementExpr(depth, elementType, rhsFilter: rhsFilter);

0 commit comments

Comments
 (0)