From 25b80524952739a7c2f0eed3001039db6b132859 Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang Date: Thu, 7 Jul 2022 17:18:05 -0700 Subject: [PATCH 1/4] Normative: Remove order check --- numberformat/diff.emu | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/numberformat/diff.emu b/numberformat/diff.emu index 291b833..3663f48 100644 --- a/numberformat/diff.emu +++ b/numberformat/diff.emu @@ -1174,17 +1174,6 @@

1. If _x_ is ~not-a-number~ or _y_ is ~not-a-number~, throw a *RangeError* exception. - 1. If _x_ is a mathematical value, then - 1. If _y_ is a mathematical value and _y_ < _x_, throw a *RangeError* exception. - 1. Else if _y_ is ~negative-infinity~, throw a *RangeError* exception. - 1. Else if _y_ is ~negative-zero~ and _x_ ≥ 0, throw a *RangeError* exception. - 1. Else if _x_ is ~positive-infinity~, then - 1. If _y_ is a mathematical value, throw a *RangeError* exception. - 1. Else if _y_ is ~negative-infinity~, throw a *RangeError* exception. - 1. Else if _y_ is ~negative-zero~, throw a *RangeError* exception. - 1. Else if _x_ is ~negative-zero~, then - 1. If _y_ is a mathematical value and _y_ < 0, throw a *RangeError* exception. - 1. Else if _y_ is ~negative-infinity~, throw a *RangeError* exception. 1. Let _result_ be a new empty List. 1. Let _xResult_ be ? PartitionNumberPattern(_numberFormat_, _x_). 1. Let _yResult_ be ? PartitionNumberPattern(_numberFormat_, _y_). From 3686aa00d0e21bf6a62d0d7228f665766b7bad08 Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang Date: Thu, 7 Jul 2022 17:22:24 -0700 Subject: [PATCH 2/4] Normative: Remove order check --- numberformat/proposed.emu | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/numberformat/proposed.emu b/numberformat/proposed.emu index cfcfb63..97e8342 100644 --- a/numberformat/proposed.emu +++ b/numberformat/proposed.emu @@ -1139,17 +1139,6 @@

1. If _x_ is *NaN* or _y_ is *NaN*, throw a *RangeError* exception. - 1. If _x_ is a mathematical value, then - 1. If _y_ is a mathematical value and _y_ < _x_, throw a *RangeError* exception. - 1. Else if _y_ is *-∞*, throw a *RangeError* exception. - 1. Else if _y_ is *-0*𝔽 and _x_ ≥ 0, throw a *RangeError* exception. - 1. Else if _x_ is *+∞*, then - 1. If _y_ is a mathematical value, throw a *RangeError* exception. - 1. Else if _y_ is *-∞*, throw a *RangeError* exception. - 1. Else if _y_ is *-0*𝔽, throw a *RangeError* exception. - 1. Else if _x_ is *-0*𝔽, then - 1. If _y_ is a mathematical value and _y_ < 0, throw a *RangeError* exception. - 1. Else if _y_ is *-∞*, throw a *RangeError* exception. 1. Let _result_ be a new empty List. 1. Let _xResult_ be ? PartitionNumberPattern(_numberFormat_, _x_). 1. Let _yResult_ be ? PartitionNumberPattern(_numberFormat_, _y_). From 18fb97c011453611f6d053b18836145ffbaae84b Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang Date: Thu, 7 Jul 2022 17:23:47 -0700 Subject: [PATCH 3/4] Normative: remove order check --- pluralrules/diff.emu | 1 - 1 file changed, 1 deletion(-) diff --git a/pluralrules/diff.emu b/pluralrules/diff.emu index 30f3770..2122c40 100644 --- a/pluralrules/diff.emu +++ b/pluralrules/diff.emu @@ -152,7 +152,6 @@ 1. Assert: Type(_x_) is Number. 1. Assert: Type(_y_) is Number. 1. If _x_ is *NaN* or _y_ is *NaN*, throw a *RangeError* exception. - 1. If _x_ > _y_, throw a *RangeError* exception. 1. Let _xp_ be ! ResolvePlural(_pluralRules_, _x_). 1. Let _yp_ be ! ResolvePlural(_pluralRules_, _y_). 1. Let _locale_ be _pluralRules_.[[Locale]]. From 9a02a6c98373a7906bb94f7959e7140634cb314f Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang Date: Thu, 7 Jul 2022 17:24:27 -0700 Subject: [PATCH 4/4] Remove order check --- pluralrules/proposed.emu | 1 - 1 file changed, 1 deletion(-) diff --git a/pluralrules/proposed.emu b/pluralrules/proposed.emu index 6afd371..d709a5b 100644 --- a/pluralrules/proposed.emu +++ b/pluralrules/proposed.emu @@ -151,7 +151,6 @@ 1. Assert: Type(_x_) is Number. 1. Assert: Type(_y_) is Number. 1. If _x_ is *NaN* or _y_ is *NaN*, throw a *RangeError* exception. - 1. If _x_ > _y_, throw a *RangeError* exception. 1. Let _xp_ be ! ResolvePlural(_pluralRules_, _x_). 1. Let _yp_ be ! ResolvePlural(_pluralRules_, _y_). 1. Let _locale_ be _pluralRules_.[[Locale]].