Web runtime regression in 2.40.0

I found a web runtime regression affecting a Rive Lua particle simulation.

Expected behavior:

Particles collide with and push away from each other.

Actual behavior:

Particles pass through each other on the web. Particle-to-wall boundaries still work.

Version results:

- @rive-app/canvas 2.39.2: works correctly

- @rive-app/canvas 2.40.0: particle collisions stop working

- Later versions: also affected

- iOS runtime: works correctly with the same .riv file and Lua scripts

The animation and scripts were unchanged between tests. Only the web runtime package version changed.

The particle collision code uses a spatial hash stored in a Lua table:

- Physics.buildGrid

- Physics.solveCollisions

The wall collision code still works, so the issue seems isolated to the Lua/table-heavy particle-particle collision path.

Possible regression area:

Rive WASM 2.40.0 included an Emscripten upgrade from 3.1.61 to 4.0.23 and added -Os linker optimization:

https://github.com/rive-app/rive-wasm/commit/f8c9b7e084bc566151e5a68cd928385239499deb

I can provide a minimal .riv reproduction file and the Lua files if helpful.

45_activityring_report.rev