v8/test/intl/number-format/format-range-numbering-system.js
Frank Tang 7ad9ae1a8c Correct test to sync to PR85 and add test to show problem in v8:12977
https://github.com/tc39/proposal-intl-numberformat-v3/pull/85

Also add test to show the problem while using numberingSystem with formatRange


Bug: v8:12977, v8:10776
Change-Id: I09845b6f04994dc84b9a21e272d39d785db3317a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3708020
Commit-Queue: Frank Tang <ftang@chromium.org>
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81199}
2022-06-15 21:54:42 +00:00

15 lines
567 B
JavaScript

// Copyright 2022 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.
// Flags: --harmony-intl-number-format-v3
let latn = new Intl.NumberFormat("en", {numberingSystem: "latn"})
assertDoesNotThrow(() => latn.formatRange(1, 234));
let arab = new Intl.NumberFormat("en", {numberingSystem: "arab"})
assertDoesNotThrow(() => arab.formatRange(1, 234));
let thai = new Intl.NumberFormat("en", {numberingSystem: "thai"})
assertDoesNotThrow(() => thai.formatRange(1, 234));