mirror of https://github.com/tc39/test262.git
Remove date related types for Intl.DisplayNames (#2448)
This commit is contained in:
parent
502cc20010
commit
31f1bb5a75
|
@ -21,7 +21,7 @@ info: |
|
|||
...
|
||||
11. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long").
|
||||
...
|
||||
13. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency", "weekday", "month", "quarter", "dayPeriod", "dateTimeField" », "language").
|
||||
13. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », "language").
|
||||
...
|
||||
15. Let fallback be ? GetOption(options, "fallback", "string", « "code", "none" », "code").
|
||||
...
|
||||
|
@ -41,12 +41,7 @@ var values = [
|
|||
'language',
|
||||
'region',
|
||||
'script',
|
||||
'currency',
|
||||
'weekday',
|
||||
'month',
|
||||
'quarter',
|
||||
'dayPeriod',
|
||||
'dateTimeField'
|
||||
'currency'
|
||||
];
|
||||
|
||||
for (let valid of values) {
|
||||
|
|
|
@ -35,8 +35,8 @@ info: |
|
|||
%DisplayNames%.[[RelevantExtensionKeys]]).
|
||||
11. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long").
|
||||
...
|
||||
13. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency",
|
||||
"weekday", "month", "quarter", "dayPeriod", "dateTimeField" », "language").
|
||||
13. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency"»,
|
||||
"language").
|
||||
...
|
||||
15. Let fallback be ? GetOption(options, "fallback", "string", « "code", "none" », "code").
|
||||
...
|
||||
|
@ -54,7 +54,7 @@ features: [Intl.DisplayNames]
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
var types = ['language', 'region', 'script', 'currency', 'weekday', 'month', 'quarter', 'dayPeriod', 'dateTimeField'];
|
||||
var types = ['language', 'region', 'script', 'currency'];
|
||||
|
||||
types.forEach(type => {
|
||||
var dn = new Intl.DisplayNames('en-US', { type });
|
||||
|
|
Loading…
Reference in New Issue