Remove 1.1 case which should NOT throw RangeError

roundingIncrement: 1.1 will not throw RangeError because
1.  roundingIncrement is read by calling GetNumberOption 
2. GetNumberOption https://tc39.es/ecma402/#sec-getnumberoption will call DefaultNumberOption https://tc39.es/ecma402/#sec-defaultnumberoption and 
3. DefaultNumberOption will call floor() in step 3.
This commit is contained in:
Frank Yung-Fong Tang 2022-01-06 10:22:10 -08:00 committed by Rick Waldron
parent 0fe508c5f0
commit 63f2c5b10f
1 changed files with 0 additions and 4 deletions

View File

@ -10,10 +10,6 @@ assert.throws(RangeError, function() {
new Intl.NumberFormat([], {roundingIncrement: 0});
}, '0');
assert.throws(RangeError, function() {
new Intl.NumberFormat([], {roundingIncrement: 1.1});
}, '1.1');
assert.throws(RangeError, function() {
new Intl.NumberFormat([], {roundingIncrement: 3});
}, '3');