From a0ae8ed82022cd08b23c91f48eee5b837e966fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Ma=C5=82olepszy?= Date: Wed, 29 Nov 2023 18:35:01 +0100 Subject: [PATCH 1/2] Formatting: Don't remove unresolved options from the map passed to the function --- spec/formatting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/formatting.md b/spec/formatting.md index c8179ef12d..9d48fa696d 100644 --- a/spec/formatting.md +++ b/spec/formatting.md @@ -217,8 +217,8 @@ the following steps are taken: bind the _identifier_ of the _option_ to the resolved value in the mapping. - Otherwise, bind the _identifier_ of the _option_ to an unresolved value in the mapping. (Note that an Unresolved Variable error will have been emitted.) -4. Remove from the resolved mapping of _options_ any binding for which the value is an unresolved value. -5. Call the function implementation with the following arguments: + +4. Call the function implementation with the following arguments: - The current _locale_. - The resolved mapping of _options_. From 006e60df939c9f5c92426e2a19f6d13b2847d2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Ma=C5=82olepszy?= Date: Wed, 13 Dec 2023 21:41:11 +0100 Subject: [PATCH 2/2] Apply a suggestion from @aphillips --- spec/formatting.md | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/formatting.md b/spec/formatting.md index 9d48fa696d..da33ed5853 100644 --- a/spec/formatting.md +++ b/spec/formatting.md @@ -216,6 +216,7 @@ the following steps are taken: - If the _option_'s right-hand side successfully resolves to a value, bind the _identifier_ of the _option_ to the resolved value in the mapping. - Otherwise, bind the _identifier_ of the _option_ to an unresolved value in the mapping. + Implementations MAY later remove this value before calling the _function_. (Note that an Unresolved Variable error will have been emitted.) 4. Call the function implementation with the following arguments: