mirror of https://github.com/tc39/test262.git
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:
parent
0fe508c5f0
commit
63f2c5b10f
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue