From 6aecc70cf88c815b678c66acbc3d467f9adf08f2 Mon Sep 17 00:00:00 2001 From: Marais Rossouw Date: Sun, 4 Aug 2024 12:16:45 +1000 Subject: [PATCH] Let the `value` argument be consistent in `Mapper` and `Visitor` (#167) --- spec.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.bs b/spec.bs index be56646..ddee281 100644 --- a/spec.bs +++ b/spec.bs @@ -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 {