Add regression test for v8:8866

Bug: v8:8866
Change-Id: I3a25c68fe4d8536596118352804daa3c6025da37
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1643466
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Frank Tang <ftang@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62042}
This commit is contained in:
Frank Tang 2019-06-04 14:53:35 -07:00 committed by Commit Bot
parent 2d43679007
commit 9b02ce3310

11
test/intl/regress-8866.js Normal file
View File

@ -0,0 +1,11 @@
// Copyright 2019 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Regression test to ensure Intl.PluralRules respect minimumFractionDigits
assertEquals('other',
new Intl.PluralRules("en", {minimumFractionDigits: 2}).select(1));
assertEquals('zero',
new Intl.PluralRules("lv", {minimumFractionDigits: 2}).select(1.13));