Reproduction steps:
1. Open the attached “WebGLBuildIssue” project
2. In Build Profiles window, select the Web platform
3. In Player Settings (Edit > Project Settings.. > Player > Publishing Settings), make sure Data Caching and Decompression Fallback options are enabled
4. Build and Run the player
5. In the opened Web browser window, Inspect the page (Context menu > Inspect)
6. In the page Inspect, observe the Console tab
Expected result: No errors are logged
Actual result: “Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'match')…” error is logged and the Player does not load
Reproducible with: 6000.0.35f1 (ed4dc7af2c82), 6000.0.41f1, 6000.1.0b9, 6000.2.0a6
Not reproducible with: 2022.3.59f1, 6000.0.34f1
Reproducible on: macOS Sequoia 15.3.1 (M1 Max), Windows 11
Not reproducible on: No other environments tested