Skip to content

Commit b8dbaaa

Browse files
Fizaa Luthracommit-bot@chromium.org
authored andcommitted
[dartfuzz] Fix infinite recursion in call methods
Change-Id: Ia9add544bdb12fa806dbcfcedf41ccf023d48fa3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127204 Commit-Queue: Fizaa Luthra <fizaaluthra@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>
1 parent 6dc48ab commit b8dbaaa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

runtime/tools/dartfuzz/dartfuzz.dart

Lines changed: 2 additions & 6 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.74';
17+
const String version = '1.75';
1818

1919
// Restriction on statements and expressions.
2020
const int stmtDepth = 1;
@@ -167,11 +167,7 @@ class CallMethod extends Method {
167167
String emitCall(int depth,
168168
{RhsFilter rhsFilter, bool includeSemicolon = false}) {
169169
String outputName;
170-
if (fuzzer.currentClass == null) {
171-
outputName = "${className}()";
172-
} else {
173-
outputName = fuzzer.coinFlip() ? name : "this";
174-
}
170+
outputName = "${className}()";
175171
fuzzer.emitLn(outputName, newline: false);
176172
fuzzer.emitExprList(depth + 1, parameters, rhsFilter: rhsFilter);
177173
if (includeSemicolon) {

0 commit comments

Comments
 (0)