|
| 1 | +=== tests/cases/conformance/es2020/localesObjectArgument.ts === |
| 2 | +const enUS = new Intl.Locale("en-US"); |
| 3 | +>enUS : Symbol(enUS, Decl(localesObjectArgument.ts, 0, 5)) |
| 4 | +>Intl.Locale : Symbol(Intl.Locale, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --)) |
| 5 | +>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --)) |
| 6 | +>Locale : Symbol(Intl.Locale, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --)) |
| 7 | + |
| 8 | +const deDE = new Intl.Locale("de-DE"); |
| 9 | +>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5)) |
| 10 | +>Intl.Locale : Symbol(Intl.Locale, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --)) |
| 11 | +>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --)) |
| 12 | +>Locale : Symbol(Intl.Locale, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --)) |
| 13 | + |
| 14 | +const jaJP = new Intl.Locale("ja-JP"); |
| 15 | +>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5)) |
| 16 | +>Intl.Locale : Symbol(Intl.Locale, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --)) |
| 17 | +>Intl : Symbol(Intl, Decl(lib.es5.d.ts, --, --), Decl(lib.es2017.intl.d.ts, --, --), Decl(lib.es2018.intl.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --)) |
| 18 | +>Locale : Symbol(Intl.Locale, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.d.ts, --, --)) |
| 19 | + |
| 20 | +const now = new Date(); |
| 21 | +>now : Symbol(now, Decl(localesObjectArgument.ts, 4, 5)) |
| 22 | +>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 1 more) |
| 23 | + |
| 24 | +const num = 1000; |
| 25 | +>num : Symbol(num, Decl(localesObjectArgument.ts, 5, 5)) |
| 26 | + |
| 27 | +const bigint = 123456789123456789n; |
| 28 | +>bigint : Symbol(bigint, Decl(localesObjectArgument.ts, 6, 5)) |
| 29 | + |
| 30 | +now.toLocaleString(enUS); |
| 31 | +>now.toLocaleString : Symbol(Date.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --)) |
| 32 | +>now : Symbol(now, Decl(localesObjectArgument.ts, 4, 5)) |
| 33 | +>toLocaleString : Symbol(Date.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --)) |
| 34 | +>enUS : Symbol(enUS, Decl(localesObjectArgument.ts, 0, 5)) |
| 35 | + |
| 36 | +now.toLocaleDateString(enUS); |
| 37 | +>now.toLocaleDateString : Symbol(Date.toLocaleDateString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --)) |
| 38 | +>now : Symbol(now, Decl(localesObjectArgument.ts, 4, 5)) |
| 39 | +>toLocaleDateString : Symbol(Date.toLocaleDateString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --)) |
| 40 | +>enUS : Symbol(enUS, Decl(localesObjectArgument.ts, 0, 5)) |
| 41 | + |
| 42 | +now.toLocaleTimeString(enUS); |
| 43 | +>now.toLocaleTimeString : Symbol(Date.toLocaleTimeString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --)) |
| 44 | +>now : Symbol(now, Decl(localesObjectArgument.ts, 4, 5)) |
| 45 | +>toLocaleTimeString : Symbol(Date.toLocaleTimeString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --)) |
| 46 | +>enUS : Symbol(enUS, Decl(localesObjectArgument.ts, 0, 5)) |
| 47 | + |
| 48 | +now.toLocaleString([deDE, jaJP]); |
| 49 | +>now.toLocaleString : Symbol(Date.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --)) |
| 50 | +>now : Symbol(now, Decl(localesObjectArgument.ts, 4, 5)) |
| 51 | +>toLocaleString : Symbol(Date.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --)) |
| 52 | +>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5)) |
| 53 | +>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5)) |
| 54 | + |
| 55 | +now.toLocaleDateString([deDE, jaJP]); |
| 56 | +>now.toLocaleDateString : Symbol(Date.toLocaleDateString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --)) |
| 57 | +>now : Symbol(now, Decl(localesObjectArgument.ts, 4, 5)) |
| 58 | +>toLocaleDateString : Symbol(Date.toLocaleDateString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --)) |
| 59 | +>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5)) |
| 60 | +>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5)) |
| 61 | + |
| 62 | +now.toLocaleTimeString([deDE, jaJP]); |
| 63 | +>now.toLocaleTimeString : Symbol(Date.toLocaleTimeString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --)) |
| 64 | +>now : Symbol(now, Decl(localesObjectArgument.ts, 4, 5)) |
| 65 | +>toLocaleTimeString : Symbol(Date.toLocaleTimeString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.date.d.ts, --, --)) |
| 66 | +>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5)) |
| 67 | +>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5)) |
| 68 | + |
| 69 | +num.toLocaleString(enUS); |
| 70 | +>num.toLocaleString : Symbol(Number.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.number.d.ts, --, --)) |
| 71 | +>num : Symbol(num, Decl(localesObjectArgument.ts, 5, 5)) |
| 72 | +>toLocaleString : Symbol(Number.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.number.d.ts, --, --)) |
| 73 | +>enUS : Symbol(enUS, Decl(localesObjectArgument.ts, 0, 5)) |
| 74 | + |
| 75 | +num.toLocaleString([deDE, jaJP]); |
| 76 | +>num.toLocaleString : Symbol(Number.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.number.d.ts, --, --)) |
| 77 | +>num : Symbol(num, Decl(localesObjectArgument.ts, 5, 5)) |
| 78 | +>toLocaleString : Symbol(Number.toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es2020.number.d.ts, --, --)) |
| 79 | +>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5)) |
| 80 | +>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5)) |
| 81 | + |
| 82 | +bigint.toLocaleString(enUS); |
| 83 | +>bigint.toLocaleString : Symbol(BigInt.toLocaleString, Decl(lib.es2020.bigint.d.ts, --, --)) |
| 84 | +>bigint : Symbol(bigint, Decl(localesObjectArgument.ts, 6, 5)) |
| 85 | +>toLocaleString : Symbol(BigInt.toLocaleString, Decl(lib.es2020.bigint.d.ts, --, --)) |
| 86 | +>enUS : Symbol(enUS, Decl(localesObjectArgument.ts, 0, 5)) |
| 87 | + |
| 88 | +bigint.toLocaleString([deDE, jaJP]); |
| 89 | +>bigint.toLocaleString : Symbol(BigInt.toLocaleString, Decl(lib.es2020.bigint.d.ts, --, --)) |
| 90 | +>bigint : Symbol(bigint, Decl(localesObjectArgument.ts, 6, 5)) |
| 91 | +>toLocaleString : Symbol(BigInt.toLocaleString, Decl(lib.es2020.bigint.d.ts, --, --)) |
| 92 | +>deDE : Symbol(deDE, Decl(localesObjectArgument.ts, 1, 5)) |
| 93 | +>jaJP : Symbol(jaJP, Decl(localesObjectArgument.ts, 2, 5)) |
| 94 | + |
0 commit comments