Closed GoogleCodeExporter closed 9 years ago
Here is why:
Box2dWeb defines valueOf() in Object.prototype which provides an unique id for
each object. This allows using objects as keys and simulates
flash.utils.Dictionary-behavior:
var d = new flash.utils.Dictionary;
d[{foo: bar}] = "foobar";
Processing.js defines toString at some places in the processing-code -to-
Javascript compiler. Unfortunately valueOf seems to have higher precedence.
So maybe I can fix it, by making valueOf return the toString() value, if
available as a workaround.
I'm currently working on version 2.0 of my converter. I hope I can remove the
valueOf-override at all by improving type-tracking.
Original comment by Uli.He...@googlemail.com
on 23 Nov 2010 at 6:43
Original comment by Uli.He...@googlemail.com
on 23 Nov 2010 at 11:00
This issue was closed by revision r11.
Original comment by Uli.He...@googlemail.com
on 24 Nov 2010 at 1:08
Original issue reported on code.google.com by
kristjan...@gmail.com
on 23 Nov 2010 at 4:32Attachments: