Constant initialized class instances do not have correct class metadata for up/down casting support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cheerp |
Fix Released
|
Medium
|
Alessandro Pignotti |
Bug Description
I have a bug to report, but unfortunately I am still not able to reproduce it with a simple test case, so here it goes.
This revision of my software works fine with duetto:
https:/
-------
However, the next commit
https:/
introduces a weird bug: as soon as Box2D tries to report a collision the game stops working and the browser reports a javascript runtime error about Llistener.o not being defined in this line:
var tmp4725 = (Llistener.
You can see the problem in action here (when a piece reach a wall or the ground):
http://
-------
To avoid the problem I found an ugly simple fix for my code
https:/
that, surprisingly enough, works.
I'm sorry I wasn't able to investigate this further
Changed in cheerp: | |
status: | Confirmed → Fix Committed |
Changed in cheerp: | |
status: | Fix Committed → Fix Released |
I've identified the bug. The issue is that constant initialized class instances do not have correct class metadata for up/down casting support. Changed the title accordingly.