mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(benchpress): Ensure future-proof correct initialization order (#60025)
Future changes to initialization order can cause this previously OK code to start having compiler erroring like: `TS2729: Property 'foo' is used before its initialization.` PR Close #60025
This commit is contained in:
@@ -46,9 +46,11 @@ export class JsonFileReporter extends Reporter {
|
||||
@Inject(Options.NOW) private _now: Function,
|
||||
) {
|
||||
super();
|
||||
|
||||
this.textReporter = new TextReporterBase(this._columnWidth, this._description);
|
||||
}
|
||||
|
||||
private textReporter = new TextReporterBase(this._columnWidth, this._description);
|
||||
private textReporter: TextReporterBase;
|
||||
|
||||
override reportMeasureValues(measureValues: MeasureValues): Promise<any> {
|
||||
return Promise.resolve(null);
|
||||
|
||||
Reference in New Issue
Block a user