From 36e4278f208ccb6f638d1a33e580dedd882ee3ec Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang <41213225+FrankYFTang@users.noreply.github.com> Date: Thu, 9 Jul 2020 17:59:31 -0700 Subject: [PATCH] use undefined instead of 0 so range is only 1-3 --- .../DateTimeFormat/prototype/format/fractionalSecondDigits.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/intl402/DateTimeFormat/prototype/format/fractionalSecondDigits.js b/test/intl402/DateTimeFormat/prototype/format/fractionalSecondDigits.js index ee2bfc4bf8..5a75b2d173 100644 --- a/test/intl402/DateTimeFormat/prototype/format/fractionalSecondDigits.js +++ b/test/intl402/DateTimeFormat/prototype/format/fractionalSecondDigits.js @@ -12,7 +12,7 @@ const d1 = new Date(2019, 7, 10, 1, 2, 3, 234); const d2 = new Date(2019, 7, 10, 1, 2, 3, 567); let dtf = new Intl.DateTimeFormat( - 'en', { minute: "numeric", second: "numeric", fractionalSecondDigits: 0}); + 'en', { minute: "numeric", second: "numeric", fractionalSecondDigits: undefined}); assert.sameValue(dtf.format(d1), "02:03", "no fractionalSecondDigits"); assert.sameValue(dtf.format(d2), "02:03", "no fractionalSecondDigits");