Skip to content

Commit 7c6ef64

Browse files
committed
Update baselines
Signed-off-by: mbasov2 <[email protected]>
1 parent 050665c commit 7c6ef64

27 files changed

+1132
-61
lines changed

src/testRunner/unittests/config/commandLineParsing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ namespace ts {
159159
start: undefined,
160160
length: undefined,
161161
}, {
162-
messageText: "Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'es2023', 'esnext', 'node16', 'nodenext'.",
162+
messageText: "Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'.",
163163
category: Diagnostics.Argument_for_0_option_must_be_Colon_1.category,
164164
code: Diagnostics.Argument_for_0_option_must_be_Colon_1.code,
165165

@@ -211,7 +211,7 @@ namespace ts {
211211
start: undefined,
212212
length: undefined,
213213
}, {
214-
messageText: "Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'.",
214+
messageText: "Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext'.",
215215
category: Diagnostics.Argument_for_0_option_must_be_Colon_1.category,
216216
code: Diagnostics.Argument_for_0_option_must_be_Colon_1.code,
217217

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3148,6 +3148,7 @@ declare namespace ts {
31483148
ES2020 = 7,
31493149
ES2021 = 8,
31503150
ES2022 = 9,
3151+
ES2023 = 10,
31513152
ESNext = 99,
31523153
JSON = 100,
31533154
Latest = 99
@@ -9870,6 +9871,7 @@ declare namespace ts.server.protocol {
98709871
ES2020 = "ES2020",
98719872
ES2021 = "ES2021",
98729873
ES2022 = "ES2022",
9874+
ES2023 = "ES2023",
98739875
ESNext = "ESNext"
98749876
}
98759877
enum ClassificationType {

tests/baselines/reference/api/typescript.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3148,6 +3148,7 @@ declare namespace ts {
31483148
ES2020 = 7,
31493149
ES2021 = 8,
31503150
ES2022 = 9,
3151+
ES2023 = 10,
31513152
ESNext = 99,
31523153
JSON = 100,
31533154
Latest = 99
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//// [callChainWithSuper.ts]
2+
// GH#34952
3+
class Base { method?() {} }
4+
class Derived extends Base {
5+
method1() { return super.method?.(); }
6+
method2() { return super["method"]?.(); }
7+
}
8+
9+
//// [callChainWithSuper.js]
10+
"use strict";
11+
// GH#34952
12+
class Base {
13+
method() { }
14+
}
15+
class Derived extends Base {
16+
method1() { return super.method?.(); }
17+
method2() { return super["method"]?.(); }
18+
}

tests/baselines/reference/callWithSpread4.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ declare const pli: {
3030

3131
(streams: ReadonlyArray<R | W | RW>): Promise<void>;
3232
>streams : Symbol(streams, Decl(callWithSpread4.ts, 5, 5))
33-
>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2016.array.include.d.ts, --, --), Decl(lib.es2019.array.d.ts, --, --) ... and 1 more)
33+
>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2016.array.include.d.ts, --, --), Decl(lib.es2019.array.d.ts, --, --) ... and 2 more)
3434
>R : Symbol(R, Decl(callWithSpread4.ts, 0, 0))
3535
>W : Symbol(W, Decl(callWithSpread4.ts, 0, 22))
3636
>RW : Symbol(RW, Decl(callWithSpread4.ts, 1, 22))
@@ -43,7 +43,7 @@ declare const pli: {
4343
>RW : Symbol(RW, Decl(callWithSpread4.ts, 1, 22))
4444
>W : Symbol(W, Decl(callWithSpread4.ts, 0, 22))
4545
>streams : Symbol(streams, Decl(callWithSpread4.ts, 6, 23))
46-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 3 more)
46+
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
4747
>RW : Symbol(RW, Decl(callWithSpread4.ts, 1, 22))
4848
>W : Symbol(W, Decl(callWithSpread4.ts, 0, 22))
4949
>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))

tests/baselines/reference/dependentDestructuredVariables.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ interface B<T> { variant: 'b', value: Array<T> }
321321
>T : Symbol(T, Decl(dependentDestructuredVariables.ts, 128, 12))
322322
>variant : Symbol(B.variant, Decl(dependentDestructuredVariables.ts, 128, 16))
323323
>value : Symbol(B.value, Decl(dependentDestructuredVariables.ts, 128, 30))
324-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 3 more)
324+
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
325325
>T : Symbol(T, Decl(dependentDestructuredVariables.ts, 128, 12))
326326

327327
type AB<T> = A<T> | B<T>;
@@ -342,7 +342,7 @@ declare function printValueList<T>(t: Array<T>): void;
342342
>printValueList : Symbol(printValueList, Decl(dependentDestructuredVariables.ts, 132, 43))
343343
>T : Symbol(T, Decl(dependentDestructuredVariables.ts, 134, 32))
344344
>t : Symbol(t, Decl(dependentDestructuredVariables.ts, 134, 35))
345-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 3 more)
345+
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
346346
>T : Symbol(T, Decl(dependentDestructuredVariables.ts, 134, 32))
347347

348348
function unrefined1<T>(ab: AB<T>): void {
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
//// [findLast.ts]
2+
[0].findLast((item) => item === 0);
3+
new Int8Array().findLast((item) => item === 0);
4+
new Uint8Array().findLast((item) => item === 0);
5+
new Uint8ClampedArray().findLast((item) => item === 0);
6+
new Int16Array().findLast((item) => item === 0);
7+
new Uint16Array().findLast((item) => item === 0);
8+
new Int32Array().findLast((item) => item === 0);
9+
new Uint32Array().findLast((item) => item === 0);
10+
new Float32Array().findLast((item) => item === 0);
11+
new Float64Array().findLast((item) => item === 0);
12+
new BigInt64Array().findLast((item) => item === BigInt(0));
13+
new BigUint64Array().findLast((item) => item === BigInt(0));
14+
15+
[0].findLastIndex((item) => item === 0);
16+
new Int8Array().findLastIndex((item) => item === 0);
17+
new Uint8Array().findLastIndex((item) => item === 0);
18+
new Uint8ClampedArray().findLastIndex((item) => item === 0);
19+
new Int16Array().findLastIndex((item) => item === 0);
20+
new Uint16Array().findLastIndex((item) => item === 0);
21+
new Int32Array().findLastIndex((item) => item === 0);
22+
new Uint32Array().findLastIndex((item) => item === 0);
23+
new Float32Array().findLastIndex((item) => item === 0);
24+
new Float64Array().findLastIndex((item) => item === 0);
25+
new BigInt64Array().findLastIndex((item) => item === BigInt(0));
26+
new BigUint64Array().findLastIndex((item) => item === BigInt(0));
27+
28+
29+
//// [findLast.js]
30+
[0].findLast((item) => item === 0);
31+
new Int8Array().findLast((item) => item === 0);
32+
new Uint8Array().findLast((item) => item === 0);
33+
new Uint8ClampedArray().findLast((item) => item === 0);
34+
new Int16Array().findLast((item) => item === 0);
35+
new Uint16Array().findLast((item) => item === 0);
36+
new Int32Array().findLast((item) => item === 0);
37+
new Uint32Array().findLast((item) => item === 0);
38+
new Float32Array().findLast((item) => item === 0);
39+
new Float64Array().findLast((item) => item === 0);
40+
new BigInt64Array().findLast((item) => item === BigInt(0));
41+
new BigUint64Array().findLast((item) => item === BigInt(0));
42+
[0].findLastIndex((item) => item === 0);
43+
new Int8Array().findLastIndex((item) => item === 0);
44+
new Uint8Array().findLastIndex((item) => item === 0);
45+
new Uint8ClampedArray().findLastIndex((item) => item === 0);
46+
new Int16Array().findLastIndex((item) => item === 0);
47+
new Uint16Array().findLastIndex((item) => item === 0);
48+
new Int32Array().findLastIndex((item) => item === 0);
49+
new Uint32Array().findLastIndex((item) => item === 0);
50+
new Float32Array().findLastIndex((item) => item === 0);
51+
new Float64Array().findLastIndex((item) => item === 0);
52+
new BigInt64Array().findLastIndex((item) => item === BigInt(0));
53+
new BigUint64Array().findLastIndex((item) => item === BigInt(0));

0 commit comments

Comments
 (0)