Fix reporting when performance.measure doesn't exist (Edge) (#64669)

This commit is contained in:
Dima Voytenko 2024-04-17 10:26:31 -07:00 committed by GitHub
parent e49daec80a
commit 52214359c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -281,7 +281,7 @@ class NextTracerImpl implements NextTracer {
options, options,
(span: Span) => { (span: Span) => {
const startTime = const startTime =
'performance' in globalThis 'performance' in globalThis && 'measure' in performance
? globalThis.performance.now() ? globalThis.performance.now()
: undefined : undefined