From 97959fba9f8b749aadc22f8dc7b67787dad5e80e Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Fri, 22 May 2026 09:13:48 +0000 Subject: [PATCH] test(browser-integration): Allow built-in 'now' frame to lack abs_path in profile validation Fixes #21114 --- .../suites/profiling/test-utils.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dev-packages/browser-integration-tests/suites/profiling/test-utils.ts b/dev-packages/browser-integration-tests/suites/profiling/test-utils.ts index e82eac73eb79..62db93be7dbc 100644 --- a/dev-packages/browser-integration-tests/suites/profiling/test-utils.ts +++ b/dev-packages/browser-integration-tests/suites/profiling/test-utils.ts @@ -99,8 +99,13 @@ export function validateProfile( expect(frame).toHaveProperty('function'); expect(typeof frame.function).toBe('string'); - // Some browser functions (fetch, setTimeout, clearTimeout) may not have file locations - if (frame.function !== 'fetch' && frame.function !== 'setTimeout' && frame.function !== 'clearTimeout') { + // Some browser functions (fetch, setTimeout, clearTimeout, now) may not have file locations + if ( + frame.function !== 'fetch' && + frame.function !== 'setTimeout' && + frame.function !== 'clearTimeout' && + frame.function !== 'now' + ) { expect(frame).toHaveProperty('abs_path'); expect(frame).toHaveProperty('lineno'); expect(frame).toHaveProperty('colno');