Skip to content

Commit 539cbbc

Browse files
committed
Target higher
1 parent 81ace05 commit 539cbbc

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

scripts/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
22
"compilerOptions": {
3-
"lib": [
4-
"ES2021"
5-
],
3+
"lib": ["es2023"],
64
"module": "NodeNext",
75
"moduleResolution": "NodeNext",
8-
"target": "ES2021",
6+
"target": "es2023",
97
"rootDir": "src",
108
"outDir": "dist",
119
"sourceMap": true,

ts-perf/packages/inspector/src/session.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface SessionActions extends inspector.SessionActions {
1111
}
1212

1313
export class Session extends inspector.Session<SessionEvents> {
14-
public readonly id: string = `${Session._nextSessionId++}`;
14+
public readonly id: string;
1515
private static _nextSessionId = 0;
1616
private _connected = false;
1717
// private _timelineEvents: string[] | undefined;
@@ -21,6 +21,7 @@ export class Session extends inspector.Session<SessionEvents> {
2121

2222
constructor() {
2323
super();
24+
this.id = `${Session._nextSessionId++}`;
2425
this.on("profileCaptured", (profile: Profiler.Profile) => {
2526
this.onProfileCaptured(profile);
2627
});

ts-perf/packages/tsconfig-base.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"compilerOptions": {
33
"module": "NodeNext",
44
"moduleResolution": "NodeNext",
5-
"target": "es2021",
6-
"lib": ["es2021"],
5+
"target": "es2023",
6+
"lib": ["es2023"],
77
"types": ["node"],
88
"composite": true,
99
"declaration": true,

0 commit comments

Comments
 (0)