Reproduction steps:
1. Open the attached “JSPRE Example.zip” project
2. Build and Run for WebGL (File → Build and Run)
3. Observe the Player in the browser and turn on Developer Tools (press F12)
Expected result: No errors are thrown in the Player and “TestCall has been called successfully!" log is visible in the Browser console
Actual result: An error is thrown in the Player and "ReferenceError: PreTestCall is not defined at _TestCall" log is visible in the Browser console
Reproducible with: 2021.3.35f1, 2021.3.36f1, 2022.1.0a11
Not reproducible with: 2021.3.34f1, 2022.3.22f1, 2023.2.16f1, 6000.0.0b13
Fixed in: 2022.1.0a12
Reproducible on: Windows 11
Not reproducible on: no other environment tested
Note:
- Replacing the PlaybackEngines/WebGLSupport/WebGLPlayerBuildProgram.exe in 2021.3.35f1 with the executable from 2021.3.34f1, makes the project build with no errors