7ad9ae1a8c
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}
15 lines
567 B
JavaScript
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));
|