Skip to content

Commit

Permalink
Let the value argument be consistent in Mapper and Visitor (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr authored Aug 4, 2024
1 parent 530d498 commit 6aecc70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ dictionary SubscribeOptions {

callback Predicate = boolean (any value, unsigned long long index);
callback Reducer = any (any accumulator, any currentValue);
callback Mapper = any (any element, unsigned long long index);
callback Mapper = any (any value, unsigned long long index);
// Differs from Mapper only in return type, since this callback is exclusively
// used to visit each element in a sequence, not transform it.
callback Visitor = undefined (any element, unsigned long long index);
callback Visitor = undefined (any value, unsigned long long index);

[Exposed=*]
interface Observable {
Expand Down

0 comments on commit 6aecc70

Please sign in to comment.