diff --git a/internal/execute/tsc/statistics.go b/internal/execute/tsc/statistics.go index 380e354978..2dd995b145 100644 --- a/internal/execute/tsc/statistics.go +++ b/internal/execute/tsc/statistics.go @@ -150,5 +150,8 @@ func (s *Statistics) Aggregate(stat *Statistics) { } func (s *Statistics) SetTotalTime(totalTime time.Duration) { + if s.compileTimes == nil { + s.compileTimes = &CompileTimes{} + } s.compileTimes.totalTime = totalTime }