Encountered a race condition that occurred occasionally when multiple marks were being fired off at similar times, as a result the WP.measure(stepMetricName, M + startMark, M + endMark); would sometimes return undefined, and then cause an undefined type error.
Added back in the async/await into calling measureStep and added an extra check to ensure null durations are handled
New Test Coverage - we can see the new return being tested since measureStep.ts is at 100%
Encountered a race condition that occurred occasionally when multiple marks were being fired off at similar times, as a result the
WP.measure(stepMetricName, M + startMark, M + endMark);
would sometimes return undefined, and then cause an undefined type error.Added back in the async/await into calling
measureStep
and added an extra check to ensure null durations are handledNew Test Coverage - we can see the new return being tested since measureStep.ts is at 100%