Skip to content

Commit bf4d4b2

Browse files
aartbikcommit-bot@chromium.org
authored andcommitted
[dart/fuzzer] re-enable spread at all depths in fuzzer
Rationale: front end team fixed bug in parsing these constructs #38874 Change-Id: I2bc812c1ae3e4465cac93111836a21875a89b527 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122420 Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Aart Bik <ajcbik@google.com>
1 parent 13a5893 commit bf4d4b2

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

runtime/tools/dartfuzz/dartfuzz.dart

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import 'dartfuzz_type_table.dart';
1414
// Version of DartFuzz. Increase this each time changes are made
1515
// to preserve the property that a given version of DartFuzz yields
1616
// the same fuzzed program for a deterministic random seed.
17-
const String version = '1.62';
17+
const String version = '1.63';
1818

1919
// Restriction on statements and expressions.
2020
const int stmtDepth = 1;
@@ -1218,13 +1218,8 @@ class DartFuzz {
12181218
switch (r) {
12191219
// Favors elements over control-flow collections.
12201220
case 0:
1221-
// TODO (ajcbik): Remove restriction once compiler is fixed.
1222-
if (depth < 2) {
1223-
emitLn('...', newline: false); // spread
1224-
emitCollection(depth + 1, tp, rhsFilter: rhsFilter);
1225-
} else {
1226-
emitElement(depth, tp, rhsFilter: rhsFilter);
1227-
}
1221+
emitLn('...', newline: false); // spread
1222+
emitCollection(depth + 1, tp, rhsFilter: rhsFilter);
12281223
break;
12291224
case 1:
12301225
emitLn('if ', newline: false);

0 commit comments

Comments
 (0)