Skip to content

Commit 0785e9e

Browse files
o-V8-internal LUCI CQ
authored andcommitted
Add support for iterator sequencing
Bug: 434977727 Change-Id: I24617b4353f7205c8654ce9f555ed043fb5e4b8c Reviewed-on: https://chrome-internal-review.googlesource.com/c/v8/fuzzilli/+/8902197 Reviewed-by: Michael Achenbach <[email protected]> Commit-Queue: Olivier Flückiger <[email protected]>
1 parent 954de4e commit 0785e9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/Fuzzilli/Environment/JavaScriptEnvironment.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ public extension ILType {
10361036
static let jsIterator = ILType.iterable + ILType.object(ofGroup: "Iterator", withProperties: ["value", "done"], withMethods: ["next", "return", "throw", "map", "filter", "take", "drop", "flatMap", "reduce", "toArray", "forEach", "some", "every", "find"])
10371037

10381038
/// Type of the JavaScript Iterator constructor builtin.
1039-
static let jsIteratorConstructor = ILType.object(ofGroup: "IteratorConstructor", withProperties: ["prototype"], withMethods: ["from"])
1039+
static let jsIteratorConstructor = ILType.object(ofGroup: "IteratorConstructor", withProperties: ["prototype"], withMethods: ["from", "concat"])
10401040

10411041
/// Type of a JavaScript generator object.
10421042
static let jsGenerator = ILType.iterable + ILType.object(ofGroup: "Generator", withMethods: ["next", "return", "throw"])
@@ -1544,6 +1544,7 @@ public extension ObjectGroup {
15441544
],
15451545
methods: [
15461546
"from" : [.jsAnything] => .jsIterator,
1547+
"concat" : [.jsAnything...] => .jsIterator,
15471548
]
15481549
)
15491550

0 commit comments

Comments
 (0)