266bd5743f
flag --harmony_intl_enumeration I2P: https://groups.google.com/a/chromium.org/g/blink-dev/c/Txtf_rSqGH8/m/e27FY33JAQAJ Design Doc: https://docs.google.com/document/d/1lbj_YVW-xhzYNMQeHB-qDjVkf4SA-eTHYpYXx3Oaud8 https://chromestatus.com/guide/edit/5649454590853120 Bug: v8:10743 Change-Id: I3bfe0c25b50eb55025498534eba975a20723bd2f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2953519 Commit-Queue: Frank Tang <ftang@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/master@{#76265}
15 lines
510 B
JavaScript
15 lines
510 B
JavaScript
// Copyright 2021 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_enumeration
|
|
|
|
// Test the return items of currency fit 'type'
|
|
let regex = /^[A-Z]{3}$/;
|
|
Intl.supportedValuesOf("currency").forEach(
|
|
function(currency) {
|
|
assertTrue(regex.test(currency),
|
|
"Intl.supportedValuesOf('currency') return " + currency +
|
|
" which does not meet 'alpha{3}'");
|
|
});
|