We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3659a5 commit ab31460Copy full SHA for ab31460
packages/next/shared/lib/utils.ts
@@ -403,8 +403,9 @@ export { warnOnce }
403
export const SP = typeof performance !== 'undefined'
404
export const ST =
405
SP &&
406
- typeof performance.mark === 'function' &&
407
- typeof performance.measure === 'function'
+ (['mark', 'measure', 'getEntriesByName'] as const).every(
+ (method) => typeof performance[method] === 'function'
408
+ )
409
410
export class DecodeError extends Error {}
411
export class NormalizeError extends Error {}
0 commit comments