Skip to content

Commit 4b65707

Browse files
whendrik-cmdV8-internal LUCI CQ
authored andcommitted
Make for of loops require given object to be iterable
Switching to required is an optimization that should not have adverse effects, because mutators should still allow us to generate the same code without the performance impact of throwing away as many generated programs. Bug: 40272934 Change-Id: I636a6d22e80d18aab038eebbb041c26c92c9b3ac Reviewed-on: https://chrome-internal-review.googlesource.com/c/v8/fuzzilli/+/8543122 Auto-Submit: Hendrik Wüthrich <whendrik@google.com> Reviewed-by: Hendrik Wüthrich <whendrik@google.com> Commit-Queue: Hendrik Wüthrich <whendrik@google.com> Reviewed-by: Matthias Liedtke <mliedtke@google.com>
1 parent 819550e commit 4b65707

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/Fuzzilli/CodeGen/CodeGenerators.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@ public let CodeGenerators: [CodeGenerator] = [
15561556
}
15571557
},
15581558

1559-
RecursiveCodeGenerator("ForOfLoopGenerator", inputs: .preferred(.iterable)) { b, obj in
1559+
RecursiveCodeGenerator("ForOfLoopGenerator", inputs: .required(.iterable)) { b, obj in
15601560
b.buildForOfLoop(obj) { _ in
15611561
b.buildRecursive()
15621562
}

0 commit comments

Comments
 (0)