From 63f2c5b10f7dd92c5bf30d339f4dad86eda67366 Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang Date: Thu, 6 Jan 2022 10:22:10 -0800 Subject: [PATCH] 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. --- .../NumberFormat/constructor-roundingIncrement-invalid.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/intl402/NumberFormat/constructor-roundingIncrement-invalid.js b/test/intl402/NumberFormat/constructor-roundingIncrement-invalid.js index cdc295213d..1274a0daac 100644 --- a/test/intl402/NumberFormat/constructor-roundingIncrement-invalid.js +++ b/test/intl402/NumberFormat/constructor-roundingIncrement-invalid.js @@ -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');