Skip to content

Commit 7a3c31f

Browse files
Accepted es2020Intl baseline.
1 parent 3e24f14 commit 7a3c31f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/baselines/reference/es2020IntlAPIs.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,22 @@ tests/cases/conformance/es2020/es2020IntlAPIs.ts(50,29): error TS2345: Argument
5353
new Intl.Locale(); // should error
5454
~~~~~~~~~~~~~~~~~
5555
!!! error TS2554: Expected 1-2 arguments, but got 0.
56-
!!! related TS6210 /.ts/lib.es2020.intl.d.ts:311:14: An argument for 'tag' was not provided.
56+
!!! related TS6210 /.ts/lib.es2020.intl.d.ts:335:14: An argument for 'tag' was not provided.
5757
new Intl.Locale(new Intl.Locale('en-US'));
5858

5959
new Intl.DisplayNames(); // TypeError: invalid_argument
6060
~~~~~~~~~~~~~~~~~~~~~~~
6161
!!! error TS2554: Expected 2 arguments, but got 0.
62-
!!! related TS6210 /.ts/lib.es2020.intl.d.ts:390:13: An argument for 'locales' was not provided.
62+
!!! related TS6210 /.ts/lib.es2020.intl.d.ts:414:13: An argument for 'locales' was not provided.
6363
new Intl.DisplayNames('en'); // TypeError: invalid_argument
6464
~~~~~~~~~~~~~~~~~~~~~~~~~~~
6565
!!! error TS2554: Expected 2 arguments, but got 1.
66-
!!! related TS6210 /.ts/lib.es2020.intl.d.ts:390:39: An argument for 'options' was not provided.
66+
!!! related TS6210 /.ts/lib.es2020.intl.d.ts:414:39: An argument for 'options' was not provided.
6767
new Intl.DisplayNames('en', {}); // TypeError: invalid_argument
6868
~~
6969
!!! error TS2345: Argument of type '{}' is not assignable to parameter of type 'DisplayNamesOptions'.
7070
!!! error TS2345: Property 'type' is missing in type '{}' but required in type 'DisplayNamesOptions'.
71-
!!! related TS2728 /.ts/lib.es2020.intl.d.ts:333:9: 'type' is declared here.
71+
!!! related TS2728 /.ts/lib.es2020.intl.d.ts:357:9: 'type' is declared here.
7272
console.log((new Intl.DisplayNames(undefined, {type: 'language'})).of('en-GB')); // "British English"
7373

7474
const localesArg = ["es-ES", new Intl.Locale("en-US")];

0 commit comments

Comments
 (0)